I have two DNS servers on a single network - one on the router provided by
the ISP and one running dnsmasq on one of my own machines (which I'd like to
be preferred if it's available).

Dnsmasq is configured to give out a static address for each host I have
configured by keeping a list of MAC addresses in /etc/ethers and using that
to associate an Ethernet address with a host.

It sometimes rejects a lease request for reasons I cannot understand.  The
following example is case of a machine called "oenone" trying to obtain a
lease:

First, the relevant parts of dnsmasq.conf are:

domain-needed
bogus-priv
filterwin2k
resolv-file=/usr/local/etc/resolv.conf
local=/local/
addn-hosts=/usr/local/etc/hosts
expand-hosts
domain=varronet
dhcp-range=10.0.0.2,10.0.0.63,12h
read-ethers
dhcp-option=3,10.0.0.1
dhcp-option=6,10.0.0.7
dhcp-authoritative
log-queries
log-dhcp

=============
/etc/ethers contains:
08:00:27:57:c5:96  oenone

=============
/usr/local/etc/hosts contains:
10.0.0.13  oenone  oenone.local

=============

The dhcp log contains:

Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 available DHCP range: 
10.0.0.2 -- 10.0.0.63
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 client provides name: 
oenone
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 DHCPREQUEST(wlan0) 
10.0.0.13 08:00:27:57:c5:96
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 DHCPNAK(wlan0) 10.0.0.13 
08:00:27:57:c5:96 wrong server-ID
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 broadcast response
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 sent size:  1 option: 53 
message-type  6
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 sent size:  4 option: 54 
server-identifier  10.0.0.7
Feb  1 15:17:48 anukis dnsmasq-dhcp[792]: 2515125253 sent size: 15 option: 56 
message  77:72:6f:6e:67:20:73:65:72:76:65:72:2d:49...
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 available DHCP range: 
10.0.0.2 -- 10.0.0.63
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 client provides name: oenone
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 DHCPREQUEST(wlan0) 
10.0.0.13 08:00:27:57:c5:96
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 DHCPNAK(wlan0) 10.0.0.13 
08:00:27:57:c5:96 wrong server-ID
                                                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 broadcast response
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 sent size:  1 option: 53 
message-type  6
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 sent size:  4 option: 54 
server-identifier  10.0.0.7
Feb  1 15:17:59 anukis dnsmasq-dhcp[792]: 667454177 sent size: 15 option: 56 
message  77:72:6f:6e:67:20:73:65:72:76:65:72:2d:49...

Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 available DHCP range: 
10.0.0.2 -- 10.0.0.63
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 client provides name: oenone
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 DHCPREQUEST(wlan0) 
10.0.0.13 08:00:27:57:c5:96
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 DHCPNAK(wlan0) 10.0.0.13 
08:00:27:57:c5:96 wrong server-ID
                                                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 broadcast response
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 sent size:  1 option: 53 
message-type  6
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 sent size:  4 option: 54 
server-identifier  10.0.0.7
Feb  1 15:18:05 anukis dnsmasq-dhcp[792]: 667454177 sent size: 15 option: 56 
message  77:72:6f:6e:67:20:73:65:72:76:65:72:2d:49...

=============

I can't understand why dnsmasq is rejecting the DHCPREQUEST.


_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to