Date: Thu, 16 Nov 2000 16:00:13 -0700 From: Stephen Fisher <sfisher@nmia.com> To: Daniel Domengeaux <freebsd@supa-fly.org> Cc: freebsd-questions@freebsd.org Subject: Re: Hostname/IP--How to Message-ID: <20001116160013.B7647@plato.nmia.com> In-Reply-To: <01d801c0501f$0a701620$0d00a8c0@comspace.com>; from freebsd@supa-fly.org on Thu, Nov 16, 2000 at 04:45:51PM -0600 References: <3A14639D.ECFEADA4@fremont.sourcee.com> <01d801c0501f$0a701620$0d00a8c0@comspace.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001116160013.B7647>