<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>55700</bug_id>
          
          <creation_ts>2025-08-22 18:55:42 +0300</creation_ts>
          <short_desc>samba-winbind-dnsupdate: Не удаётся обновить PTR-записи (IPv4 и IPv6) при использовании BIND9_DLZ DNS на DC: not authoritative for update zone (NOTAUTH)</short_desc>
          <delta_ts>2025-08-22 18:55:42 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>samba-winbind-dnsupdate</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=36563</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Andrey Limachko">liannnix</assigned_to>
          <cc>liannnix</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>271298</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-08-22 18:55:42 +0300</bug_when>
    <thetext>Шаги
====

1. Развернуть Samba DC с BIND9_DLZ DNS (ALT Server 11.0 x86_64 minimal) и (необязательно) реплику к нему.

/etc/bind/options.conf:

&gt; options {
&gt;   forward first;
&gt;   forwarders { &lt;upstream-dns-ipv4&gt;; };
&gt; 	version &quot;unknown&quot;;
&gt; 	directory &quot;/etc/bind/zone&quot;;
&gt; 	pid-file &quot;none&quot;;
&gt; 	dump-file &quot;/var/run/named_dump.db&quot;;
&gt; 	statistics-file &quot;/var/run/named.stats&quot;;
&gt; 	recursing-file &quot;/var/run/recursing&quot;;
&gt; 	tkey-gssapi-keytab &quot;/var/lib/samba/bind-dns/dns.keytab&quot;;
&gt;   minimal-responses yes;
&gt; 	listen-on { any; };
&gt; 	allow-query { localnets; &lt;client-dc-ipv4-subnet&gt;; };
&gt; 	allow-recursion { localnets; &lt;client-dc-ipv4-subnet&gt;; };
&gt; # include &quot;/etc/bind/resolvconf-options.conf&quot;;
&gt; 	max-cache-ttl 86400;
&gt; };
&gt; logging {
&gt;         category lame-servers {null;};
&gt; };

2. Ввести клиентов с помощью команды вида:

# system-auth write ad &quot;SAMBA.TESTDOMAIN&quot; &quot;client&quot; &quot;SAMBA&quot; &quot;Administrator&quot; &quot;Pa##word&quot; --winbind

3. # winbind-dnsupdate --allow-ipv4-ptr-update
4. # winbind-dnsupdate --allow-ipv6-ptr-update

Фактический результат
=====================

3. IPv4:

&gt; [INFO]: Hostname: client.samba.testdomain.
&gt; [INFO]: Check winbind status.
&gt; [INFO]: Winbind is running. Continue.
&gt; [INFO]: Trying to get the site name.
&gt; [INFO]: Site: Default-First-Site-Name.
&gt; [INFO]: Get host credentials.
&gt; [INFO]: Retrieving host credentials successfully.
&gt; [INFO]: Trying to get a list of domain controllers in site.
&gt; [INFO]: Success.
&gt; [INFO]: Trying to find an available DNS server.
&gt; [INFO]: Checking the availability of DNS server on dc2.samba.testdomain..
&gt; [ERROR]: DNS server on dc2.samba.testdomain. not responding.
&gt; [INFO]: Checking the availability of DNS server on dc.samba.testdomain..
&gt; [INFO]: DNS server on dc.samba.testdomain. available.
&gt; [INFO]: Update IPv4.
&gt; [INFO]: Trying to get IPv4 address of a domain controller.
&gt; [INFO]: Successful. DC info:
&gt; [INFO]: Domain controller name: dc.samba.testdomain.
&gt; [INFO]: Domain controller IPv4: &lt;dc-ipv4&gt;.
&gt; [INFO]: Trying parse connection interface name.
&gt; [INFO]: Successful. Interface name: ens19.
&gt; [INFO]: Checking the existence of A record.
&gt; [INFO]: IPv4 record exists.
&gt; [INFO]: Checking the existence of a PTR record.
&gt; [INFO]: PTR record not exists.
&gt; [INFO]: Checking whether the IPv4 records needs to be updated.
&gt; [INFO]: Current IPv4 address: &lt;client-ipv4&gt;.
&gt; [INFO]: IPv4 address in DNS server: &lt;client-ipv4&gt;.
&gt; [INFO]: The IPv4 address of interface ens19 has not been changed.
&gt; [INFO]: The update IPv4 was skipped.
&gt; [INFO]: The PTR record does not exist but IPv4 not changed and PTR record update enable.
&gt; [INFO]: Start IPv4 PTR record registration.
&gt; [ERROR]: Nsupdate error.
&gt; [ERROR]: update failed: NOTAUTH
&gt; [ERROR]: IPv4 PTR record update failed.

