regex for dns update

Héctor Herrera hherreraa at gmail.com
Wed May 2 12:10:50 UTC 2012


Why don't you try with pools? Put all the people who you want to refresh
their DNS resolutions in one pool, and all the others in other pool. Do all
the validations you need, and I think that's all!
For example:

pool 1
{
host 1
host 2
blah, blah
*refresh DNS*
}

pool 2
{
host 1
host 2
blah, blah
*DO NOTrefresh DNS*
}

2012/5/2 Tom Schmitt <TomSchmitt at gmx.de>

> 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
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>



-- 
Saludos

*Héctor Herrera Anabalón*
Egresado ICCI UNAP
Soporte IT en CNN Chile
Miembro USoLIX Victoria
Registered User #548600 (LinuxCounter.net)
+56983118902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20120502/b602f90c/attachment.html>


More information about the dhcp-users mailing list