Corrupted entries in hosts file?
-
Twice now I've seen complaints in the log about hosts entries (sorry, I don't remember what the specific message was). When I looked at /var/etc/hosts on the gateway, I saw the problem. (hypothetical example here) If I was supposed to have:
10.0.0.98 tivo-fr.xxx.com10.0.0.222 Denise.xxx.com xxx# dynamic entry from dhcpd.leases
when it should be:
10.0.0.98 tivo-fr.xxx.com 10.0.0.222 Denise.xxx.com Denise # dynamic entry from dhcpd.leases
Not sure if this is being caused by dnsmasq or not? If so, the devs can't really do anything about it, I suspect. Just wanted to mention it.
-
I have the same problem. As of 2.0-BETA4 (amd64) built on Wed Oct 27 20:32:14 UTC 2010, this has not been fixed.
Any idea which file(s) I should look at?
Regards,
John -
No idea, sorry :(
-
Using your example:
10.0.0.98 tivo-fr.xxx.com 10.0.0.99 gertrude.xxx.com Gertrude 10.0.0.222 Denise.xxx.com Denise # dynamic entry from dhcpd.leases
my /etc/hosts looks more like
10.0.0.98 tivo-fr.xxx.com 10.0.0.9910.0.0.222 Denise.xxx.com xxx# dynamic entry from dhcpd.leases
It's actually clipping at the first \t (tab), and the last static entry (gertrude) isn't mapped.
Regards,
John -
Test newer snapshots.
-
Hello Ermal,
you mean newer than 20101027? I'll wait until I can test daily snapshots in a VM, I got properly spanked last Friday with the latest kernel issues :-)
Unless this has been fixed in the last few days, I'll have a proper look tomorrow. Any idea as to which scripts / files are involved with pushing the dynamic dhcp leases to /etc/hosts ? Any pointers would be appreciated!
Regards,
John -
Kernel issues regarding panics are solved.
As far as the scripts/programs involved you can check commits.