(dnsmasq 2.63 here)<br><br>Hi list,<br><br>I am currently setting up a small-time staging system for Windows clients. dnsmasq is to serve PXE requests (which boot a windows PE image) and DHCP requests from the aforementioned PE image, but should ignore everything else.<br>
<br>Now, all Windows clients request their addresses with a vendor id "MSFT", so I cannot ignore all "MSFT" clients. But all PE images generate a host name in the form of "minint-abcdef" which is supplied in the DHCPDISCOVER message. So I just have to catch the client-supplied host name and tag it accordingly, right?<br>
<br>In an earlier post (<<a href="http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2012q3/006206.html">http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2012q3/006206.html</a>>) it was discussed how to wildcard-match host names, but when I enter<br>
<br> dhcp-match=set:winpe, option:hostname, minint-<br><br>I get "dnsmasq: bad dhcp-option at line xyz"<br><br>If I use<br><br> dhcp-match=set:winpe, option:domain-name, minint-<br><br>then I get no error, but of course I won't get an address as the client is only supplying the hostname (option 12) and not a domain name. (I also tried host-name, "12" and every other option I could think of. It just fails when I use the option "hostname" which, according to line 459 in dhcp-common.c, is the one I should use.) I also ran wireshark and the client is indeed supplying option 12.<br>
<br>What am I doing wrong?<br><br>(here's my config)<br><br>filterwin2k<br>interface=em0<br>domain=staging.local,<a href="http://172.16.0.0/24">172.16.0.0/24</a><br># Common options<br>dhcp-option=19,0<br>dhcp-option=44,0.0.0.0<br>
dhcp-option=45,0.0.0.0<br>dhcp-option=46,8<br>dhcp-lease-max=150<br>log-queries<br>log-dhcp<br># PXE Clients<br>dhcp-vendorclass=set:pxe,PXEClient<br>dhcp-range=tag:pxe,172.16.0.150,172.16.0.199,2h<br>dhcp-boot=tag:pxe,pxelinux.bin,nas4free,172.16.0.100<br>
# Windows Clients<br>dhcp-vendorclass=set:msft,MSFT<br>dhcp-match=set:winpe, option:hostname, minint- # <----- Syntax error here<br>dhcp-ignore=tag:!pxe,tag:!winpe<br>dhcp-range=tag:winpe,172.16.0.200,172.16.0.249,2h<br>
dhcp-option=vendor:MSFT,1,2i<br>dhcp-option=vendor:MSFT,2,1i<br><br clear="all"><br>Stumped in Zurich,<br>-- <br>Ben