[378] in netbsd-help mailing list archive
Re: hostname changes
daemon@ATHENA.MIT.EDU (Greg Hudson)
Sun Oct 22 13:43:09 1995
To: Edwin Foo <efoo@MIT.EDU>
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Sun, 22 Oct 1995 13:28:25 EDT."
<199510221728.NAA00393@fooworld.MIT.EDU>
Date: Sun, 22 Oct 1995 13:44:14 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> what does it take to change the hostname of a machine without having
> to reinstall NetBSD? Say from foo.mit.edu to oof.mit.edu or
> something like that.
You need to change:
/etc/hosts to have an entry for oof.mit.edu
/etc/myname to read oof intsead of foo
/etc/mygate if you changed subnets
Also, you have a file called something like /etc/hostname.ep0 (the
"ep0" might be different). That needs to be changed to read oof
instead of foo as well.
I'll write a script for this some time.