User Tools

Site Tools


join_samba4_as_additional_dc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
join_samba4_as_additional_dc [2015/09/10 22:26]
cbustillo [Joining the existing domain as a DC]
join_samba4_as_additional_dc [2020/04/10 17:38] (current)
Line 150: Line 150:
  # samba-tool dns add IP-of-your-DNS _msdcs.redtic.uclv.cu 737506d0-bfe6-40c8-815d-08c3dff7a67f CNAME redtic-ad2.redtic.uclv.cu -Uadministrator  # samba-tool dns add IP-of-your-DNS _msdcs.redtic.uclv.cu 737506d0-bfe6-40c8-815d-08c3dff7a67f CNAME redtic-ad2.redtic.uclv.cu -Uadministrator
 </​code>​ </​code>​
 +
 +===== Configure DNS Server =====
 +
 +Follow the steps in [[samba4_as_ad_dc#​configure_dns|configure DNS Server.]]
  
 Now is time to put a "​nameserver"​ entry of your new DC in your '/​etc/​resolv.conf'​. Example: Now is time to put a "​nameserver"​ entry of your new DC in your '/​etc/​resolv.conf'​. Example:
Line 201: Line 205:
 You can seize all five roles: rid, schema, naming, pdc and infrastructure (you can use "​--role=all"​ to seize all at once). You can seize all five roles: rid, schema, naming, pdc and infrastructure (you can use "​--role=all"​ to seize all at once).
  
 +
 +====== Known issues and ways to fix/​workaround ======
 +----
 +
 +If after join Samba4 as second domain controllers you receive the following error in the second DC in the logs file o after running manually "​samba_dnsupdate --verbose":​
 +
 +<​code>​
 +/​usr/​sbin/​samba_dnsupdate:​ update failed: NOTAUTH
 +/​usr/​sbin/​samba_dnsupdate:​ update failed: NOTAUTH
 +/​usr/​sbin/​samba_dnsupdate:​ update failed: NOTAUTH
 +/​usr/​sbin/​samba_dnsupdate:​ update failed: NOTAUTH
 +/​usr/​sbin/​samba_dnsupdate:​ update failed: NOTAUTH
 +/​usr/​sbin/​samba_dnsupdate:​ update failed: NOTAUTH
 +</​code> ​
 +
 +To solve the above, in the second DC (recently joined) put like dns server the DC1's IP address, ie:
 + /​etc/​resolv.conf
 +
 +<​code>​
 +search yourdomain.com
 +nameserver ip-of-dc2
 +nameserver ip-of-dc1
 +</​code>​
 +
 +Finally restart Samba o run:
 +
 +<​code>​
 +# samba_dnsupdate --verbose
 +</​code>​
 +
 +No you can see that all record are added successfully!!!
  
 ====== A note on DNS updates ====== ====== A note on DNS updates ======
join_samba4_as_additional_dc.1441923965.txt.gz ยท Last modified: 2020/04/10 17:38 (external edit)