OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: scat70 on February 01, 2022, 09:01:35 am

Title: /var/etc/dnsmasq-hosts in 22.1
Post by: scat70 on February 01, 2022, 09:01:35 am
Hi!

I recently upgraded to 22.1, Generelly this worked fine, but I now have an odd dnsmasq problem. After a certain runtime (with " Register DHCP leases" enabled within a few minutes, without " Register DHCP leases" enabled within a one or two hours), the /var/etc/dnsmasq-hosts is either corrupted (lots of "^@^@" entries) or all static DHCP entries are missing. After restarting dnsmasq the file is correctly regenerated and everything is fine again - for the next minutes or hours. Then local DNS is once again not available, as   something strange happend again to /var/etc/dnsmasq-hosts  :o

Thanks, Marc
Title: Re: /var/etc/dnsmasq-hosts in 22.1
Post by: scat70 on February 01, 2022, 04:37:00 pm
Hi!

I switched to Unbound now and deactivated dnsmasq. Hope this solves my issues. So far no problems with Unbound.

BR, Marc
Title: Re: /var/etc/dnsmasq-hosts in 22.1
Post by: franco on February 02, 2022, 02:19:54 pm
Hi Marc,

Thanks for the report. I'll keep this under observation but the service that writes /var/etc/dnsmasq-hosts is going to be replaced anyway, see https://github.com/opnsense/core/issues/5119

No idea if the problem is new on FreeBSD 13 or if that was always the case under certain conditions (likely not trivial to reproduce). I have been using Dnsmasq for a long time myself.


Cheers,
Franco