From owner-freebsd-questions@FreeBSD.ORG Sat Jan 31 17:02:22 2004 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 D3E4A16A4CF for ; Sat, 31 Jan 2004 17:02:22 -0800 (PST) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC3A643D41 for ; Sat, 31 Jan 2004 17:02:07 -0800 (PST) (envelope-from Barbish3@adelphia.net) Received: from barbish ([68.169.105.190]) by mta9.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040201010202.ZDVU27240.mta9.adelphia.net@barbish>; Sat, 31 Jan 2004 20:02:02 -0500 From: "JJB" To: "Yuri Grebenkin" , Date: Sat, 31 Jan 2004 20:02:01 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: What hostname should I set? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 01:02:23 -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 of this Installation Guide 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 of course 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. ee /ect/rc.conf and add this option statement to the file hostname="gateway.fbsdjones.com" Save the changed file and 'reboot' your system for your edit changes to take effect. 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. Installer Note: If you have an official registered domain name that you want to use for your email sendmail server, then use that in the hostname= statement. Example, if my registered domain name was cyberman.com then hostname='cyberman.com' is what I would code. Hosts File FBSD looks in this file first to reconcile private LAN domain names to IP address, this includes the domain name you assigned to this FBSD system with the 'hostname=' statement from the above step. ee /etc/hosts Find this statement. 127.0.0.1 localhost localhost.my.domain change this to 127.0.0.1 localhost gateway.fbsdjones.com Save the changed file and 'reboot' your system for your edit changes to take effect. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Yuri Grebenkin Sent: Saturday, January 31, 2004 5:36 PM To: freebsd-questions@freebsd.org Subject: What hostname should I set? Hi. I am a full time FreeBSD user at home and all I need from networking is dialup via modem to my ISP. I get my IP dynamically and thus it may vary from call to call. I have migrated to FreeBSD from RH Linux some time ago. RH installation procedure sets hostname and domain as 'localhost' and 'localdomain'. Under FreeBSD there is no default value of hostname. So I've tryed to set it to something like 'me_at_home' or didn't touch it at all. In last case there was some troubles, but they were not critical. So... I wonder what hostname an average user at home should set? I use 4.9-RELEASE. Thank you! (please CC to my email) Yuri _______________________________________________ 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"