Ahh... Ok. I was running dnsmasq v2.45 from the CentOS yum repositories and this config bombed out. I replaced it with the latest version that I compiled from source (v2.57) and this option is working now. Thanks!<br>
<br><br><div class="gmail_quote">On Tue, Jun 21, 2011 at 11:03 PM, <a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a> <span dir="ltr"><<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The man page says you can configure a domain suffix for each range:<br>
<br>
-s, --domain=<domain>[,<address range>[,local]]<br>
Specifies DNS domains for the DHCP server. Domains may be be given<br>
unconditionally (without the IP range) or for limited IP ranges. This<br>
has two effects; firstly it causes the DHCP server to return the<br>
domain to any hosts which request it, and secondly it sets the domain<br>
which it is legal for DHCP-configured hosts to claim. The intention is<br>
to constrain hostnames so that an untrusted host on the LAN cannot<br>
advertise its name via dhcp as e.g. "<a href="http://microsoft.com" target="_blank">microsoft.com</a>" and capture<br>
traffic not meant for it. If no domain suffix is specified, then any<br>
DHCP hostname with a domain part (ie with a period) will be disallowed<br>
and logged. If suffix is specified, then hostnames with a domain part<br>
are allowed, provided the domain part matches the suffix. In addition,<br>
when a suffix is set then hostnames without a domain part have the<br>
suffix added as an optional domain part. Eg on my network I can set<br>
--domain=<a href="http://thekelleys.org.uk" target="_blank">thekelleys.org.uk</a> and have a machine whose DHCP hostname is<br>
"laptop". The IP address for that machine is available from dnsmasq<br>
both as "laptop" and "<a href="http://laptop.thekelleys.org.uk" target="_blank">laptop.thekelleys.org.uk</a>". If the domain is<br>
given as "#" then the domain is read from the first "search" directive<br>
in /etc/resolv.conf (or equivalent).<br>
The address range can be of the form <ip address>,<ip address> or <ip<br>
address>/<netmask> or just a single <ip address>. See --dhcp-fqdn<br>
which can change the behaviour of dnsmasq with domains.<br>
<br>
If the address range is given as ip-address/network-size, then a<br>
additional flag "local" may be supplied which has the effect of adding<br>
--local declarations for forward and reverse DNS queries. Eg.<br>
--domain=<a href="http://thekelleys.org.uk" target="_blank">thekelleys.org.uk</a>,<a href="http://192.168.0.0/24,local" target="_blank">192.168.0.0/24,local</a> is identical to<br>
--domain=<a href="http://thekelleys.org.uk" target="_blank">thekelleys.org.uk</a>,<a href="http://192.168.0.0/24" target="_blank">192.168.0.0/24</a> --local=/<a href="http://thekelleys.org.uk/%0A--local=/0.168.192.in-addr.arpa/" target="_blank">thekelleys.org.uk/<br>
--local=/0.168.192.in-addr.arpa/</a> The network size must be 8, 16 or 24<br>
for this to be legal.<br>
<div><div></div><div class="h5"><br>
On Tue, Jun 21, 2011 at 7:36 PM, Jamie Begin<br>
<<a href="mailto:jjbegin@rightbrainnetworks.com">jjbegin@rightbrainnetworks.com</a>> wrote:<br>
> I apologize if this is a frequent question, but I couldn't find any decent<br>
> keywords to search with ("domain" is too broad).<br>
><br>
> I have something similar to this in my config:<br>
> interface=vlan191,lan<br>
> interface=vlan192,wifi<br>
> dhcp-range=lan,192.168.1.200,192.168.1.250,12h<br>
> dhcp-range=wifi,192.168.2.200,192.168.2.220,12h<br>
><br>
> I'd like to be able to set something like this:<br>
> domain=lan,<a href="http://lan.mycompany.com" target="_blank">lan.mycompany.com</a><br>
> domain=wifi,<a href="http://wifi.mycompany.com" target="_blank">wifi.mycompany.com</a><br>
><br>
> However, it doesn't appear that I can have more than one "domain" directive<br>
> in the config, since I get the following error: "dnsmasq: illegal repeated<br>
> keyword at line 128 of /etc/dnsmasq.conf" Is there a workaround?<br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
><br>
><br>
</div></div></blockquote></div><br>