Date: Tue, 02 May 2000 00:49:41 +0000 From: Harry Woodward-Clarke <Harry.Woodward-Clarke@S1.com> To: Art <a.cheung2@sympatico.ca> Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: hostname problem Message-ID: <390E2625.84C1D449@S1.com> References: <390E21D7.ADDC4236@sympatico.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
Hiya Arthur, > "hostname -s " "" and it still does not work. > > I figure out that I need a real hostname. Please tell me where to >find > info on give my machine a real hostname. I checked the handbook but I > find none. > > Yours sincerely, > > Arthur (newbie) > y'know, you came -> <- that close to finding the answer yourself ;') Try "man hostname" :') The output from that looks something like... HOSTNAME(1) FreeBSD General Commands Manual HOSTNAME(1) NAME hostname - set or print name of current host system SYNOPSIS hostname [-s] [name-of-host] DESCRIPTION Hostname prints the name of the current host. The super-user can set the hostname by supplying an argument; this is usually done in the network initialization script /etc/rc.network, normally run at boot time. Options: -s Trim off any domain information from the printed name. SEE ALSO gethostname(3) HISTORY The hostname command appeared in 4.2BSD. 4.2 Berkeley Distribution April 28, 1995 I actually set my hostname in /etc/rc.conf with a line very much like... hostname="FreeBSD.syd.s1.com" that way, all (ok, "most") of the 'customisations' are in the one place. hth, Haxxa 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?390E2625.84C1D449>