<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks for pointing the regex out. I've been using:<br>
<font color="#993300"><tt>lcase(suffix(option host-name, 6)) =
"iphone"</tt></font><br>
but just realized it's missing '<font color="#993300">Steffansiphone5</font>'<br>
<br>
I'm going to give the regex a try.<br>
<br>
To prevent DNS name collisions, you might want to add to the class:<br>
<font color="#993300"><tt>if (lcase(option host-name) = "iphone") {
ddns-hostname = concat("iPhone-", binary-to-ascii(16, 8, "",
substring(hardware, 4, 3))); }</tt></font><br>
Since some users don't change their hostname.<br>
<br>
Bill<br>
<br>
<div class="moz-cite-prefix">On 3/13/2016 10:24 PM, Glenn Satchell
wrote:<br>
</div>
<blockquote
cite="mid:92e16b02cab9150b3b700ebf1560927e.squirrel@mail.uniq.com.au"
type="cite">
<pre wrap="">Regex matching has been a part of the syntax for many years. See dhcp-eval
man page on your system.
data-expression-1 ~= data-expression-2 data-expression-1 ~~
data-expression-2
The ~= and ~~ operators (not available on all systems)
perform extended regex(7) matching of the values of two
data expressions, returning true if data-expression-1
matches against the regular expression evaluated by data-
expression-2, or false if it does not match or encounters
some error. If either the left-hand side or the right-
hand side are null or empty strings, the result is also
false. The ~~ operator differs from the ~= operator in
that it is case-insensitive.
So you'll want something like this, but it's not foolproof either as the
user could name the system anything they like.
class "IPHONE_ACCORDING_TO_HOSTNAME" {
match if option host-name ~= "iPhone";
}
regards,
-glenn
On Sat, March 12, 2016 9:06 am, Bradford Dickerson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks Jose for pointer to list. I could use that to identify Apple
clients. To narrow it down to various apple types such as iphones, ipads
vs mac computers dont think it will help.
</pre>
<blockquote type="cite">
<pre wrap="">On Mar 11, 2016, at 4:44 PM, José Queiroz <a class="moz-txt-link-rfc2396E" href="mailto:zekkerj@gmail.com"><zekkerj@gmail.com></a> wrote:
Have you seen this?
<a class="moz-txt-link-freetext" href="https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf">https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf</a>
<a class="moz-txt-link-rfc2396E" href="https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf"><https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf></a>
PS: Sorry the [possible] double posting, for some reason my messages
aren't being received by the list.
2016-03-11 18:09 GMT-03:00 Bradford Dickerson <<a class="moz-txt-link-abbreviated" href="mailto:bra00424@mac.com">bra00424@mac.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:bra00424@mac.com"><mailto:bra00424@mac.com></a>>:
Hi Jose,
Thanks for replying. Was looking into that but was unsuccessful (
searching on the web ) finding a list(range) of OUIs that Apple used
specifically for their iphones. Thx, Brad
</pre>
<blockquote type="cite">
<pre wrap="">On Mar 11, 2016, at 3:43 PM, José Queiroz <<a class="moz-txt-link-abbreviated" href="mailto:zekkerj@gmail.com">zekkerj@gmail.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:zekkerj@gmail.com"><mailto:zekkerj@gmail.com></a>> wrote:
Hi Bradford,
It will be much easier if you use MAC Addresses to do that. That way
you may use the MAC's OUI to determine the device's branding.
2016-03-11 17:35 GMT-03:00 Bradford Dickerson <<a class="moz-txt-link-abbreviated" href="mailto:bra00424@mac.com">bra00424@mac.com</a>
<a class="moz-txt-link-rfc2396E" href="mailto:bra00424@mac.com"><mailto:bra00424@mac.com></a>>:
Hi,
At our company, we are trying to hand out IP ranges based on the
characteristics of the client. For example using a class declaration
as follows:
class "IPHONE_ACCORDING_TO_HOSTNAME" {
match if substring(option host-name,0,6) = "iPhone";
}
but I notice many iphones have names like ‘Brad-iPhone’ or
’TomIphone’ does not quite match above . Is there any plan to
support regex type matches?
Thx,
Brad
_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> <a class="moz-txt-link-rfc2396E" href="mailto:dhcp-users@lists.isc.org"><mailto:dhcp-users@lists.isc.org></a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
<a class="moz-txt-link-rfc2396E" href="https://lists.isc.org/mailman/listinfo/dhcp-users"><https://lists.isc.org/mailman/listinfo/dhcp-users></a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a>
</pre>
</blockquote>
<br>
</body>
</html>