OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: nghappiness on January 29, 2023, 03:23:47 AM

Title: [RESOLVED] dhclient create resolv.conf every 5 mins in system.log
Post by: nghappiness on January 29, 2023, 03:23:47 AM
Hi,

Since updated to 23.1 Under system: Log files: General, it shows a new log entire every 5 minutes.

2023-01-28T18:21:11-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T18:16:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T18:11:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T18:06:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T18:01:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T17:56:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T17:51:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T17:46:10-08:00   Notice   dhclient   Creating resolv.conf   
2023-01-28T17:41:10-08:00   Notice   dhclient   Creating resolv.conf

I checked the /var/db/dhcleint.leases file already. The lease is not expire every 5 minutes.  Please help..

I just double check again on /var/db/dhclient.leases file,  the option dhcp-lease-time is 600.   I am sorry to waste everyone time...

P.S.  I don't have unbound config yet.. 
Title: Re: dhclient Creating resolv.conf every 5 mins in system.log
Post by: iBROX on January 29, 2023, 03:27:33 AM
I was just about to post the same thing :), I am seeing the same issue :

2023-01-29T13:21:51   Notice   dhclient   Creating resolv.conf   
2023-01-29T13:16:51   Notice   dhclient   Creating resolv.conf   
2023-01-29T13:11:50   Notice   dhclient   Creating resolv.conf   
2023-01-29T13:06:50   Notice   dhclient   Creating resolv.conf   
2023-01-29T13:01:50   Notice   dhclient   Creating resolv.conf   
2023-01-29T12:56:50   Notice   dhclient   Creating resolv.conf

and so on..
Title: Re: dhclient Creating resolv.conf every 5 mins in system.log
Post by: nghappiness on January 29, 2023, 03:30:19 AM
Thanks,  I feel not so lonely...  =)  Happy opnsense..
Title: Re: dhclient create resolv.conf every 5 mins in system.log
Post by: Fright on January 29, 2023, 08:53:00 AM
Hi
QuoteThe lease is not expire every 5 minutes
what is renew/rebind intervals?
Title: Re: [RESOLVED] dhclient create resolv.conf every 5 mins in system.log
Post by: nghappiness on January 29, 2023, 12:41:00 PM
Quote from: Fright on January 29, 2023, 08:53:00 AM
Hi
QuoteThe lease is not expire every 5 minutes
what is renew/rebind intervals?


I just check again on /var/db/dhclient.leases file.  DHCP lease time is 600.  False alarm.  sorry..
Title: Re: [RESOLVED] dhclient create resolv.conf every 5 mins in system.log
Post by: iBROX on January 30, 2023, 01:42:44 AM
AH yes, same here.. I have changed ISP's since and it is alerting that on the WAN interface, so that must explain it.

Is there anyway we can stop it spewing to the log file every 5 minutes though ?
Title: Re: [RESOLVED] dhclient create resolv.conf every 5 mins in system.log
Post by: franco on January 30, 2023, 12:10:10 PM
Ask ISP for longer lease time? Mind you this is logged by dhclient binary shipped by FreeBSD.


Cheers,
Franco
Title: Re: [RESOLVED] dhclient create resolv.conf every 5 mins in system.log
Post by: Fright on January 30, 2023, 12:55:16 PM
@iBROX
notice (and debug) severity messages can be very useful for debugging.
you can filter log table with various severity levels or minimum severity level, coneverting log view to something like "Warning log"  ;) (pr for system log widget is on the way)
Title: Re: [RESOLVED] dhclient create resolv.conf every 5 mins in system.log
Post by: franco on January 30, 2023, 01:29:49 PM
Yep, and since 23.1 the log messages from OPNsense will also adhere to this and not log everything as error by default.


Cheers,
Franco