pear class NET_DNS under windows/apache

Do you have questions regarding Pecl or Pear? ask here!

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Mon May 30, 2005 5:41 am

pear class NET_DNS under windows/apache

Postby bokehman » Mon May 30, 2005 7:00 am

Hi all! I am trying to run the pear class NET_DNS under windows/apache.
I am using the following php:

Code: Select all

require_once 'Net/DNS.php';

// create object
$ndr = new Net_DNS_Resolver();

// uncomment this for debug output
$ndr->debug = 1;

// query for IP address
$answer = $ndr->search("", "A");

// print output
but it returns this:

Code: Select all

;; search(, A, IN) ;; query(, A, IN) ;; using extended PHP sockets 0
Any ideas what I am doing wrong? Maybe it can't find the dns.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Alexej Kubarev » Mon May 30, 2005 7:36 am

i will move this to PEAR section.. will come back when i find any solution, reason..

Return to “PEAR and PECL”

Who is online

Users browsing this forum: No registered users and 0 guests