[Dnsmasq-discuss] Dnsmasq 2.55 does not seem to read /etc/hosts
Hai Nguyen
hai at jazinga.com
Mon Oct 4 16:58:07 BST 2010
Hi,
I've recently upgraded dnsmasq for my dhcp server from version 2.47 to
2.55. Version 2.55 does not seem to read /etc/hosts, which was not
changed in the upgrade.
> root at debbox:~# cat /etc/hosts
> 127.0.0.1 localhost localhost.localdomain
> # This is the hostname, do not clobber unless you also update the system's
> # hostname; sipsak depends on this setting being correct
> 127.0.1.1 debbox
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
>
> 192.168.50.1 fidqxo6nuyys29t2j70k.cpe.myserver.net myserver.local
> myserver.gui
On a dhcp client, with
> root at my-desktop:~# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:02:55:64:81:7c
> inet addr:192.168.50.225 Bcast:192.168.50.255
> Mask:255.255.255.0
> * * * * * *
> root at my-desktop:~# cat /etc/resolv.conf
> # Generated by NetworkManager
> nameserver 192.168.50.1
For version 2.47,
> root at my-desktop:~# traceroute fidqxo6nuyys29t2j70k.cpe.myserver.net
> traceroute to fidqxo6nuyys29t2j70k.cpe.myserver.net (192.168.50.1), 30
> hops max, 60 byte packets
> 1 fidqxo6nuyys29t2j70k.cpe.myserver.net (192.168.50.1) 0.265 ms
> 0.597 ms 0.579 ms
For version 2.55,
> root at my-desktop:~# traceroute
> fidqxo6nuyys29t2j70k.cpe.myserver.nettraceroute to
> fidqxo6nuyys29t2j70k.cpe.myserver.net (209.62.20.188), 30 hops max, 60
> byte packets
> 1 192.168.50.1 (192.168.50.1) 2.208 ms 2.184 ms 2.177 ms
> * * * * * *
Thanks,
Hai.
More information about the Dnsmasq-discuss
mailing list