#49183 [Com]: dns_get_record does not return NAPTR records when you query dot tel domains!
| From: | sunnyseh at hotmail dot com | Date: | Fri, 07 Aug 2009 13:08:35 +0000 |
| Subject: | #49183 [Com]: dns_get_record does not return NAPTR records when you query dot tel domains! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140782@lists.php.net to get a copy of this message | ||
ID: 49183
Comment by: sunnyseh at hotmail dot com
Reported By: sunnyseh at hotmail dot com
Status: Assigned
Bug Type: Network related
Operating System: windows
PHP Version: 5.3.0
Assigned To: pajoye
New Comment:
thanks - your a superstar!
any chance I could get the code before then? had a project I wanted to
work on over the weekend :)
Previous Comments:
------------------------------------------------------------------------
[2009-08-07 12:02:49] pajoye@php.net
Found the problem and have the fix already, I will commit it when I'm
back from holidays on Monday.
------------------------------------------------------------------------
[2009-08-07 10:00:24] sunnyseh at hotmail dot com
here you go...
output from: print_r(dns_get_record('ben.tel', DNS_ALL));
Array ( [0] => Array ( [host] => ben.tel [type] => A [ip] =>
194.77.54.2 [class] => IN [ttl] => 86400 ) [1] => Array ( [host] =>
ben.tel [type] => NS [target] => a0.cth.dns.nic.tel [class] => IN [ttl]
=> 3600 ) [2] => Array ( [host] => ben.tel [type] => NS [target] =>
d0.cth.dns.nic.tel [class] => IN [ttl] => 3600 ) [3] => Array ( [host]
=> ben.tel [type] => NS [target] => n0.cth.dns.nic.tel [class] => IN
[ttl] => 3600 ) [4] => Array ( [host] => ben.tel [type] => NS [target]
=> s0.cth.dns.nic.tel [class] => IN [ttl] => 3600 ) [5] => Array (
[host] => ben.tel [type] => NS [target] => t0.cth.dns.nic.tel [class] =>
IN [ttl] => 3600 ) [6] => Array ( [host] => ben.tel [type] => TXT [txt]
=> .tsm1pddx1 [entries] => Array ( [0] => .tsm [1] => 1 [2] => pddx [3]
=> 1 ) [class] => IN [ttl] => 60 ) [7] => Array ( [host] => ben.tel
[type] => TXT [txt] => Welcome to .tel, the new way to communicate! You
can't have Laura's telephone number, but more information is available
about her and the movie below. ;)) [entries] => Array ( [0] => Welcome
to .tel, the new way to communicate! You can't have Laura's telephone
number, but more information is available about her and the movie below.
;)) ) [class] => IN [ttl] => 60 ) [8] => Array ( [host] => ben.tel
[class] => IN [ttl] => 60 ) [9] => Array ( [host] => ben.tel [class] =>
IN [ttl] => 60 ) [10] => Array ( [host] => ben.tel [class] => IN [ttl]
=> 60 ) [11] => Array ( [host] => ben.tel [class] => IN [ttl] => 60 ) )
and if you actually browse to ben.tel you'll see the following
additional records:
Web (Buy YOUR dottel here)
telnic.org/business-buy.html Go to
More About The Movie Web (Learn more)
www.telnic.org Work Email
community@telnic.org
These are all naptr records stored in the dns of ben.tel.
Let me know if you need further info.
Thanks for looking at this so quickly :)
------------------------------------------------------------------------
[2009-08-07 09:44:21] jani@php.net
This short thing returns quite a long list:
# php -r 'var_dump(dns_get_record("ben.tel", DNS_NAPTR));'
Not sure what you actually expected it to return since you didn't
mention that. Your bug report is a bit buggy..
------------------------------------------------------------------------
[2009-08-07 08:58:19] sunnyseh at hotmail dot com
sorry don't have access to a unix env to give it a go.
was on windows - tested with several dot tel domains try henri.tel or
ben.tel
view these dot tel domains in a browser and you'll notice all the naptr
records, when using the php function you only get back the text records
------------------------------------------------------------------------
[2009-08-06 19:27:17] pajoye@php.net
Does it return it on unix? Which domain did you use to test?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/49183
--
Edit this bug report at http://bugs.php.net/?id=49183&edit=1