<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Bill Shirley wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Also, I don't think your "nes" class will ever match.  You're
    comparing the hardware<br>
    address to a string.  Here's a snippet that might be useful:<br>
    <font color="#993300"><tt>#
------------------------------<wbr>------------------------------<wbr>------------------</tt><tt><br>
      </tt><tt>class "Apple_PC" {</tt><tt><br>
      </tt><tt>        match if (</tt><tt><br>
      </tt><tt>                substring(hardware, 1,3) = 38:c9:86   </tt><tt><br>
      </tt><tt>                or substring(hardware, 1,3) = 00:26:08</tt><tt><br>
      </tt><tt>        );</tt><tt><br>
      </tt><tt>}</tt><tt><br>
      </tt><tt>#
------------------------------<wbr>------------------------------<wbr>------------------</tt><tt><br>
      </tt><tt><br>
      </tt><tt>#
------------------------------<wbr>------------------------------<wbr>------------------</tt><tt><br>
      </tt><tt>class "mobile_device" {</tt><tt><br>
      </tt><tt>        match if (</tt><tt><br>
      </tt><tt>                option host-name ~~ "dhcpcd"</tt><tt><br>
      </tt><tt>                or option host-name ~~ "android" </tt><tt><br>
      </tt><tt>                or option host-name ~~ "iphone"  </tt><tt><br>
      </tt><tt>                or option host-name ~~ "iphone-2"</tt><tt><br>
      </tt><tt>                or option host-name ~~ "ipod"</tt><tt><br>
      </tt><tt>                or option host-name ~~ "ipad"</tt><tt><br>
      </tt><tt>        );</tt><tt><br>
      </tt><tt><br>
        # for those devices using the default name:<br>
      </tt><tt>        if (lcase(option host-name) = "iphone") {
        ddns-hostname = concat("iPhone-", binary-to-ascii(16, 8, "",
        substring(hardware, 4, 3))); }   </tt><tt><br>
      </tt><tt>        if (lcase(option host-name) = "iphone-2") {
        ddns-hostname = concat("iPhone2-", binary-to-ascii(16, 8, "",
        substring(hardware, 4, 3))); }</tt><tt><br>
      </tt><tt>        if (lcase(option host-name) = "ipod") {
        ddns-hostname = concat("iPod-", binary-to-ascii(16, 8, "",
        substring(hardware, 4, 3))); }</tt><tt><br>
      </tt><tt>        if (lcase(option host-name) = "ipad") {
        ddns-hostname = concat("iPad-", binary-to-ascii(16, 8, "",
        substring(hardware, 4, 3))); }</tt><tt><br>
      </tt><tt>}</tt><tt><br>
      </tt><tt>#
------------------------------<wbr>------------------------------<wbr>------------------</tt></font></div></blockquote></div></div></div><div dir="auto">Yeah, the NES thing was a poor and untested attempt. Thanks, I've adapted both of your suggestions here.</div><div dir="auto"></div><div dir="auto"></div></div>