James Harton | 9 Oct 22:35
Favicon

gethostbyname() & gethostbyaddr()

Hi there.

Other than using Protocols.DNS.Query is there a way to look up IPv6  
pointers and quad-A records?

 > gethostbyname("www.kame.net");
(7) Result: ({ /* 3 elements */
               "www.kame.net",
               ({ /* 1 element */
                   "203.178.141.194"
               }),
               ({ })
           })
 > gethostbyaddr("2001:200:0:8002:203:47ff:fea5:3085");
gethostbyaddr(): IP-address must be of the form a.b.c.d

Thanks,

James.


Gmane