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

Request #18532 Patch: Adding support for IPv6 hosts
Submitted: 2011-05-13 03:17 UTC
From: skion Assigned: bate
Status: Analyzed Package: Net_DNS (version 1.0.7)
PHP Version: 5.3.6 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 13 + 26 = ?

 
 [2011-05-13 03:17 UTC] skion (Pieter Ennes)
Description: ------------ The attached patch adds support for querying IPv6-enabled name servers.

Comments

 [2011-05-13 03:19 UTC] skion (Pieter Ennes)
 [2011-05-13 03:59 UTC] doconnor (Daniel O'Connor)
Hi Pieter, any chance of a small test case covering the new functionality as well?
 [2011-05-13 03:59 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Analyzed
 [2011-05-13 04:38 UTC] skion (Pieter Ennes)
Sorry, no time for a proper unit test, but something like this would do maybe? <? require_once('Net/DNS.php'); $pear = new Net_DNS_Resolver(); $pear->debug = true; // literal $pear->nameservers = array('2001:7b8:3:47:20d:b9ff:fe14:70d4'); var_dump($pear->query("www.sixxs.net", 'A')); // ipv6 preferred $pear->nameservers = array('ns.paphosting.net'); var_dump($pear->query("www.sixxs.net", 'A')); ?>
 [2011-06-28 21:28 UTC] horde_user (Horde User)
Works for me thanks! Tested on Linux Horde Linux XXXXX 2.6.24-29-generic #1 SMP Thu Apr 21 16:30:46 UTC 2011 x86_64 GNU/Linux Tested using following PHP and editing /etc/resolv.conf to add or delete name servers with IPv6 transport from Hurricane Electric. Before this patch, windows were failing to close when sending mail using the Horde dynamic mailer (which uses PHP Pear) when IPv6 name servers were configured. Now it's solved. <?php ini_set('include_path',ini_get('include_path').':../includes:/var/www/horde/pear/php:'); require_once('Net/DNS.php'); $resolver = new Net_DNS_Resolver(); $resolver->debug = 1; // Turn on debugging output to show the query $response = $resolver->query('google.com'); if ($response) { foreach ($response->answer as $rr) { $rr->display(); } } ?>
 [2011-10-31 17:54 UTC] doconnor (Daniel O'Connor)
-Assigned To: +Assigned To: bate