pear class NET_DNS under windows/apache

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

Moderators: macek, egami, gesf

bokehman
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

<?php
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("cnet.com", "A");

// print output
print_r($answer);
?>
but it returns this:

Code: Select all

;; search(cnet.com, A, IN) ;; query(cnet.com, 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
Contact:

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 1 guest

cron