From owner-freebsd-questions Wed Jul 4 8:56:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from x1-6-00-50-ba-de-36-33.kico1.on.home.com (d141-119-162.home.cgocable.net [24.141.119.162]) by hub.freebsd.org (Postfix) with ESMTP id 80D9937B40B for ; Wed, 4 Jul 2001 08:56:40 -0700 (PDT) (envelope-from genisis@istar.ca) Received: from localhost (genisis@localhost) by x1-6-00-50-ba-de-36-33.kico1.on.home.com (8.11.3/8.11.3) with ESMTP id f64G1hk50022; Wed, 4 Jul 2001 12:01:43 -0400 (EDT) (envelope-from genisis@istar.ca) X-Authentication-Warning: x1-6-00-50-ba-de-36-33.kico1.on.home.com: genisis owned process doing -bs Date: Wed, 4 Jul 2001 12:01:43 -0400 (EDT) From: Dru X-X-Sender: To: Bob Hall Cc: Subject: Re: Changing the domain name In-Reply-To: Message-ID: <20010704115907.E49949-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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