Re: [Dnsmasq-discuss] why does dnsmasq reject lease request?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Some possible confusion here between DNS servers and DHCP servers. If the two _DNS_ servers the OP refers to are both also DHCP servers, then Jim's advice is good. If the OP has two DNS servers, one of which is dnsmasq which is also acting as the DHCP server (which is how I read it) then the problem looks like a broken DHCP client, which is attempting to restart using a DHCP lease it has on some other DHCP server. On receipt of the DHCPNAK reply, it should react by doing a DHCPDISCOVER and find a DHCP server and lease from scratch, rather then continually retrying. A work around may be to remove whatever state the broken DHCP client has (/var/lib/dhcp or similar, forget leases using the GUI in Windows/Apple, factory reset for IoT-type stuff. Cheers, Simon. On 02/02/17 14:00, Jim Alles wrote: > Hello Will, > > You would need a wireshark capture to see the issue here, the log > does not tell the whole story. > > It would appear that both DHCP servers are answering the clients's > requests. > > We don't know your network configuration, or how the ISP's 'router' > is set up to be able to say for sure. But you should limit the IP > range of each to avoid the other. > > What I do, is use dnsmasq in a (mostly) open source GUI wrapper > called NGFW by Untangle. It can replace the > NAT/router/firewall/DNS/DHCP services of the ISP device, if you get > it (ISP device) into bridged mode. You would have to provide for a > Wi-Fi Access Point separately. > > What is your ISP? > > Nice .conf, for home, BTW. > > Jim A. > > On Wed, Feb 1, 2017 at 5:39 PM, Will Parsons >> wrote: > > 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-discuss > mailing list Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCAAGBQJYk116AAoJEBXN2mrhkTWinLMP/i3XiOdDm8qvJbXup13/Npqe SkzCIxkoXxw7yEg0OmGjWce7v2CWeZiIdz9MKcPpobtMGHkDnRJRTlMfhHwpR9+D LbbxbYjexZGcRfSLCGw/g47/K1CVMOARYWd8QOEH36lC0nIwkSmh1fwTRVP/Gh38 SojmrW7LEbrYJZzJdQuvXofFkg+bk9U+ECeGjiW8Y1Sv8qEwagSFa3D/rjuAPtbO UG50CgNaUJ9qQNwKUYeT5dQDDBU7+VlTEsar+slmJ/ywea1JoxVABMu/l2VCquYe 9eRh/8RIe/1K9XpH+g4s4ElMUsnYtr2HpuoEkJZt43UjLhcviLAq9A28uZtTNWZI PvRdI82u9qw5hCJ+4CUAyXNMZZNy2cOmh1H8Jut0LXYP++4+9KZ9tVza/u7gQ5If 83LlwUQnUvyc6HyVINSVkYslCe24wvEoOpkmNMb1iV5Sg8p/96LnbDEM0Y2rV7tZ vvsal9NCs74I31cF45aLA32Rh3D6UADQzqHjbHIbijjP67rn2qG6jz+WaG6KHnm7 C3I1arIZgP9t1YF5haj8ljlZVAzUt1PTzN5RKZnQfr3hFGrGLVU3KERKwsVw+rsZ HZ/9VAY12GKMxohGxLfD+yKzS8OuKmwz2t+AoVAY+crh11C2ZH4jouYIN3vs0N3k EqPshF3kxpz/tgq42rhA =wQYl -END PGP SIGNATURE- ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] why does dnsmasq reject lease request?
Hello Will, You would need a wireshark capture to see the issue here, the log does not tell the whole story. It would appear that both DHCP servers are answering the clients's requests. We don't know your network configuration, or how the ISP's 'router' is set up to be able to say for sure. But you should limit the IP range of each to avoid the other. What I do, is use dnsmasq in a (mostly) open source GUI wrapper called NGFW by Untangle. It can replace the NAT/router/firewall/DNS/DHCP services of the ISP device, if you get it (ISP device) into bridged mode. You would have to provide for a Wi-Fi Access Point separately. What is your ISP? Nice .conf, for home, BTW. Jim A. On Wed, Feb 1, 2017 at 5:39 PM, Will Parsonswrote: > 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-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] why does dnsmasq reject lease request?
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