Discussion:
[Dnsmasq-discuss] can't get multiple domains to work
Spike
2017-02-21 00:57:23 UTC
Permalink
Dear all,

first time poster here so first things first, thanks to all of you that
have worked on dnsmasq, all of us here have greatly benefited for years
from this great piece of software.

Second, my google-fu and manpage reading are failing me and I can't seem to
find a way to have dnsmasq resolve queries for multiple domains. I've found
some posts from 2008 about introducing the feature and a recent one about
multiple domains, but for different ranges.

What I'm dealing with is a change of domain, so right now dnsmasq.conf has
domain=good and eventually it will be domain=better , but during the
transition phase it would be useful if it could be domain=good,better so
that queries for host.good and host.better resolve to the same dhcp-host
definition.

is that possible? what's the actual syntax? The manual mentions "domainS",
plural, but not if there is a particular syntax to specify them and comma
does not work (for example for local it specifically mentions
/domain/domain/).

I guess the alternative if the above isn't possible would be to allow any
kind of domain to basically be ignored so that entries are returned as long
as the host path matches (this is just during the transition phase so it
would be ok)

thanks,

Spike
r***@gmail.com
2017-02-21 02:55:55 UTC
Permalink
Have you tried using more than one domain= line?
Post by Spike
Dear all,
first time poster here so first things first, thanks to all of you that
have worked on dnsmasq, all of us here have greatly benefited for years
from this great piece of software.
Second, my google-fu and manpage reading are failing me and I can't seem
to find a way to have dnsmasq resolve queries for multiple domains. I've
found some posts from 2008 about introducing the feature and a recent one
about multiple domains, but for different ranges.
What I'm dealing with is a change of domain, so right now dnsmasq.conf has
domain=good and eventually it will be domain=better , but during the
transition phase it would be useful if it could be domain=good,better so
that queries for host.good and host.better resolve to the same dhcp-host
definition.
is that possible? what's the actual syntax? The manual mentions "domainS",
plural, but not if there is a particular syntax to specify them and comma
does not work (for example for local it specifically mentions
/domain/domain/).
I guess the alternative if the above isn't possible would be to allow any
kind of domain to basically be ignored so that entries are returned as long
as the host path matches (this is just during the transition phase so it
would be ok)
thanks,
Spike
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Spike
2017-02-21 03:35:27 UTC
Permalink
I didn't because it seemed wrong, generally speaking the last entry for a
given keyword should override former if dups are allowed at all. In any
case I just tried and that's what happened, with

domain=good
domain=better

host.better started to resolve and host.good no longer resolved.

that said it's true that the most recent hit on the ML for "multiple
domain" did mention a similar setup with two domain lines altho it had two
diff ranges.

thanks,

Spike
Post by r***@gmail.com
Have you tried using more than one domain= line?
Dear all,
first time poster here so first things first, thanks to all of you that
have worked on dnsmasq, all of us here have greatly benefited for years
from this great piece of software.
Second, my google-fu and manpage reading are failing me and I can't seem
to find a way to have dnsmasq resolve queries for multiple domains. I've
found some posts from 2008 about introducing the feature and a recent one
about multiple domains, but for different ranges.
What I'm dealing with is a change of domain, so right now dnsmasq.conf has
domain=good and eventually it will be domain=better , but during the
transition phase it would be useful if it could be domain=good,better so
that queries for host.good and host.better resolve to the same dhcp-host
definition.
is that possible? what's the actual syntax? The manual mentions "domainS",
plural, but not if there is a particular syntax to specify them and comma
does not work (for example for local it specifically mentions
/domain/domain/).
I guess the alternative if the above isn't possible would be to allow any
kind of domain to basically be ignored so that entries are returned as long
as the host path matches (this is just during the transition phase so it
would be ok)
thanks,
Spike
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Simon Kelley
2017-02-22 21:16:46 UTC
Permalink
You can have multiple domains, but you need to associate subnets with
them, so dnsmasq can determine which one to use.


Cheers,

Simon.
Post by Spike
I didn't because it seemed wrong, generally speaking the last entry
for a given keyword should override former if dups are allowed at
all. In any case I just tried and that's what happened, with
domain=good domain=better
host.better started to resolve and host.good no longer resolved.
that said it's true that the most recent hit on the ML for
"multiple domain" did mention a similar setup with two domain lines
altho it had two diff ranges.
thanks,
Spike
Have you tried using more than one domain= line?
Dear all,
first time poster here so first things first, thanks to all of you
that have worked on dnsmasq, all of us here have greatly benefited
for years from this great piece of software.
Second, my google-fu and manpage reading are failing me and I can't
seem to find a way to have dnsmasq resolve queries for multiple
domains. I've found some posts from 2008 about introducing the
feature and a recent one about multiple domains, but for different
ranges.
What I'm dealing with is a change of domain, so right now
dnsmasq.conf has domain=good and eventually it will be
domain=better , but during the transition phase it would be useful
if it could be domain=good,better so that queries for host.good and
host.better resolve to the same dhcp-host definition.
is that possible? what's the actual syntax? The manual mentions
"domainS", plural, but not if there is a particular syntax to
specify them and comma does not work (for example for local it
specifically mentions /domain/domain/).
I guess the alternative if the above isn't possible would be to
allow any kind of domain to basically be ignored so that entries
are returned as long as the host path matches (this is just during
the transition phase so it would be ok)
thanks,
Spike
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Continue reading on narkive:
Loading...