Bitnami - curl error 6

I am not able to install the master plugin on my WordPress site. I am getting this error:
Your server had a problem connecting to WPMU DEV: "cURL error 6: Couldn't resolve host 'premium.wpmudev.org'". Please try again.

If this problem continues, please contact your host with this error message and ask:
"Is php on my server properly configured to be able to contact https://premium.wpmudev.org/api/dashboard/v1/ with a POST HTTP request via fsockopen or CURL?"

    Predrag Dubajic

    Hi Abhinav,

    Apologies for the delay here.

    I had a look at your installation but I was unable to find more info about what's causing this on your site.
    The issue is most likely related to server configuration preventing communication with external resources but I was unable to find much more about the exact cause.

    I will forward your issue to our developers to investigate it further but in the meantime you should get in touch with your hosting provider with the message you're seeing:

    "Is php on my server properly configured to be able to contact https://premium.wpmudev.org/api/dashboard/v1/ with a POST HTTP request via fsockopen or CURL?"

    This can tell us where to look.

    Best regards,
    Predrag

    Panos

    Hi there Abhinav Singh ,

    Hope you are doing well today

    Main reasons could be that either IP or account is being blocked or some misconfiguration.
    Could you do a really quick test? Please paste the following on your theme's functions.php:

    add_shortcode( 'wpmudev_curl_test', 'wpmudev_curl_test_sh' );
    
    function wpmudev_curl_test_sh( $atts ){
      // is cURL installed yet?
      if (!function_exists('curl_init')){
        die('Sorry cURL is not installed!');
      }
    
      $atts = shortcode_atts(
        array(
            'url' => 'http://wordpress.org'
        ), $atts, 'wpmudev_curl_test' );
    
        $url = $atts[ 'url' ];
        $ch = curl_init();
    
        // Set URL to download
        curl_setopt($ch, CURLOPT_URL, $url);
    
        // Set Timeout
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    
        curl_setopt($ch,CURLOPT_HEADER,true);
        curl_setopt($ch,CURLOPT_NOBODY,true);
    
        // Should cURL return or print out the data? (true = return, false = print)
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    
        // Follow redirects
        //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    
        $output = curl_exec($ch);
    
        // Close the cURL resource, and free system resources
        curl_close($ch);
    
        $return = '<h3>Nice! <strong>' . $url . '</strong> found</h3>';
    
        if(!$output){
           return '<h3>Nothing found</h3>';
        }
    
        return $return;
    }

    Then in a page add the following shortcodes:

    [wpmudev_curl_test]
    [wpmudev_curl_test url="http://premium.wpmudev.org"]

    The first one will do a request at wordpress.org and the second one to premium.wpmudev.org.

    When you visit the page in front you should see a message if it fails only for premium.wpmudev.org or for both.

    If it fails only for premium.wpmudev.org then probably IP or account may be blocked so we need to unblock it. If both requests fail then it could be some miss-configuration. In such case could you ask your host if this is common on their servers?

    After test you can delete the shortcodes and the snippet.

    Please let us know about the results!

    Thanks!