[RESOLVED] dhclient create resolv.conf every 5 mins in system.log

Started by nghappiness, January 29, 2023, 03:23:47 AM

Previous topic - Next topic
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.. 

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..

Thanks,  I feel not so lonely...  =)  Happy opnsense..

Hi
QuoteThe lease is not expire every 5 minutes
what is renew/rebind intervals?

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..

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 ?

Ask ISP for longer lease time? Mind you this is logged by dhclient binary shipped by FreeBSD.


Cheers,
Franco

@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)

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