note 113537 added to function.checkdnsrr
| From: | KrisztinFerenczi | Date: | Sun, 27 Oct 2013 11:12:13 +0000 |
| Subject: | note 113537 added to function.checkdnsrr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197330@lists.php.net to get a copy of this message | ||
criffoh at gmail dot com is right. Before you check domain, you must convert to ascii with
idn_to_ascii function:
http://us2.php.net/manual/en/function.idn-to-ascii.php
.
var_dump(checkdnsrr('ñandu.cl', 'A')); // returns false
var_dump(checkdnsrr(idn_to_ascii('ñandu.cl'), 'A')); // return true
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.checkdnsrr.php
Edit -- https://master.php.net/note/edit/113537
Del: integrated -- https://master.php.net/note/delete/113537/integrated
Del: useless -- https://master.php.net/note/delete/113537/useless
Del: bad code -- https://master.php.net/note/delete/113537/bad+code
Del: spam -- https://master.php.net/note/delete/113537/spam
Del: non-english -- https://master.php.net/note/delete/113537/non-english
Del: in docs -- https://master.php.net/note/delete/113537/in+docs
Del: other reasons-- https://master.php.net/note/delete/113537
Reject -- https://master.php.net/note/reject/113537
Search -- https://master.php.net/manage/user-notes.php