I am trying to set option routers to a domain name but it does not show up in the client leases file

Zentner, Jeff jeff.zentner at hp.com
Wed Aug 22 20:18:30 UTC 2012


I am trying to set option routers to a domain name but it does not show up in the client leases file

I am running dhcpd version "Internet Software Consortium DHCP Server V3.0pl2_DHCP4"

>From dhcp-options.5
...
ip-address
data type can be entered either as an explicit IP
address (e.g., 239.254.197.10) or as a domain name (e.g.,
haagen.isc.org).  When entering a domain name, be sure that that
domain name resolves to a single IP address.
...

If I configure option routers as an IP Address like below it is in the client leases file like below

>From Server
cat /var/tmp/shells/dhcpd.conf
authoritative;
ddns-update-style none;
subnet 172.17.10.0 netmask 255.255.255.0 {
  range 172.17.10.50 172.17.10.60;
  option subnet-mask 255.255.255.0;
  option root-path "test";
 option routers 1.1.1.1;
  option dhcp-parameter-request-list 3;
  default-lease-time 600;
  max-lease-time 7200;
  min-lease-time 60;
  option domain-name "my.domain";
}

>From Client
lease {
  interface "ethernet1";
  fixed-address 172.17.10.60;
  option routers 1.1.1.1;
  option dhcp-lease-time 600;
  option dhcp-message-type 5;
  option dhcp-server-identifier 172.17.10.21;
  renew 2 2012/8/21 19:18:35;
  rebind 2 2012/8/21 19:22:30;
  expire 2 2012/8/21 19:23:45;
}

If I configure option routers as a domain name like below it is not in the client leases file like below

>From Server
cat /var/tmp/shells/dhcpd.conf
authoritative;
ddns-update-style none;
subnet 172.17.10.0 netmask 255.255.255.0 {
  range 172.17.10.50 172.17.10.60;
  option subnet-mask 255.255.255.0;
  option root-path "test";
  option dhcp-parameter-request-list 3;
  option routers yahoo.com;
  default-lease-time 600;
  max-lease-time 7200;
  min-lease-time 60;
  option domain-name "my.domain";
}

>From Client
lease {
  interface "ethernet1";
  fixed-address 172.17.10.60;
  option dhcp-lease-time 600;
  option dhcp-message-type 5;
  option dhcp-server-identifier 172.17.10.21;
  renew 2 2012/8/21 19:21:48;
  rebind 2 2012/8/21 19:25:58;
  expire 2 2012/8/21 19:27:13;
}

What am I doing wrong?

Jeff Zentner
Hewlett-Packard Co.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120822/01bda7f4/attachment-0001.html>


More information about the dhcp-users mailing list