resolv.conf created every 5 minutes

Started by aks0811, April 20, 2020, 12:34:34 AM

Previous topic - Next topic
April 20, 2020, 12:34:34 AM Last Edit: April 20, 2020, 12:50:04 AM by aks0811
Hi,
I'm seeing entries like this "dhclient: Creating resolv.conf" written to general system log exactly every 5 minutes and wanted to know what could cause this. The content of the /etc/resolv.conf includes the 2 ip addresses of my ISP's dns's along with:
domain localdomain
nameserver 127.0.0.1

I've searched for this elsewhere but couldn't find any definitive answers.
Is there some setting I can tweak to increase the time? Could it be my ISP expiring the lease every 5 minutes ?
Any help would be appreciated. I'm running 20.1.4
Thanks
Alan

You could try disabling Override of DNS Server from provider in System : Settings : General
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Thanks for this info. I disabled "Allow DNS server list to be overridden by DHCP/PPP on WAN", which I assume is what you refer to, but I still see the same messages every 5 minutes

Did you force a reconnect after setting this option?
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

Yes, but no change. Messages are still appearing every 5 minutes to the second. I called my service provider and they're not forcing any lease renewals either.

Maybe some DHCP renewals? Can you check is Unbound is restarting every 5 minutes?
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

I'm not sure how to check if unbound is restarting every 5 minutes.
Thanks

via console:

clog -f /var/log/resolver.log

WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

The last log entry was last night, my time, about 8 hours ago. But the reosolv.conf messages were still created all through this time in the system log.