PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_DNS » Bug #7723

resolver errors

Details

Submitted2006-05-25 18:42 UTC
Frommarkjr at myprivacy dot ca
StatusBogus
PackageNet_DNS
PHP Version5.1.2
OSdebian
Roadmaps(Not assigned)

Comments

[2006-05-25 18:42 UTC] markjr at myprivacy dot ca

Description:
------------
After editing my RR.php to fix the problem described in Bug #7350, I now get these:

Warning: preg_match() expects parameter 2 to be string, object given in /usr/share/php/Net/DNS/Resolver.php on line 1025

And when I look at what's happening:

$domain = "easydns.org";
require_once('Net/DNS.php');
$resolver = new Net_DNS_Resolver();

$response = $resolver->query($domain, 'SOA');

print_r($resolver);

Net_DNS_Resolver Object
(
[nameservers] => Array
(
[0] => 205.210.42.42
[1] => 69.60.125.254
)

[port] => 53
[domain] =>
[searchlist] => Array
(
)

[retrans] => 5
[retry] => 4
[usevc] => 0
[stayopen] => 0
[igntc] => 0
[recurse] => 1
[defnames] => 1
[dnsrch] => 1
[errorstring] => query timed out
[answerfrom] => 205.210.42.42
[answersize] => 99
[tcp_timeout] => 120
[resolv_conf] => /etc/resolv.conf
[dotfile] => .resolv.conf
[confpath] => Array
(
[0] => /root
[1] => .
)

[debug] => 0
[useEnhancedSockets] => 1
[default] => Array
(
[domain] =>
)

)

I'm getting this query timed out on everthing, although I can do the same queries from the command line and gethostbyname() works fine.

Test script:
---------------
$domain = "easydns.org";
require_once('Net/DNS.php');
$resolver = new Net_DNS_Resolver();

$response = $resolver->query($domain, 'SOA');

print_r($resolver);

Expected result:
----------------
SOA results for $domain

Actual result:
--------------
0