NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gethostbyname(3) doesn't appear to work under NetBSD-5.2 and NetBSD-6.1.x when hostnames appear only in /etc/hosts



On 6/19/14, 3:37 AM, Brian Buhrow wrote:
> Has anyone else run into this behavior?

Hi, Brian.

I do not have that problem on my system:

===
$ uname -a
NetBSD violin.my.domain 6.1.4 NetBSD 6.1.4 (GENERIC) amd64
$ grep piano /etc/hosts
192.168.98.1    piano.my.domain piano
$ getent hosts piano
192.168.98.1      piano.my.domain  piano
===

I have not built a custom kernel, and I have not built the base system
from source.  Everything is from the install ISO or NetBSD build
tarballs.

Lewis


Home | Main Index | Thread Index | Old Index