9 Oct 22:35
gethostbyname() & gethostbyaddr()
From: James Harton <james <at> helicopter.geek.nz>
Subject: gethostbyname() & gethostbyaddr()
Newsgroups: gmane.comp.lang.pike.user
Date: 2008-10-09 20:38:23 GMT
Subject: gethostbyname() & gethostbyaddr()
Newsgroups: gmane.comp.lang.pike.user
Date: 2008-10-09 20:38:23 GMT
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.
RSS Feed