[23] in SIPB IPv6
Re: IPv6 on Athena 9.0
daemon@ATHENA.MIT.EDU (Ken Raeburn)
Fri Sep 7 23:24:35 2001
To: sipbv6@mit.edu
From: Ken Raeburn <raeburn@MIT.EDU>
Date: 07 Sep 2001 23:24:23 -0400
In-Reply-To: <tx1puces2w2.fsf@mit.edu>
Message-ID: <tx1n1468ivs.fsf@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
I mentioned here a while ago that turning on IPv6 support on Solaris
was really easy, just needing an empty file created in /etc. Well, it
looks like I missed something. In order to get the C library to
return IPv6 addresses from getaddrinfo (the ipv6-capable, thread-safe
follow-on to gethostbyname), you need a line like this in
/etc/nsswitch.conf:
ipnodes: files dns
Otherwise you only get ipv4 addresses. With it, a program can get
both ipv4 and ipv6 addresses:
% ./telnet raeburn.org 99
Trying 3ffe:1ce1:0:fe30::1...
telnet: connect to address 3ffe:1ce1:0:fe30::1: Connection refused
Trying 2002:d03b:b244::1...
telnet: connect to address 2002:d03b:b244::1: Connection refused
Trying 208.59.178.68...
telnet: connect to address 208.59.178.68: Connection refused
Trying 18.101.0.225...
telnet: connect to address 18.101.0.225: Connection refused
telnet: Unable to connect to remote host: Connection refused
%
Linux (RH7.1) doesn't appear to need any such thing, although the libc
we've got has a getaddrinfo bug where if multiple ipv4 addresses are
returned, some of them may not get passed back to the application
(reported: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=49603).
Debian's "testing" release has the bug fixed.
Ken