Subject: Re: less dhcp verbosity in resolv.conf
To: None <netbsd-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-users
Date: 10/11/2006 17:08:03
George Georgalis --> netbsd-users (2006-10-11 10:01:47 -0400):
> Is there some way to configure dhcpd or dhclient for less verbosity?

Yes, upgrade to NetBSD 4 ;-)


> ======                                                                                                                       
> /etc/resolv.conf diffs (OLD < > NEW)                                                                                         
> ======                                                                                                                       
> --- /var/backups//etc/resolv.conf.current       2006-10-10 07:18:04.000000000 +0000                                          
> +++ /etc/resolv.conf    2006-10-11 06:57:21.000000000 +0000                                                                  
> @@ -1,3 +1,3 @@                                                                                                              
> -# Created by dhclient at: Mon Oct  9 20:37:15 EDT 2006                                                                      
> +# Created by dhclient at: Wed Oct 11 02:57:21 EDT 2006  
> ...
> 
> 
> since my lease is less than 24 hours, I get these diffs every day
> in my 'daily insecurity output' ...I just want to know if the
> nameserver changed for some reason.

$ cd /usr/src
$ cvs log -r1.7 usr.sbin/dhcp/clientscript/dhclient-script
[...]
revision 1.7
date: 2005/04/09 02:14:52;  author: atatat;  state: Exp;  lines: +3 -3
Remove the date from the generated resolv.conf file, since changes to
this file are tracked by /etc/security, making it (the backup) get
needlessly updated when you go to and from work every day.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~