dynamic dns - omitting duplicate names

David W. Hankins David_Hankins at isc.org
Wed Mar 25 17:55:00 UTC 2009


On Wed, Mar 25, 2009 at 05:48:45PM +0000, Barnaby Scott wrote:
> class "music-players" {
>   match if substring (option host-name, 1, 5) = "Sonos";
>   ddns-updates off;
>
> but this doesn't work. Any idea why?

Your substring index (1) advances the result one byte to 'onosZ'.

Note in future you can use log() to test data expressions like this,
and see the results in syslog.  This is basically the dhcpd.conf
equivalent of inserting 'debug printfs' in code.

-- 
David W. Hankins	"If you don't do it right the first time,
Software Engineer		     you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20090325/88622d64/attachment.bin>


More information about the dhcp-users mailing list