Zentyal Forum, Linux Small Business Server

Zentyal Server => Other modules => Topic started by: nickpiggott on July 03, 2019, 09:21:00 am

Title: Local DNS and external Authoritative DNS - How to Configure?
Post by: nickpiggott on July 03, 2019, 09:21:00 am
I'm using Zentyal 5.1, configured to provide an Active Directory.

That requires that I have a DNS server authoritative for my domain (domain.com) running on the Zentyal server. This is populated with the required DNS records for the domain controller (dc1.domain.com).

The true authoritative DNS server for the domain is hosted externally. All new DNS records for the domain are added to this external DNS server. For example, the A record for www.domain.com is hosted externally.

When I query DNS for www.domain.com locally, the request is passed to the DNS server running on Zentyal. The believes that it is the authoritative DNS server for the domain, and because there is no A record configured for www.domain.com on that DNS server, it returns an NX (not found) result.

Is there a way I can configure Zentyal / Samba / bind to forward requests for that zone to the specific external Authoritative nameserver for domain.com?


 
Title: Re: Local DNS and external Authoritative DNS - How to Configure?
Post by: nickpiggott on July 03, 2019, 11:59:51 am
I've noticed that this question has been asked before (https://forum.zentyal.org/index.php?topic=18015.0), but apparently there isn't a solution yet?
Title: Re: Local DNS and external Authoritative DNS - How to Configure?
Post by: basselope on July 04, 2019, 12:48:12 pm
I am afraid you did not choose an ideal configuration.

You should have named your Zentyal domain as a subdomain of company.com, say mainoffice.company.com.

This way your Zentyal dns would hold info on the internal machines (server1.mainoffice.comapany.com) and forward to an external dns for www.company.com as this is not in the "mainoffice" internal domain.
Title: Re: Local DNS and external Authoritative DNS - How to Configure?
Post by: doncamilo on July 04, 2019, 01:02:03 pm
Hi!  :)

I haven't tried this but, conditional forwarding could be a way for fixing your problem. https://lists.samba.org/archive/samba/2013-October/176508.html (https://lists.samba.org/archive/samba/2013-October/176508.html)

Remember that Zentyal uses stubs. You have to modify the zentyal stub instead of the named.conf file. Read this: https://doc.zentyal.org/es/appendix-c.html (https://doc.zentyal.org/es/appendix-c.html)

Cheers!