Georg Bretschneider
2013-Sep-04 15:24 UTC
[Samba] "Empty" DNS entry, no A record, can't delete or update
Hi, I am running Samba 4.1.0 with Bind 9.8.4 and I am struggling with an "empty" DNS entry. I used Microsofts DNS MMC to add an A record to one of my zones, later deleted this entry because I wanted to move the record to another zone. After I moved it backed the A record (and the PTR) was invisible in the MMC. nslookup still works for the IP and hostname from the PDC and other hosts on the network. (Don't ask me why!) Here are some outputs: root:~# samba-tool dns query pdc.domain.local zoneA hostA ALL -Uadministrator Name=, Records=0, Children=0 root:~# samba-tool dns query pdc.domain.local zoneA @ ALL -Uadministrator [a lot of correct host entries with their corresponding A records] Name=hostA, Records=0, Children=0 # notice the missing second line. Example: A: 192.168.0.100 (flags=f0, serial=11, ttl=0) [more host entries] root:~# samba-tool dns add pdc.domain.local zoneA hostA A 192.168.0.100 -Uadministrator ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 1067, in run 0, server, zone, name, add_rec_buf, None) I don't know how to get rid of this. Any suggestions? Bye Georg
Thomas Zeitinger
2013-Sep-05 07:38 UTC
[Samba] "Empty" DNS entry, no A record, can't delete or update
Hi Georg, On 2013-09-04 17:24, Georg Bretschneider wrote:> root:~# samba-tool dns query pdc.domain.local zoneA hostA ALL -Uadministrator > Name=, Records=0, Children=0 > > root:~# samba-tool dns query pdc.domain.local zoneA @ ALL -Uadministrator > [a lot of correct host entries with their corresponding A records] > Name=hostA, Records=0, Children=0 # notice the missing second line. Example: A: 192.168.0.100 (flags=f0, serial=11, ttl=0) > [more host entries] > > root:~# samba-tool dns add pdc.domain.local zoneA hostA A 192.168.0.100 -Uadministrator > ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS') > File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run > return self.run(*args, **kwargs) > File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/dns.py", line 1067, in run > 0, server, zone, name, add_rec_buf, None) > > I don't know how to get rid of this. > > Any suggestions? >What about "samba-tool dns delete"? Best regards -- Thomas Zeitinger Kundenbetreuung IT-Quadrat EDV Dienstleistungs- und Handels GmbH Krongasse 8/2 A-1050 Wien Tel: +43 (1) 311 44 00 - 10 Fax: +43 (1) 311 44 00 - 90 Thomas.Zeitinger at it2.at www.it2.at FN 287345t UID ATU63123113