From owner-freebsd-questions Mon May 1 17:49:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from watson.ficsgrp.com (watson.ficsgrp.com [194.74.111.3]) by hub.freebsd.org (Postfix) with ESMTP id 972A837B80C for ; Mon, 1 May 2000 17:49:01 -0700 (PDT) (envelope-from harry.woodward-clarke@s1.com) Received: from mail.au.ficsgrp.com ([194.74.111.35]) by watson.ficsgrp.com (Netscape Messaging Server 3.6) with ESMTP id AAA32A0 for ; Tue, 2 May 2000 02:48:58 +0200 Received: from S1.com ([172.16.48.219]) by mail.au.ficsgrp.com (Netscape Messaging Server 3.6) with ESMTP id 1773; Tue, 2 May 2000 10:52:22 +1000 Message-ID: <390E2625.84C1D449@S1.com> Date: Tue, 02 May 2000 00:49:41 +0000 From: Harry Woodward-Clarke X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Art Cc: FreeBSD-questions@FreeBSD.ORG Subject: Re: hostname problem References: <390E21D7.ADDC4236@sympatico.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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