&gt; dc.samba.testdomain named[1086]: client @0x7fe3eec2d498 &lt;client-ipv6&gt;#37789/key CLIENT\$\@SAMBA.TESTDOMAIN: update failed: &lt;reverse-ipv4(3-octets)&gt;.in-addr.arpa: not authoritative for update zone (NOTAUTH)

4. IPv6:

&gt; [INFO]: Hostname: client.samba.testdomain.
&gt; [INFO]: Check winbind status.
&gt; [INFO]: Winbind is running. Continue.
&gt; [INFO]: Trying to get the site name.
&gt; [INFO]: Site: Default-First-Site-Name.
&gt; [INFO]: Get host credentials.
&gt; [INFO]: Retrieving host credentials successfully.
&gt; [INFO]: Trying to get a list of domain controllers in site.
&gt; [INFO]: Success.
&gt; [INFO]: Trying to find an available DNS server.
&gt; [INFO]: Checking the availability of DNS server on dc2.samba.testdomain..
&gt; [ERROR]: DNS server on dc2.samba.testdomain. not responding.
&gt; [INFO]: Checking the availability of DNS server on dc.samba.testdomain..
&gt; [INFO]: DNS server on dc.samba.testdomain. available.
&gt; [INFO]: Update IPv4.
&gt; [INFO]: Trying to get IPv4 address of a domain controller.
&gt; [INFO]: Successful. DC info:
&gt; [INFO]: Domain controller name: dc.samba.testdomain.
&gt; [INFO]: Domain controller IPv4: &lt;dc-ipv4&gt;.
&gt; [INFO]: Trying parse connection interface name.
&gt; [INFO]: Successful. Interface name: ens19.
&gt; [INFO]: Checking the existence of A record.
&gt; [INFO]: IPv4 record exists.
&gt; [INFO]: Checking whether the IPv4 records needs to be updated.
&gt; [INFO]: Current IPv4 address: &lt;client-ipv4&gt;.
&gt; [INFO]: IPv4 address in DNS server: &lt;client-ipv4&gt;.
&gt; [INFO]: The IPv4 address of interface ens19 has not been changed.
&gt; [INFO]: The update IPv4 was skipped.
&gt; [INFO]: IPv4 update was successful.
&gt; [INFO]: Update IPv6.
&gt; [INFO]: Trying to get IPv6 address of a domain controller.
&gt; [INFO]: Successful. DC info:
&gt; [INFO]: Domain controller name: dc.samba.testdomain.
&gt; [INFO]: Domain controller IPv6: &lt;dc-ipv6&gt;.
&gt; [INFO]: Trying parse connection interface name.
&gt; [INFO]: Successful. Interface name: ens19.
&gt; [INFO]: Checking the existence of AAAA record.
&gt; [INFO]: IPv6 record exists.
&gt; [INFO]: Checking the existence of a PTR record.
&gt; [INFO]: PTR record not exists.
&gt; [INFO]: Checking whether the IPv6 records needs to be updated.
&gt; [INFO]: Current IPv6 address: &lt;client-ipv6&gt;:9207.
&gt; [INFO]: IPv6 address in DNS server: &lt;client-ipv6&gt;:9207.
&gt; [INFO]: The IPv6 address of interface ens19 has not been changed.
&gt; [INFO]: The update IPv6 was skipped.
&gt; [INFO]: The PTR record does not exist but IPv6 not changed and PTR record update enable.
&gt; [INFO]: Start IPv6 PTR record registration.
&gt; [ERROR]: Nsupdate error.
&gt; [ERROR]: update failed: NOTAUTH
&gt; [ERROR]: IPv6 PTR record update failed.

На DC в journalctl:

&gt; dc.samba.testdomain named[1230]: client @0x7fa04ee7a898 &lt;client-ipv6&gt;:9207#33731/key S-W-EDU-XFCE\$\@SAMBA.TESTDOMAIN: update failed: &lt;reverse-ipv6-zone(32-bytes-16-nibbles)&gt;.ip6.arpa: not authoritative for update zone (NOTAUTH)


Ожидаемый результат
===================

Успешное обновление PTR-записей.


Дополнительно
=============

Воспроизводится только с BIND9_DLZ. С Internal DNS данная ошибка не воспроизводится.

Обновление A- и AAAA- записей при этом также проходит без данной ошибки.


Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus]
alterator-auth-0.48-alt1.x86_64
samba-4.21.7-alt4.x86_64

[p11+387440.10]
alterator-auth-0.48-alt1.x86_64
samba-4.21.7-alt4.x86_64

[p11]
alterator-auth-0.45-alt1.x86_64
samba-4.20.8-alt2.x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>