Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2008 01:15:08 -0700
From:      Doug Hardie <bc979@lafn.org>
To:        freebsd-questions@freebsd.org
Subject:   IPv6 Host Names
Message-ID:  <8E33E385-4B77-4F05-86C0-F08B5E9E4F18@lafn.org>

next in thread | raw e-mail | index | archive | help
I am using the getnameinfo function to convert an IPv6 IP address to  
its name.  This works properly if the host info is in DNS.  However,  
if its in the /etc/hosts file and not DNS then all getnameinfo returns  
is the IP address.  If i call it with an IPv4 IP address then it looks  
up the host name in /etc/hosts.  I have tried various host entries:

fe80::216:cbff:febd:a4e5        mbook6
fe80::216:cbff:febd:a4e5%rl0        mbook6
fe80::216:cbff:febd:a4e5%rl0        mbook6.local

Is there a way to get getname info to obtain host names from the /etc/ 
hosts file.  The nsswitch.conf file has

files dns





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E33E385-4B77-4F05-86C0-F08B5E9E4F18>