Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.7

Bug #13593 Net_DNS Not workin on windows
Submitted: 2008-04-04 17:33 UTC
From: lostboy669 Assigned: bate
Status: Closed Package: Net_DNS (version 1.0.0)
PHP Version: Irrelevant OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2008-04-04 17:33 UTC] lostboy669 (RenĂ© Montiel)
Description: ------------ I have been traying to get to work Net_DNS on windows for months, finally i figured out myself not to much documentation on this for windows. So i decided to contribute for this, don't know if it's the correct channel. The problem resides in var $resolv_conf, for windows users this must be set to the absolute path of resolv.conf Test script: --------------- <?php require ('Net/DNS.php'); $resolver = new Net_DNS_Resolver(); $response = $resolver->query('example.com'); if ($response) { foreach ($response->answer as $rr) { $rr->display(); } } ?> Expected result: ---------------- example.com. 172800 IN A 208.77.188.166 Actual result: -------------- Before var $resolv_conf correction no result After var $resolv_conf correction example.com. 172800 IN A 208.77.188.166

Comments

 [2008-04-23 11:39 UTC] doconnor (Daniel O'Connor)
Silly question, where *does* resolv.conf live on windows typically?
 [2008-05-14 08:10 UTC] bate (Marco Kaiser)
O, i know this problem. I will fix this in the next version.
 [2008-06-24 12:24 UTC] rcemsak (Rasto Cemsak)
There is no resolv.conf in the Windows system, but you can create what Net_DNS_Resolver expects. Open some editor in Windows (e.g. notepad.exe) and create file resolv.conf in C:\WINDOWS\system32\drivers\etc folder. Write following two lines into this newly created file (but change these foolish example numbers for real nameserver's IPs of your Windows machine): nameserver 111.222.333.444 nameserver 555.666.777.888 Then change value of class member in the Resolver.php as follows: var $resolv_conf = 'C:\WINDOWS\system32\drivers\etc\resolv.conf'; Save and enjoy!
 [2009-05-06 03:08 UTC] olrs (Hieg Khatcherian)
Any ETA on a fix for this bug? This is making Net_DNS completely unusable on Windows.
 [2010-08-09 20:18 UTC] bate (Marco Kaiser)
-Status: Assigned +Status: Closed
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/