At Sat, 1 Jun 2002 14:36:29 +1000, Alex Samad wrote: > Also how do I go about changing the hostname of the machine, including the > domain. > > Can I just change the /etc/hostname or should that only be the hostname part > or do I change /etc/hosts
you only have to change /etc/hostname to change the hostname. (the bootup scripts do "hostname `cat /etc/hostname`") the full hostname (including domain) is determined by looking up the hostname (in /etc/hosts or dns, or whatever /etc/nsswitch.conf says), try "hostname -f -v" sometime. so you will need to arrange it so that this returns the new domain name. usually this involves changing /etc/resolv.conf to include the new domain name in the search suffixes and to change /etc/hosts to match against the new name. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
