Re: How can I change my domainname on my server
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, Jan 10, 2002 at 07:25:48AM +1000, Paul Haesler wrote:
> You'll want to edit /etc/resolv.conf too.
>
> > On Thu, 10 Jan 2002 02:02:00 +1300 (NZDT)
> > Patrick Mackey <basilisk@deephousemusic.org> wrote:
> > > Edit '/etc/hostname' to reflect the change. Then run:
> > >
> > > hostname -F /etc/hostname
> > >
> > > That should do it.
> >
> > You might also want to edit /etc/mailname
There is also your /etc/hosts file. From my experience, in order for hostname
and dnsdomainname to work correctly (they use the underlying system call
GETHOSTNAME(2)), the file should have the following white space delimited
syntax:
IP MACHINE.FULLYQUALIFIEDDOMAINNAME MACHINE
This file usually has at least two entries, one for the loopback device
(127.0.0.1) and one for the ethernet device (we'll assume 192.168.20.30). A
sample file might look like:
127.0.0.1 localhost.localdomain localhost
192.168.20.30 foo@bar.org foo
good luck,
donfede
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8Pe2ISeRbV/op2s4RAtBBAJ4gMjg7RUbuqKnrecHbLp8xK2QjCQCff5Nl
U2TBXftnz5Kb21iD9GGRnXQ=
=M8fD
-----END PGP SIGNATURE-----
Reply to: