note 92243 added to function.checkdnsrr
| From: | Anonymous at osu1 dot php dot net | Date: | Wed, 15 Jul 2009 16:07:27 +0000 |
| Subject: | note 92243 added to function.checkdnsrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158343@lists.php.net to get a copy of this message | ||
It appears that if you're checking DNS records for a host that uses a Round-Robin DNS technique
for load distribution, then you cannot use this function with the "type" parameter set to
"ANY".
<?php
//This will not work
if(checkdnsrr("round-robin-example.com"),"ALL")){
return true;
}else{
return false;
}
//But every value other than "ANY" will work
if(checkdnsrr("round-robin-example.com"),"A")){
return true;
}else{
return false;
}
?>
----
Server IP: 64.71.164.2
Probable Submitter: 62.249.238.250
----
Manual Page -- http://www.php.net/manual/en/function.checkdnsrr.php
Edit -- https://master.php.net/note/edit/92243
Del: integrated -- https://master.php.net/note/delete/92243/integrated
Del: useless -- https://master.php.net/note/delete/92243/useless
Del: bad code -- https://master.php.net/note/delete/92243/bad+code
Del: spam -- https://master.php.net/note/delete/92243/spam
Del: non-english -- https://master.php.net/note/delete/92243/non-english
Del: in docs -- https://master.php.net/note/delete/92243/in+docs
Del: other reasons-- https://master.php.net/note/delete/92243
Reject -- https://master.php.net/note/reject/92243
Search -- https://master.php.net/manage/user-notes.php