Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gethostbyname and ipv6 question

15 views
Skip to first unread message

Mark

unread,
Mar 10, 2011, 5:05:51 PM3/10/11
to
I'm writing code to perform a DNS look up of a server name using
gethostbyname. The call returns a HOSTENT structure. That structure
has a hard coded family of 2, and a hard coded host address length of
4.

If I'm reading the documentation correctly, it means that this
interface call will return only IPv4 addresses, and I need not worry
myself with any IPv6 issues.

One - Is this true? Am I understanding this correctly?

Two - if true, then is there any rumours about when IPv6 will be
supported through this call?

Three - If I make a bunch of these calls, won't I be fragmenting core
until my task ends? Does anyone try to clean this up rather than
relying on zOS to clean this up?

thanks,
MarkV

0 new messages