dhcpd.conf: three small nuisances

Peter Rabbitson rabbit at rabbit.us
Wed Jan 17 14:16:19 UTC 2007


On Thu, Jan 18, 2007 at 12:33:14AM +1100, Glenn Satchell wrote:
> Don't convert to a string first - use the binary representation, eg:
> 
>     class "00:0a:e6:e9:91:72" {
>         match if (substring (hardware, 1, 6)) = 0:0a:e6:e9:91:72;
>     }
> 

Excellent. The answer is so obvious yet I didn't think of it.

> 
> As for dns names. You can put entries in DNS and then refer to them by
> name in dhcpd.conf, eg:
> 
> in DNS
> 
> foobar IN A 192.168.0.1
> 
> in dhcpd.conf
> 
> host foobar {
>   hardware 00:0a:e6:e9:91:72;
>   fixed-address foobar.example.com;
> }
> 

Isn't this going to work only with host/fixed-address pairs? Besides 
when adding a host I will still need to edit both the zone and the dhcpd 
config. 


More information about the dhcp-users mailing list