Different DNS server response for dhcpdiscover than for dhcpinform

Michael Robbert mrobbert at mines.edu
Thu Apr 15 23:10:14 UTC 2010


So, in order to work around this apparent bug I decided to move the "option domain-name-servers" out of the global section of the config and only configure it in each pool. Now DHCPINFORM requests from clients don't result in them changing their DNS server config because they don't get a DNS server answer. I'm hoping, and it appears to be true, that the clients don't ever decide to blank out the DNS servers because the DHCP server doesn't give them an answer.
I would still be curious to know if it is intentional behavior or a bug that DHCPINFORM requests don't appear to result in the parsing of options defined in the pools?

Thanks,
Mike Robbert

On Apr 12, 2010, at 5:46 PM, Michael Robbert wrote:

> We are currently running ISC DHCP 3.1.3b1 and have been running the same basic config for many years now, but recently we've had some clients that appear to behave differently and I think that I've tracked it down to what appears to be a known bug in the way the server responds to DHCPINFORM packets. There have been list discussions about this in the past and a workaround for one users situation was posted, but our situation is a little different and I'd like to know if this bug is supposed to be fixed or if anybody can suggest a different config that will work for us.
> Our setup is that we send most of our clients to our two main DNS servers, but on a few subnets if the client MAC address is not registered with us (unknown to DHCP) we want to send them to a registration portal page so we give them a different DNS server that will direct them to our "captive portal". The problem is that we've found some clients appear to be occasionally sending DHCPINFORM packets at some point and are getting the public DNS servers so they are not getting redirected. Here is what I think are the relevant parts of our config:
> 
> option domain-name "Mines.EDU";
> option domain-name-servers magma.Mines.EDU, ns1.Mines.EDU;
> default-lease-time 7200;
> max-lease-time 21600;
> option broadcast-address 255.255.255.255;
> 
> authoritative;
> 
> #Main Campus subnet
> subnet 138.67.0.0 netmask 255.255.192.0 {
>        option broadcast-address 138.67.63.255;
>        option subnet-mask 255.255.192.0;
>        #known clients
>        pool {
>                failover peer "magma-massive";
>                deny dynamic bootp clients;
>                range 138.67.20.10 138.67.20.250;
>                range 138.67.11.10 138.67.11.250;
>                option routers 138.67.1.1;
>                deny unknown clients;
>        }
>        #unknown clients
>        pool {
>                failover peer "magma-massive";
>                deny dynamic bootp clients;
>                range 138.67.13.10 138.67.13.240;
>                range 138.67.10.10 138.67.10.240;
>                option domain-name-servers slag.Mines.EDU;
>                option routers 138.67.1.63;
>                allow unknown clients;
>                deny known clients;
>        }
> }
> 
> ...
> Many other subnets
> ...
> include "/home/dhcpd/dhcp.registered";
> 
> Thanks in advance for any help!
> 
> Mike Robbert
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users




More information about the dhcp-users mailing list