title: Wrong DNS Settings, php_network_getaddresses: getaddrinfo failed Name or service not known, nslookup
body: <p>The problem originally looked like this:</p>
  
  <blockquote>
    <p>Warning: file_get_contents() [function.file-get-contents]: 
        php_network_getaddresses: getaddrinfo failed: Name or service not known in 
        /home/<strong><em>/</em></strong>/ppk_hotweb.class.php on line 58</p>
  </blockquote>
  
  <p>I used cURL as well, it just returned null, that's it.. Both (file &amp; cURL) were enabled. </p>
  
  <p>Tried <code>file_get_contents('google.com')</code> and it worked! </p>
  
  <p>Why doesn't <code>file_get_contents('domain.com.au')</code> work then?</p>
  
  <p>So I started reading relevant stackoverflow posts and people say that this is a DNS settings issue. </p>
  
  <p>I tried the following:</p>
  
  <pre><code>&gt; # ping domain.com.au
  ping: unknown host domain.com.au
  </code></pre>
  
  <p>What's wrong with the host? The site is live.</p>
  
  <p>Also:</p>
  
  <blockquote>
    <p># nslookup domain.com.au<br>
      Server:         203.16.60.<strong><em><br>
        Address:        203.16.60.</em></strong>#53</p>
    
    <p>*** Can't find domain.com.au: No answer</p>
  </blockquote>
  
  <p>and</p>
  
  <pre><code>&gt; # dig domain.com.au
  
  ; &lt;&lt;&gt;&gt; DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 &lt;&lt;&gt;&gt; domain.com.au
  ;; global options: +cmd
  ;; Got answer:
  ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 52814
  ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
  
  ;; QUESTION SECTION:
  ;domain.com.au.          IN      A
  
  ;; AUTHORITY SECTION:
  domain.com.au.   3600    IN      SOA     ns1.web24.net.au. dns.web24.net.au. 2012080201 7200 3600 604800 3600
  
  ;; Query time: 1 msec
  ;; SERVER: 203.16.60.***#53(203.16.60.3)
  ;; WHEN: Sat Aug  4 05:43:23 2012
  ;; MSG SIZE  rcvd: 92
  </code></pre>
  
  <p>I'll really appreciate any help! 
  Thanks.</p>
  
  <p>UPD: btw, just tried the Whois lookup... </p>
  
  <blockquote>
    <p>domain.com.au is not available</p>
  </blockquote>
  
  <p>:(</p>