Changing the DNS Back End of a Samba AD DC

From SambaWiki
Revision as of 22:47, 14 June 2014 by Mmuehlfeld (talk | contribs) (Initial page about changing the DNS backend)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

During the provisioning step of a new Samba Active Directory Domain Controller, you may have choosen the internal DNS or BIND_DLZ as DNS backend. Sometimes it would be necessary to revise this decission, because of problems, limitations or other reasons.

This guide provide you the required information to change the DNS backend on a Domain Controller.



Server information used in this HowTo

Installation Directory:    /usr/local/samba/



Changing from Samba Internal DNS to BIND_DLZ

  • Shutdown Samba
  • Migrate to BIND9_DLZ:
/usr/local/samba/sbin/samba_upgradedns --dns-backend=BIND9_DLZ
  • Remove the 'dns' option from the 'server services = ' parameter in your smb.conf, or change it to '-dns':
server services = ........ -dns
  • Start BIND
  • Start Samba



Changing from BIND_DLZ to Samba Internal DNS

  • Shutdown BIND
* Shutdown Samba
  • Migrate to Samba Internal DNS:
/usr/local/samba/sbin/samba_upgradedns --dns-backend=SAMBA_INTERNAL
  • Add 'dns' option to the 'server services = ' parameter in your smb.conf:
server services = ........ dns
  • Start Samba