note 104078 added to function.checkdnsrr
| From: | DDgroningen at osu1 dot php dot net | Date: | Sat, 21 May 2011 10:17:21 +0000 |
| Subject: | note 104078 added to function.checkdnsrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179924@lists.php.net to get a copy of this message | ||
If you use the DNS 8.8.8.8 from Google on your server and check if the domain is right, you get by
"google domains" strange answers. Only "gmail" is not correct domain without
extention but Google DNS give Found back.
I think they use local names on there DNS servers!
$domain = 'gmail';
if(( !checkdnsrr( $domain, "MX" ) && !checkdnsrr( $domain, "A" )))
echo "Not Found";
else
echo "Found";
----
Server IP: 83.137.20.135
Probable Submitter: 94.212.246.240
----
Manual Page -- http://www.php.net/manual/en/function.checkdnsrr.php
Edit -- https://master.php.net/note/edit/104078
Del: integrated -- https://master.php.net/note/delete/104078/integrated
Del: useless -- https://master.php.net/note/delete/104078/useless
Del: bad code -- https://master.php.net/note/delete/104078/bad+code
Del: spam -- https://master.php.net/note/delete/104078/spam
Del: non-english -- https://master.php.net/note/delete/104078/non-english
Del: in docs -- https://master.php.net/note/delete/104078/in+docs
Del: other reasons-- https://master.php.net/note/delete/104078
Reject -- https://master.php.net/note/reject/104078
Search -- https://master.php.net/manage/user-notes.php