[Dnsmasq-discuss] BUG: uncaught dhcp-host syntax error DCHP works DNS lookup does not

richardvoigt at gmail.com richardvoigt at gmail.com
Sun Oct 17 01:24:10 BST 2010


On Fri, Oct 15, 2010 at 10:45 PM, Frederick C. Damen <fred at damen.org> wrote:

> if a period(.) is used as a separator between the mac address and the
> DNS host name in the dhcp-host config file
>
> dhcp-host=00:e0:61:06:1d:b3.jonathan,      192.168.0.64, 12h
>
> DHCP works (albeit no name assigned)
>

I suspect anything from the end of the MAC address until the next comma
simply gets ignored.  Might be useful to have a warning if there's any
non-whitespace characters in there.



>
> Oct 10 06:33:33 damen dnsmasq-dhcp[6705]: DHCPREQUEST(eth0) 192.168.0.64
> 00:e0:61:06:1d:b3
> Oct 10 06:33:33 damen dnsmasq-dhcp[6705]: DHCPACK(eth0) 192.168.0.64
> 00:e0:61:06:1d:b3
>
>
> but DNS lookup does not
>
> # dig @192.168.0.1 jonathan
>
> ; <<>> DiG 9.7.1-P2-RedHat-9.7.1-2.P2.fc13 <<>> @192.168.0.1 jonathan
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 52205
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;jonathan.                      IN      A
>
> ;; Query time: 0 msec
> ;; SERVER: 192.168.0.1#53(192.168.0.1)
> ;; WHEN: Fri Oct 15 22:13:16 2010
> ;; MSG SIZE  rcvd: 26
>
>
> All with no mention of a syntax error in /var/log/messages or
> log-facility file.
>
> Changing the period(.) to a comma(,) fixes the problem.
>
> though you might want to know,
>
> Fred
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20101016/f1b7b182/attachment.htm 


More information about the Dnsmasq-discuss mailing list