[Samba] Samba AD with multiple DC and multiple NICs
L.P.H. van Belle
belle at bazuin.nl
Wed Oct 21 10:24:39 UTC 2020
I suggest, research systemd-networkd
Mainly. Section [Networking] optional Route
Setup the resolving per interface and your problem is solved.
But, do note, an AD-DC only has 1 real hostname.
So setting this up can be done but before you install samba you must be sure
all resolving and works as expected.
Only configure 1 hostname in /etc/hosts
Any other one should come out the DNS.
I have more info on this also with the vpn part but i dont have the time
write it out atm. (sorry)
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Stefano Vargiu via samba
> Verzonden: woensdag 21 oktober 2020 11:59
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Samba AD with multiple DC and multiple NICs
> > they can only have one hostname, so which Ipaddress do you
> link to that?
> Both IPs? The requirement of a DC having only one hostname
> doesn't rule out
> the option to let it be resolved to multiple IPs (which on
> the other hand
> samba does automatically when binding it to multiple interfaces).
> > What you could is, use one IP and then use a CNAME for the other IP
> Sorry, again I don't get it. Why a CNAME?
> How can I associate the second IP to a CNAME record?
> With the configuration you are suggesting, are you implying
> that I should
> only bind samba to one interface, or I can keep two interfaces in the
> "interfaces" parameter?
> Il giorno mer 21 ott 2020 alle ore 10:06 Rowland penny via samba <
> samba at lists.samba.org> ha scritto:
> > On 20/10/2020 22:09, Stefano Vargiu via samba wrote:
> > > I didn't know the concept of site in AD: thank you for
> pointing that out
> > to
> > > me, I'll read about it.
> > > I'm also going to avoid the same subnets on the two
> sites, but honestly
> > > I'll try to keep the multi-homed configuration because I
> always used it
> > (at
> > > least in single master configurations), always worked and
> I never had
> > > problems with it: I think it's enough that all the IPs of
> the domain
> > > controller are reachable (through appropriate routing)
> from any subnets
> > > served by it.
> > >
> > > Thank you
> > > Stefano
> > >
> > You can do as you wish, but I will say it again, just in
> case you missed
> > it, Active Directory Domain Controllers do not like being being
> > multi-homed, they can only have one hostname, so which
> Ipaddress do you
> > link to that ? What you could is, use one IP and then use a
> CNAME for
> > the other IP.
> > Rowland
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions: https://lists.samba.org/mailman/options/samba
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba