[ALUG] LAN addresses in /etc/hosts

Srdjan Todorovic todorovic.s at googlemail.com
Fri Dec 12 20:56:35 GMT 2008


Hi,

On Fri, 12 Dec 2008, Chris G wrote:

> "As built" ubuntu puts "isbd" in the /etc/hosts file as follows:-
> 
>     127.0.1.1 isbd

>From *Slackware's* /etc/hosts:

	# By the way, Arnt Gulbrandsen <agulbra at nvg.unit.no> says that 127.0.0.1
	# should NEVER be named with the name of the machine.  It causes
	# problems for some (stupid) programs, irc and reputedly talk. :^)
	#

So I would say change 127.0.0.1 to be localhost, and then set
192.168.1.4 as isbd (does that stand for anything?).

> However I need dnsmasq to tell other machines on the LAN that "isbd"
> is 192.168.1.4.  Do I just remove the above line and add:-
> 
>     192.168.1.4         isbd
> 
> Is the "127.0.1.1 isbd" only necessary when isbd's address is obtained
> using DHCP and thus not fixed so it needs to point at localhost?

See above. Though I don't know for sure, and leave someone else to
answer.

Srdjan




More information about the main mailing list