From owner-freebsd-questions Thu Nov 16 15: 0:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from socrates.nmia.com (socrates.nmia.com [198.59.166.170]) by hub.freebsd.org (Postfix) with ESMTP id E19BF37B4C5 for ; Thu, 16 Nov 2000 15:00:18 -0800 (PST) Received: from plato.nmia.com(really [198.59.166.165]) by socrates.nmia.com via sendmail with smtp id for ; Thu, 16 Nov 2000 16:00:13 -0700 (MST) (Smail-3.2.0.109 1999-Oct-27 #6 built 2000-Oct-18) Received: by plato.nmia.com id m13wY0r-0011gMC; Thu, 16 Nov 2000 16:00:13 -0700 (MST) Date: Thu, 16 Nov 2000 16:00:13 -0700 From: Stephen Fisher To: Daniel Domengeaux Cc: freebsd-questions@freebsd.org Subject: Re: Hostname/IP--How to Message-ID: <20001116160013.B7647@plato.nmia.com> References: <3A14639D.ECFEADA4@fremont.sourcee.com> <01d801c0501f$0a701620$0d00a8c0@comspace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <01d801c0501f$0a701620$0d00a8c0@comspace.com>; from freebsd@supa-fly.org on Thu, Nov 16, 2000 at 04:45:51PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Actually your best bet is to use your network IP address (even if it's a private one) if you have a NIC card: 127.0.0.1 localhost 10.1.1.1 machine machine.domain.com If you need to modify the 127.0.0.1 (running TCP/IP but no NIC card with an IP on it) then I would put something like: 127.0.0.1 localhost machine machine.domain.com That way 127.0.0.1 looks up as localhost, at least first. And you can still lookup localhost to be 127.0.0.1 :-) On Thu, Nov 16, 2000 at 04:45:51PM -0600, Daniel Domengeaux wrote: > | How do I make my hostname (ex: seal.fans.com) bind with the IP address > | so when I ping, ftp, or telnet to that UNIX box, I can type in the > | hostname instead of the IP address? > > edit the /etc/hosts > > 127.0.0.1 seal.fans.com seal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message