>Wmmm, strangely enough, current getaddrinfo() still specifying
>AI_CANONNAME inside. (It should be removed to conform current
>spec, but as far as I checked, still there seems to be apps
>which got into trouble with that change.)
I'm not sure what is meant in above (shin, if possible email me
in Japanese privately).
- specwise, AI_CANONNAME does not do reverse lookup. it just
mean ai_canonname field must be filled in by hp->h_name.
- old KAME code did reverse lookup by mistake.
- current KAME code (and freebsd-current code) does not perform
reverse lookup.
So I believe what Ben is seeing as a problem is forward lookup
for IPv6 address. Because getaddrinfo uses following calls,
getipnodebyname(hostname, AF_INET6)
getipnodebyname(hostname, AF_INET)
actual search order will be like this (Ben prefers /etc/hosts than
DNS).
lookup /etc/hosts for IPv6 address
lookup DNS for IPv6 address <---
lookup /etc/hosts for IPv4 address
lookup DNS for IPv4 address
Ben dislikes the second item on the above.
NOTE: all existing getaddrinfo code (BIND8 = NRL, BIND9, KAME) has
the same problem. To address this right I think there needs to be a
big rewrite in src/lib/libc/net (can we meet 4.0 deadline with it?
I'm not sure).
itojun
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message