OPNsense Forum

English Forums => General Discussion => Topic started by: aks0811 on April 20, 2020, 12:34:34 AM

Title: resolv.conf created every 5 minutes
Post by: aks0811 on April 20, 2020, 12:34:34 AM
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
Title: Re: resolv.conf created every 5 minutes
Post by: mimugmail on April 20, 2020, 05:54:53 AM
You could try disabling Override of DNS Server from provider in System : Settings : General
Title: Re: resolv.conf created every 5 minutes
Post by: aks0811 on April 20, 2020, 06:42:00 AM
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
Title: Re: resolv.conf created every 5 minutes
Post by: mimugmail on April 20, 2020, 08:10:41 AM
Did you force a reconnect after setting this option?
Title: Re: resolv.conf created every 5 minutes
Post by: aks0811 on April 20, 2020, 12:23:01 PM
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.
Title: Re: resolv.conf created every 5 minutes
Post by: mimugmail on April 20, 2020, 01:17:25 PM
Maybe some DHCP renewals? Can you check is Unbound is restarting every 5 minutes?
Title: Re: resolv.conf created every 5 minutes
Post by: aks0811 on April 20, 2020, 02:36:33 PM
I'm not sure how to check if unbound is restarting every 5 minutes.
Thanks
Title: Re: resolv.conf created every 5 minutes
Post by: mimugmail on April 20, 2020, 06:06:37 PM
via console:

clog -f /var/log/resolver.log

Title: Re: resolv.conf created every 5 minutes
Post by: aks0811 on April 21, 2020, 12:09:31 AM
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.