You are not logged in.

#1 2024-07-25 15:53:16

fiReb0ll
Member
Registered: 2024-07-25
Posts: 2

Samba Domain Controller with Bind9_DLZ

Hello,

i have a problem with the installation with the Samba Domain Controller and BIND as DNS Server.

The /etc/named.conf is the same as the linked wiki. Only the IPv4´s i had changed for forwarder and the listen range.
After modify the config i set the permissions and try to start 'named'.

But the systemctl status:

systemctl status named
× named.service - Internet domain name server
     Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; preset: disabled)
     Active: failed (Result: core-dump) since Wed 2024-07-24 16:50:31 UTC; 22h ago
   Duration: 110ms
 Invocation: b66e79f942d347b6b0bcd2740f60ff6b
   Main PID: 350 (code=dumped, signal=SEGV)
   Mem peak: 8.1M
        CPU: 91ms

Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: listening on IPv4 interface eth0, -----------#53
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: IPv6 socket API is incomplete; explicitly binding to each IPv6 address sepa>
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: listening on IPv6 interface lo, ::1#53
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: listening on IPv6 interface eth0, ---------#53
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: generating session key for dynamic DNS
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: sizing zone task pool based on 3 zones
Jul 24 16:50:31 srv-hq-lxc-dc01 named[350]: Loading 'AD DNS Zone' using driver dlopen
Jul 24 16:50:31 srv-hq-lxc-dc01 systemd[1]: named.service: Main process exited, code=dumped, status=11/SEGV
Jul 24 16:50:31 srv-hq-lxc-dc01 systemd[1]: named.service: Failed with result 'core-dump'.
  • i am checked the config with named-checkconf with out an error.

  • i tried look errors with sudo -u named -g named -H sh -c '/usr/bin/named -f -d 10 -u named' and only the Segmentation fault comes back.

  • i looked in the coredumpctl and it was empty

  • The log files are empty

  • it is a fresh arch linux installation

  • same issue on an old system

if i delete the AD line  include "/var/lib/samba/bind-dns/named.conf"; in named.conf then starts the named service.

The /var/lib/samba/bind-dns/named.conf

dlz "AD DNS Zone" {
    # For BIND 9.8.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9.so";

    # For BIND 9.9.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9_9.so";

    # For BIND 9.10.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9_10.so";

    # For BIND 9.11.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9_11.so";

    # For BIND 9.12.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9_12.so";

    # For BIND 9.14.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9_14.so";

    # For BIND 9.16.x
    # database "dlopen /usr/lib/samba/bind9/dlz_bind9_16.so";
    #
    # For BIND 9.18.x
     database "dlopen /usr/lib/samba/bind9/dlz_bind9_18.so";
};

is original from samba created.

i am out of ideas. Everything can help?

Last edited by fiReb0ll (2024-07-25 15:58:50)

Offline

#2 2024-07-26 07:02:58

-thc
Member
Registered: 2017-03-15
Posts: 578

Re: Samba Domain Controller with Bind9_DLZ

This bug also affected a setup that had run for 4 years: https://bbs.archlinux.org/viewtopic.php?id=295995

The upstream bug https://bugzilla.samba.org/show_bug.cgi?id=15643 mentions setting an environment variable named LDB_MODULES_DISABLE_DEEPBIND to prevent this.

Offline

#3 2024-07-28 16:15:48

fiReb0ll
Member
Registered: 2024-07-25
Posts: 2

Re: Samba Domain Controller with Bind9_DLZ

Tanks!! smile
This was it.

Offline

Board footer

Powered by FluxBB