Date: Wed, 4 Jul 2001 12:01:43 -0400 (EDT) From: Dru <genisis@istar.ca> To: Bob Hall <rjhalljr@starpower.net> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Changing the domain name Message-ID: <20010704115907.E49949-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> In-Reply-To: <v04220800b768cc779d66@[66.44.59.226]>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Jul 2001, Bob Hall wrote: > >On Wed, 4 Jul 2001, Bob Hall wrote: > > > > > uname tells me that my domain name is 'my.domain'. If I try to set up > > > DNS to use any other domain name, I get an error message from named > > > saying that the name is bad, regardless of the hostname setting in > > > /etc/rc.conf. I think I set this when I was trying to get PPP to > > > work, with the idea that I could change it later. Unfortunately, I've > > > made so many changes in so many files while I've been learning how to > > > install and configure FreeBSD that I can't remember where I set this. > > > I been going through the documentation for hours and can't find where > > > to set this. Does anyone know where the domain name is set? > > > >Hi Bob, > > > >As the superuser: > > > >hostname name_you_want > > > >Cheers, > > > >Dru > > Thanks, but that doesn't work. Editing /etc/rc.comf, either manually > or with sysinstall doesn't work. Any of the above followed by > rebooting doesn't work. uname continues to print > "root@staunton.my.domain". If localhost.rev contains any domain name > other than 'my.domain', named tells me the name is bad and local DNS > won't work. > > I've tried > # sethostname("staunton.bodd_der.net", 21); > but I got a message about misplaced parentheses. Apparently, I > haven't learned how to decipher the man pages yet. > sethostname(const char *name, int namelen); Something's overwriting it then. If it's not in /etc/rc.conf, how about /etc/hosts ? What's the output of plain old "hostname" run without any arguments? Dru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010704115907.E49949-100000>