From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 00:17:11 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C620416A419 for ; Thu, 30 Aug 2007 00:17:11 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 90A6113C45A for ; Thu, 30 Aug 2007 00:17:11 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l7U0GwtA049628 for ; Wed, 29 Aug 2007 19:16:58 -0500 (CDT) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Wed, 29 Aug 2007 19:16:57 -0500 User-Agent: KMail/1.9.7 References: <12398274.post@talk.nabble.com> In-Reply-To: <12398274.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200708291916.58069.freebsd@dfwlp.com> X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on pollux.dfwlp.com Subject: Re: FreeBSD Hostname Question - Whats The Proper Way X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 00:17:11 -0000 On Wednesday 29 August 2007 19:05:06 Peter Pluta wrote: > I have a box with 5 ip's pointing to it. Most of the things I run (http, > smtp) are virtual or allow me to specify the hostname (postfix) - so I'm > wondering what the machines hostname should be? By default it's > localhost.localdomain. This has always confused me from the begining when I > first started using FreeBSD, can anyone chime in? It would greatly > appreciated. > > Thanks! its fairly simple actually. example: my system's name is athena. my domain, is dfwlp.com... thus my computer is athena.dfwlp.com. the hostname command can show you waht your current hostname is: [jhorne@athena ~] $ hostname athena.dfwlp.com also, there is a line in /etc/rc.conf that specifys the system's hostname when you start up: [jhorne@athena ~] $ cat /etc/rc.conf|grep hostname hostname="athena.dfwlp.com" finally, when you are installing freebsd, during the "network configuration" page, the "Host:" box would be where i would put "athena", and the "Domain:" box would be where i put "dfwlp.com" (when you set your domain, you dont put the . in front of the domain name, ie, dont put .dfwlp.com in the domain box). cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org freebsd@dfwlp.com