Bouke J. Henstra
2016-Apr-14 20:02 UTC
[Samba] DNS: Migrate from BIND9_FLATFILE to SAMBA_INTERNAL (Samba 4.1.17)
Dear all, I have a few question regarding to DNS and upgrading from Samba 4.1.17 to 4.4.2. After reading about the Badlock Bug, I feel the urge to upgrade my Samba installation and to move from BIND9_FLATFILE to SAMBA_INTERNAL_DNS. I am using Samba version 4.1.17. During provisioning (some years ago) I have decided to use BIND9_FLATFILE. At this moment I would like to upgrade to Samba 4.4.2 and I would like to migrate to SAMBA_INTERNAL DNS. I have noticed the command "samba_upgradedns" but unfortunately I could not find information about migrating from BIND9_FLATFILE to SAMBA_INTERNAL DNS. I have found some information but it dates from 2012 and I am not sure if this still would work (http://samba.2283325.n4.nabble.com/migration-bind9-flat-file-to-DLZ-td4320796.html). I would appreciate some help. Could someone please let me know what the best way is to upgrade to SAMBA_INTERNAL DNS in this situation? And, is it required to migrate to SAMBA_INTERNAL DNS (or can I stick with BIND9_FLATFILE)? And, are there any caveats when I upgrade from 4.1.17 to 4.4.2. The first version I have installed is 4.0.6. Does "Update an early Samba 4 version on Samba Active Directory DCs" found at "https://wiki.samba.org/index.php/Updating_Samba" apply? I am a little bit worried after reading "Early versions of Samba 4 (Beta, RC, early 4.0.x) had some issues" Many thanks for your help. Kind regards, Bouke -- This message (and any associated files) may contain confidential and/or privileged information. If you are not the intended recipient or authorized to receive this for the intended recipient, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by sending a reply e-mail and delete this message. Thank you for your cooperation.
bouke
2016-Apr-16 11:05 UTC
[Samba] DNS: Migrate from BIND9_FLATFILE to SAMBA_INTERNAL (Samba 4.1.17)
I might have found the correct script: /src/samba-4.1.17/source4/scripting/bin/samba_upgradedns # Copyright (C) Amitay Isaacs <amitay at gmail.com> 2012 # # Upgrade DNS provision from BIND9_FLATFILE to BIND9_DLZ or SAMBA_INTERNAL I will create an extra full copy of my Samba server and next try to upgrade DNS. Cheers. -- View this message in context: http://samba.2283325.n4.nabble.com/DNS-Migrate-from-BIND9-FLATFILE-to-SAMBA-INTERNAL-Samba-4-1-17-tp4701054p4701144.html Sent from the Samba - General mailing list archive at Nabble.com.
bouke
2016-Apr-16 11:39 UTC
[Samba] DNS: Migrate from BIND9_FLATFILE to SAMBA_INTERNAL (Samba 4.1.17)
Okay, this did not work. root at comsrv01a:/home/main01/src/samba-4.1.17/source4/scripting/bin# ./samba_upgradedns --help Traceback (most recent call last): File "./samba_upgradedns", line 31, in <module> import ldb ImportError: No module named ldb Luckilly I could find a previous discussion at https://lists.samba.org/archive/samba-technical/2012-April/082674.html I have noticed that I have to set the variable PYTHONPATH: root at comsrv01a:/home/main01/src/samba-4.1.17/source4/scripting/bin# export PYTHONPATH=/opt/samba/lib/python2.7/site-packages And next run the samba_upgradedns command: root at comsrv01a:/home/main01/src/samba-4.1.17/source4/scripting/bin# ./samba_upgradedns --help Usage: upgradedns [options] Options: -h, --help show this help message and exit --dns-backend=<BIND9_DLZ|SAMBA_INTERNAL> The DNS server backend, default SAMBA_INTERNAL --migrate=<yes|no> Migrate existing zone data, default yes --verbose Be verbose Cheers. -- View this message in context: http://samba.2283325.n4.nabble.com/DNS-Migrate-from-BIND9-FLATFILE-to-SAMBA-INTERNAL-Samba-4-1-17-tp4701054p4701145.html Sent from the Samba - General mailing list archive at Nabble.com.