From owner-freebsd-questions@FreeBSD.ORG Sun Aug 6 13:48:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B63BB16A4DF for ; Sun, 6 Aug 2006 13:48:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id E048F43D5C for ; Sun, 6 Aug 2006 13:48:01 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.6/8.13.6) with ESMTP id k76DlURu062906; Sun, 6 Aug 2006 14:47:31 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk k76DlURu062906 Message-ID: <44D5F2EC.5090901@infracaninophile.co.uk> Date: Sun, 06 Aug 2006 14:47:24 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.5 (X11/20060801) MIME-Version: 1.0 To: Ro BGCT References: <1414d640608060624k67066ca9i90db6e6bcc7699fa@mail.gmail.com> In-Reply-To: <1414d640608060624k67066ca9i90db6e6bcc7699fa@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB0FA5F92E3F931D4B1152D9A" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 06 Aug 2006 14:47:56 +0100 (BST) X-Virus-Scanned: ClamAV 0.88.3/1637/Sat Aug 5 23:37:00 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Confused on how to properly set /etc/hosts 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: Sun, 06 Aug 2006 13:48:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB0FA5F92E3F931D4B1152D9A Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Ro BGCT wrote: > Hello, >=20 > I am new to FreeBSD and am wondering if someone couldt tell me how to > properly set /etc/hosts. Right now it is: >=20 > 127.0.0.1 localhost localhost.my.domain >=20 > It says to replace "my.domain" with the domain name of my machine. If > I am using this box remotely and its hostname is "web1.server.net", > would I make the change like: >=20 > 127.0.0.1 localhost web1.server.net >=20 > Or am I doing it wrong? The instructions mean you should edit the line to read: 127.0.0.1 localhost localhost.server.net Generally if you have a fully qualified domain name eg 'web1.server.net' then 'web1' is frequently referred to as the 'host name' and 'server.net'= as the 'domain name'. It's shorthand, and it's technically not correct[*= ] but it's commonly understood. Don't get too hung up over the /etc/hosts thing. Arguably it's equally correct to have just: 127.0.0.1 localhost Any extras on that line won't make any noticeable difference at all on most setups. Cheers, Matthew [*] In the DNS *everything* (fully qualified or not) is a domain name, whether it refers to a host, a web site, a whole network or whatever. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigB0FA5F92E3F931D4B1152D9A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE1fLy8Mjk52CukIwRCNTmAJ0YNH7YeyY2X9kxiJZioQvcMqH1RgCgjVeY pSjvPwfjzW3YueMn17+OrZA= =vMh3 -----END PGP SIGNATURE----- --------------enigB0FA5F92E3F931D4B1152D9A--