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