From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 07:01:18 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE49D16A4CE for ; Wed, 26 Nov 2003 07:01:18 -0800 (PST) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1444D43F75 for ; Wed, 26 Nov 2003 07:01:10 -0800 (PST) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([68.169.105.3]) by mta9.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20031126150113.YTHM1561.mta9.adelphia.net@barbish>; Wed, 26 Nov 2003 10:01:13 -0500 From: "fbsd_user" To: "Bryan Cassidy" , Date: Wed, 26 Nov 2003 10:01:08 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20031125185019.45791127.b_cassidy@bellsouth.net> Importance: Normal Subject: RE: hostname question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 15:01:19 -0000 Assigning an Host name to your FBSD system. Your FBSD operating system has internal software applications (like sendmail for one) that needs to know the fully qualified domain name of the PC it's running on. You do this by adding this option statement hostname= to /etc/rc.conf. This is the format to use. thisPCname.fakeDOMAINname.tld Where thisPCname came be any name you want to identify this particular pc on your LAN. Since the goal is to build an FBSD gateway server, the name of this PC should be gateway. Where .fakeDOMAINname can be any name you want as long as it's not an registered domain name on the public internet unless it's registered to you. Using FBSDyourlastname is an safe fake domain name to use here. So if my name is Tom Jones, I would use fbsdjones. Where .tld can be any of the standard TLD's currently in use. Such as .com or .usa or .info or .cc, but since .com is the most commonly used TLD, I recommend using .com Gateway.fbsdjones.com is an very acceptable fake host name to use. 1. ee /ect/rc.conf edit file 2. add this option statement to file hostname="Gateway.fbsdjones.com" 3. save your changed file 4. reboot When the reboot stops at the login prompt, the line displayed just above it will now contain your host name you just added to rc.conf. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Bryan Cassidy Sent: Tuesday, November 25, 2003 7:50 PM To: freebsd-questions@freebsd.org Subject: hostname question -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I got a quick question (just one for this minute). I was told I should add a hostname. (my domain name maybe? bsdjunky.dyndns.org? Will that do?) He said I should put an entry in /etc/hosts that maps the IP of your box to the hostname you gave it. Then put that hostname into main.cf. How would I go about adding a hostname to /etc/hosts that maps the IP of my box? I use DHCP if that matters. Never added anything to /etc/hosts before so don't know the syntax or anything about what I should add. Just add simply on the first line without any whitespaces bsdjunky.homeunix.org or something else? Thanks, Bryan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/w/jL3TDgpNGRSLARAhtSAJ0cPwzWA+vVNKJaeCAF0B+B0+xTXACgwFC2 dZI7IPZ01EuGONY/kqOp+dI= =H4Wk -----END PGP SIGNATURE----- _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"