[Dnsmasq-discuss] Setting the "domain" value depending on the subnet?

Christ Schlacta lists at aarcane.org
Wed Jun 22 03:21:44 BST 2011


On 6/21/2011 17:36, Jamie Begin wrote:
> I apologize if this is a frequent question, but I couldn't find any 
> decent keywords to search with ("domain" is too broad).
>
> I have something similar to this in my config:
> interface=vlan191,lan
> interface=vlan192,wifi
> dhcp-range=lan,192.168.1.200,192.168.1.250,12h
> dhcp-range=wifi,192.168.2.200,192.168.2.220,12h
>
> I'd like to be able to set something like this:
> domain=lan,lan.mycompany.com <http://lan.mycompany.com>
> domain=wifi,wifi.mycompany.com <http://wifi.mycompany.com>
>
> However, it doesn't appear that I can have more than one "domain" 
> directive in the config, since I get the following error: "dnsmasq: 
> illegal repeated keyword at line 128 of /etc/dnsmasq.conf" Is there a 
> workaround?
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
I know you can do that with isc dhcpd/bind combination.  I'm unaware of 
any way to do what you wish with dnsmasq.  the closest you can get is to 
set your domain to  mycompany.com and set a MAC -> IP and IP -> Hostname 
mapping scheme.  Alternatively you might be able to use multiple DNSMasq 
instances.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20110621/05621e67/attachment.htm 


More information about the Dnsmasq-discuss mailing list