I'm probably missing something obvious here:
on a test machine, I have these entries in /etc/hosts:
# ipv6
35::0:0:2 dummy35_2_v6
35::0:0:3 dummy35_3_v6
35::0:0:4 dummy35_4_v6
35::0:0:5 dummy35_5_v6
# test
2001:0db8:3c4d:55:a00:20ff:fe8e:f3ad myhost
(the last is taken straight from the hosts(4) man-page)
"getent hosts dummy35_5_v6" doesn't print anything and returns 2 ("At least
one of the specified entry names was not found in the database.").
I ran truss on getent and saw that it calls gethostbyname(), which
according to the man-page doesn't support IPv6 addresses; since the getent
man-page states:
/etc/inet/hosts IPv4 and IPv6 host name database
in the FILES section, I would have assumed that it wouldn't use something
that's not IPv6 aware - since it apparently does, what else can I do to
verify name resolution for IPv6 addresses, short of writing something myself?
TIA
Michael
--
Michael Schuster http://blogs.sun.com/recursion
Recursion, n.: see 'Recursion'
_______________________________________________
networking-discuss mailing list
[email protected]