Hello,
there is a bug in samba 4 and how it handles updates to AAAA records using bind as dns backend. Bind package version is 9.9.5.dfsg-4.
Creating an AAAA record with nsupdate works fine:
~$ nsupdate -g
fake.example.org. 3600 IN AAAA fda5:cc2c:bf15:8298::1
But samba-tool doesn't seem to know anything about this record:
~$ samba-tool dns query dnsserver example.org fake AAAA
ERROR(runtime): uncaught exception - (9714, 'WERR_DNS_ERROR_NAME_DOES_NOT_EXIST')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 988, in run
None, record_type, select_flags, None, None)
But if I create an AAAA record with samba-tool:
~$ samba-tool dns add dnsserver example.org another_fake AAAA fda5:cc2c:bf15:8298::10
Record added successfully
~$ samba-tool dns query dnsserver example.org another_fake AAAA
Name=, Records=1, Children=0
AAAA: fda5:cc2c:bf15:8298:0000:0000:0000:0010 (flags=f0, serial=310, ttl=900)
But now dig doesn't find the record:
~$ dig +noall +answer aaaa another_fake.example.org
(above command prints nothing)
Also if I want to modify an AAAA record with nsupdate it end with SRVFAIL:
~$ nsupdate -g
update failed: SERVFAIL
This happens probably because samba(-tool) doesn't know anything about the record.
The above leads to the situation that I'm unable to modify any added AAAA records.
Please let me know if you need more information.
Regards,
Juha