localhost or LAN addresses in /etc/hosts
- From: Chris G <cl@xxxxxxxx>
- Date: Fri, 12 Dec 2008 18:16:38 +0000
How does one decide whether to put a machine's name as a localhost
address or an actual LAN address in /etc/hosts?
My ubuntu server machine's name is isbd, this appears in three places
in /etc/hosts at the moment:-
127.0.0.1 isbd localhost.localdomain localhost
127.0.1.1 isbd
192.168.1.4 home.isbd.net isbd 84-45-228-40.no-dns-yet.enta.net chris.isbd.net
This is all very well until one runs something like dnsmasq and get
localhost addresses when asking for the address of isbd.
I think the 127.0.1.1 is redundant and should be removed, can I also
remove the isbd from the 127.0.0.1 line as well? Why does it get put
there, maybe it's there for use when the machine gets its IP via DHCP
and thus it isn't fixed.
--
Chris Green
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- Re: localhost or LAN addresses in /etc/hosts
- From: Florian Diesch
- Re: localhost or LAN addresses in /etc/hosts
- From: NoOp
- Re: localhost or LAN addresses in /etc/hosts
- From: Derek Broughton
- Re: localhost or LAN addresses in /etc/hosts
- Prev by Date: Re: Cant get any ubuntu version/type to boot to the installer or livecd properly
- Next by Date: mounted directory repeating unexpected files and directories
- Previous by thread: Cant get any ubuntu version/type to boot to the installer or livecd properly
- Next by thread: Re: localhost or LAN addresses in /etc/hosts
- Index(es):
Relevant Pages
|