Subject: ideas on how to get dhclient to set system time and use other options?
To: NetBSD Networking Technical Discussion List <tech-net@NetBSD.ORG>
From: Greg A. Woods <>
List: tech-net
Date: 09/27/2002 00:14:24
I've got a system here with a not-fully-supported RTC (sparc64 SunFire
V100) and the end result raises the question of how dhclient might be
fixed to set the time and perhaps do other useful related configuration
tasks when ntp-servers and/or time-servers options are given in the
lease.  Indeed as you can see in this example there are a plethora of
useful options that dhclient seems to completely ignore.

# date                         
Sat Sep 26 23:56:22 EDT 1970
# cat /var/db/dhclient.leases                                                  
lease {
  interface "tlp0";
  option font-servers;			# <<<<
  option x-display-manager;		# <<<<
  option subnet-mask;
  option routers;
  option dhcp-lease-time 36000;
  option time-servers;			# <<<<
  option dhcp-message-type 5;
  option domain-name-servers,;
  option dhcp-server-identifier;
  option log-servers;			# <<<<
  option lpr-servers;			# <<<<
  option dhcp-renewal-time 18000;
  option ntp-servers;			# <<<<
  option broadcast-address;
  option dhcp-rebinding-time 31500;
  option domain-name "";
  renew 0 1970/9/27 08:04:02;
  rebind 0 1970/9/27 11:56:29;
  expire 0 1970/9/27 13:11:29;

There are probably even more that I didn't find interesting at the time
when I configured my DHCP server.

Any suggestions on what the best way to proceed is?  Should I just hack
the scripts dhclient runs to try to make them do something useful with
these options?

Is this something that should be fed back through ISC, or are such
features too platform dependent to worry about going that route?

								Greg A. Woods

+1 416 218-0098;            <>;           <>
Planix, Inc. <>; VE3TCP; Secrets of the Weird <>