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

Christopher Wooley theonlytalkinggoat at gmail.com
Sun Sep 22 16:20:08 UTC 2019


On Sun, Sep 22, 2019 at 7:19 AM Rowland penny via samba <
samba at lists.samba.org> wrote:

> 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
>
>
Thank you, I didn't realize the version of Samba was so old, in the Ubuntu
18 repos. I found a different PPA and upgraded to 4.10.8. After restarting
the service, it created the folder.

I use Webmin to manage DNS, so one thing I'm confused about is, will Samba
be adding the zones so they will be manageable by bind and Webmin or will I
have to use samba-tool to manage the local AD's DNS? Samba isn't creating
zone files, like Bind, they don't show up in Bind's Webmin module and I
can't find any files that are being created by Samba that look like Bind's
zone files.

$ttl 38400
example.com.    IN      SOA     ns1. example.example.com. (
                        1569168606
                        10800
                        3600
                        604800
                        38400 )
example.com.    IN      NS      ns1.
ns1.example.com.        IN      A       192.168.15.52
example.com.    IN      A       192.168.15.52


More information about the samba mailing list