On 2026-01-19 at 14:56 -0500, John Levine wrote:
> It appears that ngel <[email protected]> said:
> > Note that gethostbyname(3), returns the list of alias, so it needs
> > to
> > process the CNAMEs.
> > High-level programs generally don't need them, though, ...
> 
> I wrote a little test program that prints out the answers from
> gethostbyname() and found it provides a list of CNAMEs, but not the
> final name with the A record,


You are probably missing h_name:

$ ./gethostbyname info.whois.services.net
name: whois.identitydigital.gtm.iddg.io
aliases:
 - info.whois.services.net
 - whois.nic.info
 - whois.identitydigital.services
addrtype: IPv4
length: 4
addresses:
 - 52.37.99.5


_______________________________________________
DNSOP mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to