title: wrong return value from getmxrr() and checkdnsrr()
body: <p>The <a href="http://www.php.net/manual/en/function.getmxrr.php" rel="nofollow">php manual</a> for <code>getmxrr($url, &amp;$mxHosts)</code> states:</p>
  
  <blockquote>
    <p>Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.</p>
  </blockquote>
  
  <p>But for some domains (e.g. <em>www.yahoo.com, example.com.com</em>) it just returns <em>true</em> but the return parameter <code>$mxHosts</code> is empty. Both domains do not have an MX record. <code>checkdnsrr()</code> returns <em>true</em>, either.</p>
  
  <p>I compared the DNS entries of those domains and noticed that both have a CNAME entry while other domains that i tested and where the functions work fine do not have it.</p>
  
  <p>Why are <code>getmxrr()</code> and <code>checkdnsrr()</code> giving wrong result values? Does this have anything to do with the CNAME?</p>