I investigated, checkdnsrr() seems not to work correctly.
**** OK
$ php -r 'var_dump(checkdnsrr("4.13.113.203.list.dsbl.org","A"));'
bool(true)
$ host 4.13.113.203.list.dsbl.org
4.13.113.203.list.dsbl.org has address 127.0.0.2**** Bad
$ php -r 'var_dump(checkdnsrr("100.1.168.192.list.dsbl.org","A"));'
bool(true)
$ host 100.1.168.192.list.dsbl.org
Host 100.1.168.192.list.dsbl.org not found: 3(NXDOMAIN)checndnsrr() returns TRUE. However, A record cannot actually be referred to from DNS.
I checked at the source of PHP(ext/standard/dns.c).
The return value of res_search() is an unexpected value.
I made the patch using gethostbyname() instead of checkdnsrr().
Moreover, gethostbyname_win() was also made.
http://oss.poyo.jp/pub/contribute/usebb/2006-09-18/dnsrbl.patch
Thanks,
_______________
--
Tadashi "ELF" Jokagi http://poyo.jp/
HotPHPPER News: http://news.hotphpper.net/
Japan PHP Users group BBS: http://bbs.php.gr.jp/
Sorry, all contents are Japanese;-(
Tadashi "ELF" Jokagi http://poyo.jp/
HotPHPPER News: http://news.hotphpper.net/
Japan PHP Users group BBS: http://bbs.php.gr.jp/
Sorry, all contents are Japanese;-(
« Last edit by Dietrich on Tue Sep 19, 2006 4:16 pm. »



