<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>Hai, 
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><SPAN class=828081806-24042019><SPAN lang=N><FONT face=Arial><FONT 
size=2><SPAN class=828081806-24042019>> </SPAN>> 3.Patching "named.conf" 
template to load the correct bind9 module (i.e 9.11)<BR><SPAN 
class=828081806-24042019>> </SPAN>I _think_ samba_dnsupgradedns writes a new 
config fragment.<BR><SPAN class=828081806-24042019>No you need adjustments in 
bind as shown below. </SPAN></FONT></FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=828081806-24042019><SPAN lang=N><FONT face=Arial><FONT 
size=2><SPAN 
class=828081806-24042019></SPAN></FONT></FONT> </DIV></SPAN></SPAN>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>after the 4 
points, im missing the following. </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>Addding point 5. 
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>The end result 
should look like this: </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>ls -al 
/var/lib/samba/bind-dns/</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019><BR>total 
28<BR>drwxrwx---  3 root bind 4096 Apr 24 08:17 .<BR>drwxr-xr-x 10 root 
root 4096 Apr  8 15:03 ..<BR>drwxrwx---  3 root bind 4096 Feb 27 16:38 
dns<BR>-rw-r-----  2 root bind  877 Apr 28  2015 
dns.keytab<BR>-rw-r--r--  1 root root  781 Feb 27 16:38 
named.conf<BR>-r--r--r--  1 root root  312 Feb 27 16:41 
named.conf.update<BR>-rw-r--r--  1 root root 2092 Feb 27 16:38 
named.txt<BR></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>Take note that 
dns.keytab isnt moved by default but should be moved. 
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>This is one i did 
manualy.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>After that change 
you need to adjust : /etc/bind/named.conf.options. </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019>        // <A 
href="https://wiki.samba.org/index.php/Dns-backend_bind">https://wiki.samba.org/index.php/Dns-backend_bind</A><BR>        
// DNS dynamic updates via Kerberos (optional, but 
recommended)<BR>       // old path 
//tkey-gssapi-keytab 
"/var/lib/samba/private/dns.keytab";<BR>        
tkey-gssapi-keytab "/var/lib/samba/bind-dns/dns.keytab";<BR></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>and in : 
/etc/bind/named.conf.local. change</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019>        // adding 
the dlopen ( Bind DLZ ) module for samba,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019>        include 
"/var/lib/samba/bind-dns/named.conf";<BR></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>Now bind9 restart 
then samba restart. </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>to make sure the 
restart order is correct and it always works. </SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>systemctl edit 
samba-ad-dc.service</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019># 
/etc/systemd/system/samba-ad-dc.service.d/override.conf<BR>[Unit]<BR>After=network.target 
network-online.target bind9.service<BR></SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>Maybe its an option 
to add it as default that samba always starts after bind9 started. 
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019> </DIV></SPAN></FONT>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019> </DIV></SPAN></FONT>
<DIV><FONT size=2 face=Arial><SPAN class=828081806-24042019>Greetz, 
</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019></SPAN></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019>Louis</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial><SPAN 
class=828081806-24042019> </DIV></SPAN></FONT></BODY></HTML>