Author Topic: Local DNS and external Authoritative DNS - How to Configure?  (Read 2402 times)

nickpiggott

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +8/-0
    • View Profile
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?


 

nickpiggott

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +8/-0
    • View Profile
Re: Local DNS and external Authoritative DNS - How to Configure?
« Reply #1 on: July 03, 2019, 11:59:51 am »
I've noticed that this question has been asked before, but apparently there isn't a solution yet?

basselope

  • Zen Monk
  • **
  • Posts: 65
  • Karma: +17/-0
    • View Profile
Re: Local DNS and external Authoritative DNS - How to Configure?
« Reply #2 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.

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Local DNS and external Authoritative DNS - How to Configure?
« Reply #3 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

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

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,