php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51968 dns_get_record() [function.dns-get-record]: res_nsend() failed
Submitted: 2010-06-01 18:49 UTC Modified: 2013-10-02 05:39 UTC
Votes:10
Avg. Score:4.1 ± 1.0
Reproduced:9 of 9 (100.0%)
Same Version:2 (22.2%)
Same OS:1 (11.1%)
From: php at hm2k dot org Assigned: mike (profile)
Status: Closed Package: *Network Functions
PHP Version: 5.3.2 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at hm2k dot org
New email:
PHP Version: OS:

 

 [2010-06-01 18:49 UTC] php at hm2k dot org
Description:
------------
Certain hosts cause the dns_get_record() to fail with the following error:

Warning: dns_get_record() [function.dns-get-record]: res_nsend() failed in dns.php  on line 3

A live example of this error is found here:

http://www.easywhois.com/index.php?mode=dnsinfo&domain=jjpny.com

Test script:
---------------
<?php

print_r(dns_get_record('jjpny.com'));

?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-06 08:30 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-06-06 08:30 UTC] kalle@php.net
Please be more specific, which OS does this happen on?
 [2010-06-06 12:32 UTC] hm2k@php.net
Not Windows. I was testing on CentOS 4 and 5, but based on Google results, I'd say it's more common across many Linux based servers.
 [2010-10-12 13:57 UTC] boyan at peychev dot net
Hello,

I have this problem too:

Warning: dns_get_record() [function.dns-get-record]: res_nsend() failed in .....

Example problematic domains:

dns_get_record('gtvip.com.cn', DNS_NS);
dns_get_record('fztuan.tk', DNS_NS);
dns_get_record('forumgeeks.vv.cc', DNS_NS);
dns_get_record('en91.tk', DNS_NS);
dns_get_record('serverdns.ce.ms', DNS_NS);


PHP Version: 5.2.6-1+lenny9 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug  4 2010 
03:25:57) 
OS: Debian 5.0.6

Regards,
Boyan Peychev
 [2011-09-26 10:04 UTC] m dot alsemany at gmail dot com
even if I make an Exception 
this error come !!

the only way to hide is just close the reporting from php.ini :(
 [2011-10-07 11:59 UTC] b1gag3 at hotmail dot de
using error suppression (@dns_get_record('example.com')) works, even it doesn't solve the problem...
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2013-02-18 20:53 UTC] hm2k@php.net
-Status: No Feedback +Status: Open
 [2013-02-18 20:53 UTC] hm2k@php.net
What feedback were you expecting?
 [2013-10-02 05:39 UTC] mike@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: mike
 [2013-10-02 05:39 UTC] mike@php.net
Fixed since 5.3+
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC