[Dnsmasq-discuss] Re: Using dnsmasq with different domains for different subnets.

David Sankel David Sankel <camior@gmail.com>
Wed, 1 Dec 2004 11:58:12 +0100

I've succesfully been able to do this with two dnsmasq instances
running, but it'd be more fun if we could do it with one, no?

On Wed, 1 Dec 2004 11:33:09 +0100, David Sankel <camior@gmail.com> wrote:
> Hello,
>   I'm pushing dnsmasq a little further than I have before by allowing
> it to host for two different subnets (on the same card, but different
> VLANs).  This works fine and dandy, but I would like it to use a
> different domain for each subnet; For example, freenet and offices.
> Is there anyway I can do this with dnsmasq?
>   My current conf has something like this:
> domain=invalid
> dhcp-range=offices,,,12h
> dhcp-range=freenet,,,12h
> # option 15 sets the domain name
> dhcp-option=offices,15,offices
> dhcp-option=freenet,15,freenet
> Although the dhcp works perfectly, the domain name doesn't resolve to
> what I'd like.  For example toledo.tst resolves but toledo.offices
> doesn't.  I've tried commenting out the domain= part and I don't seem
> to get any closer.
> Any help would be greatly appreciated.
> Thanks,
> David J. Sankel