Having got dnsmasq working somewhate better (thank you Brett!) I now need some advice on what to put in /etc/hosts on the machine that is running dnsmasq.
The machine's name on the local LAN is "isbd", to the outside world it is known as "home.isbd.net". It has a static IP address on the local LAN of 192.168.1.4.
"As built" ubuntu puts "isbd" in the /etc/hosts file as follows:-
127.0.1.1 isbd
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?
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@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
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@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.
On 12 Dec 2008, at 20:41, Chris G wrote:
Having got dnsmasq working somewhate better (thank you Brett!) I now need some advice on what to put in /etc/hosts on the machine that is running dnsmasq.
The machine's name on the local LAN is "isbd", to the outside world it is known as "home.isbd.net". It has a static IP address on the local LAN of 192.168.1.4.
"As built" ubuntu puts "isbd" in the /etc/hosts file as follows:-
127.0.1.1 isbd
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?
If you want to be able to refer to the localhost interface as isbd then you need the 127.0.0.1 isbd line in /etc/hosts