regex for dns update

Tom Schmitt TomSchmitt at gmx.de
Wed May 2 11:58:41 UTC 2012


Hi,

my dhcpd is sending DNS-updates to the DNS server when a lease is given to a dhcp client with the name the dhcp client is providing.

Now I want this only if the name is following a given pattern, something like:

if($clientname=~/^[A-Za-z]{4}\d{4}$/) {
     send_dns_update;
}
else {
     dont_send_a_dns_update;
}

Can anyone tell me, what the syntax is to configure this on a global scope in dhcpd.conf?

Or a link where the syntax is explained?

Thanks, 
Tom.
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a


More information about the dhcp-users mailing list