Web lists-archives.com

Re: [Samba] Multiple DC haven't HA on Windows

On Wed, 27 Sep 2017 17:05:31 +0200
Daniel Carrasco via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Hello, thanks for your response.
> I'm using samba_internal as DNS because I don't want to add bind to
> only relay the internal DNS.

Can you expand on that ?

Your DC should be authoritative for the AD dns domain and your Domain
clients should use the DC for their DNS, anything outside the domain
should be forwarded to a DNS server outside the AD domain. This
should happen whether you use the 'internal' or 'Bind9' dns server.   

> The hosts file is clean on srv2 DC (default localhost), and this is
> the srv1 hosts:
>    srv1.domain.com srv1

This seems to be wrong, you should have the DCs IP and FQDN
shorthostname in it and ' localhost'
From what you have posted, your /etc/hosts should be:

DC1: localhost	srv1.domain.com	srv1

DC2: localhost	srv2.domain.com	srv2

> resolv.conf srv1:
> domain domain
> search domain.com
> nameserver
> nameserver

You should remove the 'domain' line, this is ignored when followed by
the 'search' line
You should replace the second nameserver with the IP of the second DC

> resolv.conf srv2:
> nameserver
> nameserver

This should be similar to the other DC, just swap the nameserver lines.


To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba