dhclient: Creating resolv.conf

Started by Vlijm, March 31, 2020, 06:11:40 PM

Previous topic - Next topic
Hello all!

A couple of days ago I switched from an Asus AC66u to a Fujitsu S930 thin client running OPNsense 20.1 and it is working perfectly!

I am wondering about something I noticed in the logs.
Under System - Log Files - General I see the following:


2020-03-31T16:23:36 dhclient: Creating resolv.conf
2020-03-31T15:53:36 dhclient: Creating resolv.conf
2020-03-31T15:23:36 dhclient: Creating resolv.conf
2020-03-31T14:53:36 dhclient: Creating resolv.conf
2020-03-31T14:23:36 dhclient: Creating resolv.conf
2020-03-31T13:53:35 dhclient: Creating resolv.conf


Every 30 minutes it seems to recreate resolv.conf

resolv.conf contains the following:

domain lan
nameserver 127.0.0.1
nameserver 1.1.1.1


Is this normal behaviour or is something wrong?
I never noticed this in the Asus logs.

My connection is a T-Mobile FTTH connection and I use a TP-Link MC220L to convert fiber to ethernet.
In System - Settings - General I have set the DNS to 1.1.1.1
'Allow DNS server list to be overridden by DHCP/PPP on WAN' is unchecked (same result when this option is checked).
All clients use my pi-Hole for DNS resolving.

I'm still a noob, so please be gentle :)

did u ever reach any conclusions on this?

Does your WAN connection use DHCP? If so, you probably have a 30min lease time, which causes resolv.conf to be recreated on each lease renewal.
In theory there is no difference between theory and practice. In practice there is.