OpenWrt Forum Archive

Topic: DNSMASQ NAK's Workstations Request when router has been rebooted

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello all,

among some tiny other issues I sometimes have the problem that when the router has been rebooted but my box has been on. The DNSMASQ DHCP server NAK's my workstations request:

See here:

May  6 18:30:33 (none) kern.info dnsmasq[2257]: DHCPREQUEST(br0) 192.168.86.40 00:b0:d0:14:72:c5
May  6 18:30:33 (none) kern.info dnsmasq[2257]: DHCPNAK(br0) 192.168.86.40 00:b0:d0:14:72:c5 lease not found
May  6 18:30:40 (none) kern.info dnsmasq[2257]: DHCPDISCOVER(br0) 00:b0:d0:14:72:c5
May  6 18:30:40 (none) kern.info dnsmasq[2257]: DHCPOFFER(br0) 192.168.86.40 00:b0:d0:14:72:c5
May  6 18:30:40 (none) kern.info dnsmasq[2257]: DHCPREQUEST(br0) 192.168.86.40 00:b0:d0:14:72:c5
May  6 18:30:40 (none) kern.info dnsmasq[2257]: DHCPACK(br0) 192.168.86.40 00:b0:d0:14:72:c5 rembrandt

The effect is that all my tcp sessions get cut off. Some seconds later DNSMASQ assigns my workstation the exact same ip which it had before (because it's in "ethers").
Why can't dnsmasq simply ACK the first request (there's no lease in dhcp.leases but at least a fixed assignment...)

Thanks for your help!

dnsmasq seems to be one the slowest dhcp server I have ever met too. It also depends from your dhcp client, for instance, I use gentoo's dhcpd with -t 5, and everything is quite fast, I wait maybe 1 sec, and it's ok.

For your case, well, try other dhcp clients, and see whether it's better or not ? Maybe adding some dnsmasq options helps ?

If you uncomment the "dhcp-authorative" line in dnsmasq.conf it should speed up the replies.
(not sure how to solve the nak issue)

The dhcp server already is "authoritative"...
I think something has to be done to the coding... but unfortunately I'm not the worlds best coder ;-)

"Me too" post.

I have the same issue as cpalm: after reboot Windows XP computer getting NACK on first renewal, but after repeating the command immediately (I use ipconfig /renew) everything is o.k. Strange.

The discussion might have continued from here.