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

Re: Changing Hostname



On 26 Oct 02 13:27:32 GMT, Antonio Rodriguez <arodriguez31@cfl.rr.com> wrote:

> How do you change your host name after your installation is done? 
> (network settings)

This works for me:

# echo "newhostname" >/etc/hostname
# hostname "newhostname"
# grep -ir "oldhostname" /etc/*

Fix up any references to the old hostname that the grep reveals. Reload
or restart any services affected. Logout and login again and you should
see the new hostname in prompts, etc.

> Also, what are valid parameters for host name? I made afresh 
> installation of woody in a 386 I got in an auction, and every time gdm 
> starts it complains about the host name. I also noticed that email sent 
> from console using simple mail commands doesn't go anywhere, it just 
> vanishes without trace. This does not happen in another woody box I have.

Try sticking to letters, numbers and dashes. Don't use underscores.

If you use Gnome you may find it complaining that it can't resolve the
hostname. If you don't have a static IP address, try adding the new
hostname as an alias for 127.0.0.1 aka localhost in your /etc/hosts file.

-- 
Frank Copeland
Home Page: <URL:http://thingy.apana.org.au/~fjc/> 
Not the Scientology Home Page: <URL:http://xenu.apana.org.au/ntshp/>



Reply to: