[Dnsmasq-discuss] Announce: dnsmasq-2.53 release candidate 1

clemens fischer ino-news at spotteswoode.dnsalias.org
Mon May 24 23:42:29 BST 2010


Simon Kelley wrote:

> The hostname and lease time are both data that dnsmasq uses locally,
> they are not just opaque data that's passed through to the client.
> I think there's code which explicitly blocks setting those options. It
> would be bad if you sent an option 51 that told the client that it had
> a lease for a day, but dnsmasq expired the lease after an hour and the
> host disappeared from the DNS.

Oh, I thought the hostname is something sent to the client like any
other option!  Do I understand you correctly that it is used more like
an item to match when the client sends it?  Normally not sent to the
client?

> An example helps: if you have an network which is 192.168.1.0/24 and you
> specify
> 
> dhcp-range=192.168.1.100,192.168.1.200
> 
> then clients will get addresses in the range specified. Unless
> you have
> 
> dhcp-host=00:11:22:33:44:55,192.168.1.20
> 
> which is valid because 192.168.1.20 is within the 192.168.1.0/24 subnet,
> so a client with that mac-address will get 192.168.1.20.
> 
> On the other hand
> 
> dhcp-host=00:11:22:33:44:55,192.168.2.20
> 
> would be ignored because the IP address is not within the subnet.

Ok.  I kept asking myself how dnsmasq can know the proper netmask.  So
it obviously reads that from the interface.


clemens




More information about the Dnsmasq-discuss mailing list