[Samba] Samba shares and samba server residing on different physical machines

Rowland Penny rpenny at samba.org
Thu Jul 6 13:29:40 UTC 2023

On 06/07/2023 14:15, E Kogler via samba wrote:
>   Well, I set up DNS in my network with two BIND9s external to samba residing on two boxes. One is my primary DNS for the network and one as a slave to it.When using the BIND9 backend you have to modify "named.conf " to include the "/usr/local/.../samba/../named.conf", my question is:since the slave BIND9-DNS server (for the network) retrieves its zone information (except zone and root.hints) from the primary DNS  I have set up I am a little bit confused if the zone information the SAMBA 4.17 DC provides can be included to the slave BIND9 as described in the wiki.
> To clarify the setup:
> Machine        samba version    BIND9 role
> majestix        4.9.x, (old)          primary DNS for the network
> firix               4.17.8                 slave to majestix

Hmm, In a situation like this (where I presume your clients are using 
your 'external' dns servers as their nameservers), anything for the AD 
dns domain should be forwarded to an AD DC. This can however lead to 
problems if the AD dns domain and the 'external' domain are the same.

Or to put it another way, if your 'external' dns servers have the same 
dns domain as the AD domain, then, sorry, but you are doing it wrong.

If your 'external' dns domain is 'example.com', then your AD dns domain 
should be something like 'ad.example.com' and the 'example.com' dns 
servers should forward all requests for 'ad.example.com' to an AD DC, it 
should hold no zone records for the 'ad.example.com' domain.


More information about the samba mailing list