Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jul 2001 17:10:39 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        Bob Hall <rjhalljr@starpower.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Changing the domain name
Message-ID:  <3B4331EF.5DBD4FF2@i-clue.de>
References:  <20010704085700.F48882-100000@x1-6-00-50-ba-de-36-33.kico1.on.home.com> <v04220800b768cc779d66@[66.44.59.226]>

next in thread | previous in thread | raw e-mail | index | archive | help
uname -a lists information about the kernel. The hostname displayed
within its output is the host and user who compiled that kernel. The
only way to change that name is to build another kernel on the machine
you want its name to appear.

HTH
-Christoph Sold

Bob Hall schrieb:
> 
> >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);
> 
> Bob Hall
> 
> **** Majordomo@hpc.uh.edu
> >>>>  Know thyself? Absurd direction!
> **** Command 'know' not recognized.
> Drat. I wanted a list server and got an epistemological skeptic instead.
> MySQL maillist secret passwords: sql query database
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
Freundliche Grüße aus Waiblingen

Christoph Sold
--
Systemadministrator, i-clue GmbH, Endersbacher Str. 57, 71334 Waiblingen
Fon: (0 71 51) 9 59 01-12, Fax: (0 71 51) 9 59 01-55, Mail: so@i-clue.de

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?3B4331EF.5DBD4FF2>