Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2002112

Re: [PHP-DEV] [PATCH] php4/configure.in.patch & php4/ext/standard/dns_get_record.patch From: Marcus Börger (marcus.boerger <email protected>)
Date: 11/17/02

The last patch had some minor problems. Here is a reworked one attached.
I did:
-change php_error to php_error_docref
-added some error messages which should be rewritten again
  i only wanted to point us to the problems.
-collected the autoconf information into one single define which
  can be tested
-ws fixes
-minor fixes
-made the old functions alias names to the new dns_xxx functions

For me this stuff works now but i would expect dns_get_error(name,DNS_ANY)
to return all possible records. But when i use the call with DNS_ANY i receive
the NS records. To receive the A and MX entries i have to call the function
with the DNS_A and DNS_MX respectively. See example below

Any comments?

marcus

[marcus <email protected> php4-HEAD]$ php -r
'var_dump(dns_get_record("marcus-boerger.de",DNS_ANY));'
array(3) {
   [0]=>
   array(5) {
     ["host"]=>
     string(17) "marcus-boerger.de"
     ["type"]=>
     string(2) "NS"
     ["target"]=>
     string(14) "dns.aixtra.net"
     ["class"]=>
     string(2) "IN"
     ["ttl"]=>
     int(86400)
   }
   [1]=>
   array(5) {
     ["host"]=>
     string(17) "marcus-boerger.de"
     ["type"]=>
     string(2) "NS"
     ["target"]=>
     string(20) "ns2.pop-hannover.net"
     ["class"]=>
     string(2) "IN"
     ["ttl"]=>
     int(86400)
   }
   [2]=>
   array(5) {
     ["host"]=>
     string(17) "marcus-boerger.de"
     ["type"]=>
     string(2) "NS"
     ["target"]=>
     string(21) "magrathea.aachalon.de"
     ["class"]=>
     string(2) "IN"
     ["ttl"]=>
     int(86400)
   }
}
[marcus <email protected> php4-HEAD]$ php -r
'var_dump(dns_get_record("marcus-boerger.de",DNS_A));'
array(1) {
   [0]=>
   array(5) {
     ["host"]=>
     string(17) "marcus-boerger.de"
     ["type"]=>
     string(1) "A"
     ["ip"]=>
     string(14) "212.42.230.204"
     ["class"]=>
     string(2) "IN"
     ["ttl"]=>
     int(86400)
   }
}

At 22:56 17.11.2002, Pollita wrote:
>This is to update configure.in so that configure checks for the existence
>of res_nmkquery, res_nsend, and dn_expand which are needed by
>dns_getrecord()..... which is appearantly going to be dns_get_record
>now....
>
>Speaking of which I've also attached dns_get_record.patch.txt to update my
>previous patch which introduced the function as dns_getrecord
>
>Pasting as text as well because of recent not-always-attaching issues in
>my mail client.
>(....)

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php