[Samba] Samba4 Join a domain as a DC

Rowland Penny rowlandpenny241155 at gmail.com
Thu Jul 9 16:20:45 UTC 2015


On 09/07/15 17:06, zorg wrote:
> But If i want my samba4 to be dns after when i ll decide to stop the 
> other dc
>
> can't i keep the to dns
>
> Could you explain a bit
>
>
>
> Le 09/07/2015 17:55, Marc Muehlfeld a écrit :
>> Hello,
>>
>> Am 09.07.2015 um 17:04 schrieb zorg:
>>> following this
>>> https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins
>>>
>>> But i  do
>>> samba-tool dns add EPSILUM _msdcs.myos.local
>>> d4aBdfb0-8937-465a-af2d-d657fgh145ee CNAME smb4.myos.local
>>> If have got
>>>   ERROR(runtime): uncaught exception - (9601,
>>> 'WERR_DNS_ERROR_ZONE_DOES_NOT_EXIST')
>>> ‎ File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", 
>>> line
>>> 175, in _run
>>> ‎ return self.run(*args, **kwargs)
>>> ‎ File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line
>>> 1070, in run
>>> ‎0, server, zone, name, add_rec_buf, None)
>>
>> During the DC join, have you configured that the new DC should not be a
>> DNS? E. g. by
>> # samba-tool domain join ... --dns-backend=NONE
>> or did you choose DNS backend=NONE if you used the interactive way?
>>
>> In that case run this command on one of your DCs, having a DNS.
>>
>>
>>
>> Regards,
>> Marc
>
>

Hi, Active directory lives on DNS, if no DNS there is no Active Directory.

Best plan would be to run DNS on all DCs, this way if there is a problem 
with one DC, you still have DNS. You should point each DC at another DC, 
then have its own address to fall back on i.e. if the ipaddress of DC1 
is 192.168.0.2 and the ipaddress of DC2 is 192.168.0.3, then the 
/etc/resolv.conf on DC1 would be:

search example.com
nameserver 192.168.0.3
nameserver 192.168.0.2

and on DC2:

  search example.com
nameserver 192.168.0.2
nameserver 192.168.0.3

Rowland



More information about the samba mailing list