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

Frederick C. Damen fred at damen.org
Sat Oct 16 04:45:24 BST 2010


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)

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



More information about the Dnsmasq-discuss mailing list