Changing the DNS Back End of a Samba AD DC: Difference between revisions

From SambaWiki
m (Fix link)
(Rework the "Changing the DNS backend" documentation. Being more clear and giving more examples.)
Line 1: Line 1:
= Introduction =
= Introduction =


During the provisioning step of a new [[Setup_a_Samba_Active_Directory_Domain_Controller|Samba Active Directory Domain Controller]], you may have chose the internal DNS or BIND_DLZ as the DNS backend. Sometimes it is necessary to revise this decision, this may be because of problems, limitations or other reasons.
During the provisioning step of a new [[Setup_a_Samba_Active_Directory_Domain_Controller|Samba Active Directory Domain Controller]], you have decite which DNS backend, if any, should be used: The internal DNS or BIND_DLZ. In some cases, it might be necessary, to revise this decission because of problems, limitations or other reasons. In the following we describe, how to change the DNS backend on a Samba AD Domain Controller.


'''See the [[Server_information_used_in_documentation|server information used in documentation]] page for used pathes, hostnames, etc.'''
This guide provides you with 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 =


= Changing from Samba Internal DNS to BIND_DLZ =


* [[Configure_BIND_as_backend_for_Samba_AD|Setup BIND]]
* [[Configure_BIND_as_backend_for_Samba_AD|Setup BIND]]
Line 19: Line 15:
* Shutdown Samba
* Shutdown Samba


* Migrate to BIND9_DLZ:
* Migrate the backend to BIND_DLZ
/usr/local/samba/sbin/samba_upgradedns --dns-backend=BIND9_DLZ
# /usr/local/samba/sbin/samba_upgradedns --dns-backend=BIND9_DLZ


* Change the "server services" parameter. You're having two options, to disable BIND_DLZ and enable the internal DNS:
* Remove the 'dns' option from the 'server services = ' parameter in your smb.conf, or change it to '-dns':
:1st way: If you're not having this parameter in your smb.conf, add it just with the "-dns" option. All other values are taken from the defaults (see man page).
server services = ........ -dns
server services = -dns
:2nd way: Change the "dns" option to "-dns":
server services = ........ <s>dns</s> -dns

* Enable automatic startup of BIND at boot time, e. g. by using "chkconfig", "systemctl", etc. - depending on your distribution.


* Start BIND
* Start BIND
Line 33: Line 34:




= Changing from BIND_DLZ to Samba Internal DNS =
= Changing from BIND_DLZ to Samba internal DNS =


* Shutdown BIND
* Shutdown BIND

* Disable automatic startup of BIND at boot time, e. g. by using "chkconfig", "systemctl", etc. - depending on your distribution.


* Shutdown Samba
* Shutdown Samba


* Migrate to Samba Internal DNS:
* Migrate the backend to Samba internal DNS
/usr/local/samba/sbin/samba_upgradedns --dns-backend=SAMBA_INTERNAL
# /usr/local/samba/sbin/samba_upgradedns --dns-backend=SAMBA_INTERNAL


* Add 'dns' option to the 'server services = ' parameter in your smb.conf:
* Change the "server services" parameter. You're having three options, to disable BIND_DLZ and enable the internal DNS:
:1st way: The internal DNS is part of the "server services" defaults (see man page). Remove the "service services" parameter completely, if the other options are also defaults.
server services = ........ dns
<s>server services = ..... dns</s>
:2nd way: Add the "dns" option to the "server services" parameter:
server services = ..... dns
:3rd way: Change the "-dns" option to "dns":
server services = ........ <s>-dns</s> dns


* Start Samba
* Start Samba

Revision as of 22:45, 5 September 2015

Introduction

During the provisioning step of a new Samba Active Directory Domain Controller, you have decite which DNS backend, if any, should be used: The internal DNS or BIND_DLZ. In some cases, it might be necessary, to revise this decission because of problems, limitations or other reasons. In the following we describe, how to change the DNS backend on a Samba AD Domain Controller.

See the server information used in documentation page for used pathes, hostnames, etc.



Changing from Samba internal DNS to BIND_DLZ

  • Shutdown Samba
  • Migrate the backend to BIND_DLZ
# /usr/local/samba/sbin/samba_upgradedns --dns-backend=BIND9_DLZ
  • Change the "server services" parameter. You're having two options, to disable BIND_DLZ and enable the internal DNS:
1st way: If you're not having this parameter in your smb.conf, add it just with the "-dns" option. All other values are taken from the defaults (see man page).
server services = -dns
2nd way: Change the "dns" option to "-dns":
server services = ........ dns -dns
  • Enable automatic startup of BIND at boot time, e. g. by using "chkconfig", "systemctl", etc. - depending on your distribution.
  • Start BIND
  • Start Samba



Changing from BIND_DLZ to Samba internal DNS

  • Shutdown BIND
  • Disable automatic startup of BIND at boot time, e. g. by using "chkconfig", "systemctl", etc. - depending on your distribution.
  • Shutdown Samba
  • Migrate the backend to Samba internal DNS
# /usr/local/samba/sbin/samba_upgradedns --dns-backend=SAMBA_INTERNAL
  • Change the "server services" parameter. You're having three options, to disable BIND_DLZ and enable the internal DNS:
1st way: The internal DNS is part of the "server services" defaults (see man page). Remove the "service services" parameter completely, if the other options are also defaults.
server services = ..... dns
2nd way: Add the "dns" option to the "server services" parameter:
server services = ..... dns
3rd way: Change the "-dns" option to "dns":
server services = ........ -dns dns
  • Start Samba