Hi Simon,

commit efea282396 "Fix logic in add_update_server() to make
optimisation actually optimise." introduced a bug when re-reading
resolv.conf after changes. Found by git bisect and confirmed
by reverting efea282396 on top of current git 011f8cf1d011.

The issue happens when starting/stopping VPN and entries are
added to/removed from /run/dnsmasq/resolv.conf.
--strict-order is in use.


No VPN:
nameserver 192.168.178.1

After starting VPN:
nameserver 10.x.xx.60
nameserver 10.x.xx.75
nameserver 192.168.178.1

Jan  3 20:06:04 dnsmasq[20581]: using nameserver 192.168.178.1#53
Jan  3 20:06:04 dnsmasq[20581]: using nameserver 10.x.xx.75#53
Jan  3 20:06:04 dnsmasq[20581]: using nameserver 192.168.178.1#53

If dnsmasq is restarted to work around the problem,
then after stopping VPN:

Jan  3 19:55:18 dnsmasq[18927]: using nameserver 10.x.xx.60#53


Could you please check it?


Regards,
Johannes

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

Reply via email to