[Samba] Samba 4.7.1 Switching from SAMBA_INTERNAL to BIND_DLZ failed

Sina Owolabi notify.sina at gmail.com
Fri Nov 24 22:27:33 UTC 2017


Hi Rowland!

Yes there are samba packages installed:

[root at testdc1 ~]# rpm -qa | grep samba
samba-client-libs-4.6.2-11.el7_4.x86_64
samba-winbind-modules-4.6.2-11.el7_4.x86_64
samba-common-libs-4.6.2-11.el7_4.x86_64
samba-common-4.6.2-11.el7_4.noarch
samba-common-tools-4.6.2-11.el7_4.x86_64
samba-libs-4.6.2-11.el7_4.x86_64

And there are seven zones because of /etc/named.rfc1912.zones:

// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

zone "localhost.localdomain" IN {
        type master;
        file "named.localhost";
        allow-update { none; };
};

//zone "localhost" IN {
//      type master;
//      file "named.localhost";
//      allow-update { none; };
//};

zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"
IN {
        type master;
        file "named.loopback";
        allow-update { none; };
};

zone "1.0.0.127.in-addr.arpa" IN {
        type master;
        file "named.loopback";
        allow-update { none; };


};

zone "0.in-addr.arpa" IN {
        type master;
        file "named.empty";
        allow-update { none; };
};

And the localhost zones from the wiki.

On Fri, Nov 24, 2017 at 10:59 PM, Rowland Penny via samba
<samba at lists.samba.org> wrote:
> On Fri, 24 Nov 2017 22:11:17 +0100
> Sina Owolabi via samba <samba at lists.samba.org> wrote:
>
>> Hi List!
>>
>> Im trying to switch from using the samba internal dns to bind.
>> Im running a self-compiled samba 4.7.1 pair of DCs on Centos 7.2.
>>
>> After following the steps in the wiki, named refuses to start with
>> this error:
>>
>> ● named.service - Berkeley Internet Name Domain (DNS)
>>    Loaded: loaded (/usr/lib/systemd/system/named.service; enabled;
>> vendor preset: disabled)
>>    Active: failed (Result: exit-code) since Fri 2017-11-24 21:58:41
>> WAT; 4min 10s ago
>>   Process: 9321 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF}
>> $OPTIONS (code=exited, status=1/FAILURE)
>>   Process: 9318 ExecStartPre=/bin/bash -c if [ !
>> "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z
>> "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi
>> (code=exited, status=0/SUCCESS)
>>  Main PID: 8949 (code=exited, status=0/SUCCESS)
>>
>> Nov 24 21:58:41 testdc1.mytestdom.testsamba.com named[9323]: listening
>> on IPv6 interface lo, ::1#53
>> Nov 24 21:58:41 testdc1.mytestdom.testsamba.com named[9323]:
>> generating session key for dynamic DNS
>> Nov 24 21:58:41 testdc1.mytestdom.testsamba.com named[9323]: sizing
>> zone task pool based on 7 zones
>> Nov 24 21:58:41 testdc1.mytestdom.testsamba.com named[9323]: Loading
>> 'AD DNS Zone' using driver dlopen
>> Nov 24 21:58:41 testdc1.mytestdom.testsamba.com named[9323]:
>> dlz_dlopen failed to open library
>> '/usr/local/samba/lib/bind9/dlz_bind9_9.so' -
>> /usr/lib64/samba/libreplace-samba4.so: version `SAMBA_4.7.1' not found
>> (required by /usr/local/samba/lib/libsamba-util.so.0)
>
> Do you have any samba packages installed ?
>
> It looks like the wrong file is being found, it should be here:
>
> /usr/local/samba/lib/private/libreplace-samba4.so
>
> Also, why are there '7' zones ?
>
> Rowland
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list