diff options
-rw-r--r-- | source4/scripting/python/samba/provision/sambadns.py | 4 | ||||
-rw-r--r-- | source4/setup/named.conf.dlz | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/provision/sambadns.py b/source4/scripting/python/samba/provision/sambadns.py index f24284abf6..5c3e6ba879 100644 --- a/source4/scripting/python/samba/provision/sambadns.py +++ b/source4/scripting/python/samba/provision/sambadns.py @@ -814,11 +814,9 @@ def create_named_conf(paths, realm, dnsdomain, dns_backend): setup_file(setup_path("named.conf.update"), paths.namedconf_update) elif dns_backend == "BIND9_DLZ": - dlz_module_path = os.path.join(samba.param.modules_dir(), - "bind9/dlz_bind9.so") setup_file(setup_path("named.conf.dlz"), paths.namedconf, { "NAMED_CONF": paths.namedconf, - "BIND9_DLZ_MODULE": dlz_module_path, + "MODULESDIR" : samba.param.modules_dir(), }) diff --git a/source4/setup/named.conf.dlz b/source4/setup/named.conf.dlz index c90020ff59..be20a57a63 100644 --- a/source4/setup/named.conf.dlz +++ b/source4/setup/named.conf.dlz @@ -7,8 +7,13 @@ # # This configures dynamically loadable zones (DLZ) from AD schema +# Uncomment only single database line, depending on your BIND version # dlz "AD DNS Zone" { - database "dlopen ${BIND9_DLZ_MODULE}"; + # For BIND 9.8.0 + database "dlopen ${MODULESDIR}/bind9/dlz_bind9.so"; + + # For BIND 9.9.0 + # database "dlopen ${MODULESDIR}/bind9/dlz_bind9_9.so"; }; |