[ALUG] LAN addresses in /etc/hosts

Chris G cl at isbd.net
Fri Dec 12 21:27:05 GMT 2008


On Fri, Dec 12, 2008 at 08:56:35PM +0000, Srdjan Todorovic wrote:
> 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?).
> 
I already have a "127.0.0.1 localhost" line, the 127.0.1.1 line gets
added by ubuntu installation I think when you tell it the machine name
is "isbd".

Yes, "isbd" does stand for something, "it shouldn't be difficult".  :-)


> > 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.
> 
Yes, OK.

-- 
Chris Green




More information about the main mailing list