On Tue, Aug 25, 1998 at 03:06:09PM -0700, Alan Su wrote: > when i call gethostname() on my hamm, it returns only the name of the > machine, rather than a fqdn. i distinctly remember that when i was > running bo, i got a fqdn. does anyone know how i can make it return > the fqdn? or is there another function i should be using? thanks. > > (btw, getdomainname() returns "(none)", which suggests to me that > something else is going on here. am i right?)
I had this at work the other day, the problem was /etc/hosts: 1.2.3.4 name name.domain.com rather than 1.2.3.4 name.domain.com name which works much better Adrian email: [EMAIL PROTECTED], http://www.poboxes.com/adrian.bridgett Windows NT - Unix in beta-testing. PGP key available on public key servers Debian Linux http://www.debian.org The superior Linux distribution