[Samba] bind-dns Folder Missing for Samba4 Setup in Ubuntu

Rowland penny rpenny at samba.org
Sun Sep 22 12:19:09 UTC 2019


On 22/09/2019 13:08, Christopher Wooley wrote:
> I used the distro's compilation, samba -V : Version 4.7.6-Ubuntu, but 
> I think it's already running DLZ. I know I recompiled Bind9 in order 
> to add the DLZ necessary flags.
Then you were wasting your time, Ubuntu's Bind9 is already DLZ capable
>
> samba_upgradedns --dns-backend=BIND9_DLZ
> Reading domain information
> DNS accounts already exist
> No zone file /var/lib/samba/private/dns/LOCAL.****.COM.zone
> DNS records will be automatically created
> DNS partitions already exist
> dns-sbs-server account already exists
> See /var/lib/samba/private/named.conf for an example configuration 
> include file for BIND
> and /var/lib/samba/private/named.txt for further documentation 
> required for secure DNS updates
> Finished upgrading DNS
>
> I included /var/lib/samba/private/named.conf in the 
> /etc/bind/named.conf configuration file...
> include "/var/lib/samba/private/named.conf";
> Which contains...
> dlz "AD DNS Zone" {
>     # For BIND 9.8.x
>     # database "dlopen 
> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9.so";
>
>     # For BIND 9.9.x
>     # database "dlopen 
> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_9.so";
>
>     # For BIND 9.10.x
>     # database "dlopen 
> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_10.so";
>
>     # For BIND 9.11.x
>      database "dlopen 
> /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so";
> };
>
> /usr/lib/x86_64-linux-gnu/samba/bind9# ls -l
> -rw-r--r-- 1 bind bind 38904 May 23 12:06 dlz_bind9_11.so
>
> I also ensured that bind is able to create files in the 
> /var/lib/samba/private/dns folder...
> /var/lib/samba/private/dns# sudo -u bind nano test
> /var/lib/samba/private/dns# ls -l
> total 2956
> -rw-rw---- 1 root bind 3014656 Sep 22 11:52 sam.ldb
> drwxrwx--- 2 root bind    4096 Sep 22 11:52 sam.ldb.d
> -rw-r--r-- 1 bind bind       5 Sep 22 11:55 test
>
> After this, I performed another search for bind-dns and still found 
> nothing.
> /# find . -iname bind-dns
> /#

That is because it will never exist on 4.7.6, I told you in my last 
post, it was introduced from 4.8.0

If you really want the 'bind-dns' directory and to stop using an EOL (as 
far as Samba is concerned) version of Samba, see here:

http://apt.van-belle.nl/

Rowland





More information about the samba mailing list