CNAME and gethostbyname()
Gisle Vanem
giva at users.sourceforge.net
Sat Jun 19 16:27:40 UTC 2004
I'm doing a small implementation of gethostbyname()
and friends. My question; if my resolver gets a CNAME
record for a query, where do I put the CNAME in the
hostent structure?
Do I (1) put it in 'h->h_name' (potentially replacing the old one).
Or (2) do I put in 'h->aliases[0]' with the original query name
put in 'h->h_name'?
AFAIK, the CNAME records are sometimes called "aliases"
but are technically referred to as "Canonical Name" entries.
Hence my confusion.
--gv
More information about the bind-users
mailing list