[Dnsmasq-discuss] Global CNAME discussion
Simon Kelley
simon at thekelleys.org.uk
Sat Sep 20 12:51:40 BST 2014
On 18/09/14 16:33, Scott Mead wrote:
> I have an interesting setup.
>
> I have 2 DNS servers, A and B.
>
> A hosts: .domain1 .domain2
> B hosts: .domain3 .domain4
>
> I would like to add a domain to 'A' called .global
>
> .global would be what I set all the client's search paths to and could
> pick from any of the domains. I may have db.global -> db.domain1 (primary)
> or db.domain4 (slave )
>
> I've seen the documentation and I understand that you cannot have a cname
> that points to a host that lives outside the scope of a dnsmasq instance.
> I'm okay with that part.
>
> The strange thing, is that I tried to add this to my hosts file on the
> dnsmasq server A, and it still didn't seem to work, i.e.
>
> /etc/dnsmasq.hosts
> 192.168.1.1 db.domain4
>
> cname=db.global, db.domain4
>
> This still did not work. I'm just wondering if I'm missing something.
What answer do you get when you query with
dig db.global
>
> On a second note, it would be cool if dnsmasq would let me assign cnames
> when I define a server for a specific domain
>
> i.e.
>
> dnsmasq A: server=/domain4/ip.of.dnsmasq.b
>
> cname = db.global, db.domain4
>
> I'm not sure if that's simple or complex, but figured I would ask if it
> made sense or not.
It's impossible for the same reason. The answer to the query of
db.domain4 comes from a different source than the CNAME.
Cheers,
Simon.
>
> Thanks
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list