Discussion:
[Dnsmasq-discuss] Overwrite a public domain with dnsmasq while preserving external records?
Hans Schmidt
2016-08-28 08:57:46 UTC
Permalink
Hello,

I have the following setup, and wonder if this is possible with dnsmasq:

I own a domain called example.com, which has some records on a public
name server, for example a MX record, an A or an AAAA record for
example.com directly, but also some subdomains.

I want to reuse this domain also for internal use, so that my machines
internally are having entries like workstation1.example.com and
workstation2.example.com. The only problem is that dnsmasq will block
the records which are not managed by dnsmasq, instead of forwarding the
requests to the external name server.

Is there a way to solve this problem? Or should I rather put my private
machines on a subdomain (letting dnsmasq manage it), e.g.
internal.example.com, then having workstation1.internal.example.com?

Thanks :)
Simon Kelley
2016-08-28 11:22:17 UTC
Permalink
It all depends on how you configure things: if you use entries in
/etc/hosts or --host-record, --mx-record etc then they will only "mask"
the external values for that exact domain name and record type.

See the '#' targer for --server=/<domain> for another option.


Cheers,

Simon.
Post by Hans Schmidt
Hello,
I own a domain called example.com, which has some records on a public
name server, for example a MX record, an A or an AAAA record for
example.com directly, but also some subdomains.
I want to reuse this domain also for internal use, so that my machines
internally are having entries like workstation1.example.com and
workstation2.example.com. The only problem is that dnsmasq will block
the records which are not managed by dnsmasq, instead of forwarding the
requests to the external name server.
Is there a way to solve this problem? Or should I rather put my private
machines on a subdomain (letting dnsmasq manage it), e.g.
internal.example.com, then having workstation1.internal.example.com?
Thanks :)
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...