At Wed, 24 Jul 2002 16:36:48 +1000, John Ferlito wrote: kermit:/usr/src# hostname -s kermit kermit:/usr/src# hostname -d inodes.org kermit:/usr/src# hostname -f kermit.inodes.org kermit:/usr/src# > the domains comes from etc/hosts in etc/hosts you should have > 192.168.1.x kermit.inodes.org kermit > I'm pretty sure this is how it works. Had to work it out a while > back for some sort of similar problem.o Basically you have to have > an entry for your own hostname and ip address in /etc/hosts for > things to work right. Having an entry in DNS somewhere probably > works as well.
"hostname -v -f" should describe exactly those steps fairly clearly. note that "dnsdomainname" is an alias for "hostname -d" and is probably what the original poster wanted instead of "domainname". -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
