I have had an IP Address Record of the name Z37 which was 192.168.2.203. Using nslookup I find it, but samba-tool queries the name and shows 0 Records? $ nslookup Z37 Server: 192.168.2.1 Address: 192.168.2.1#53 Name: Z37.calcdom.local Address: 192.168.2.203 $ samba-tool dns query localhost calcdom.local @ ALL Name=, Records=4, Children=0 SOA: serial=119, refresh=900, retry=600, expire=86400, ns=zcontroller.calcdom.local., email=hostmaster.calcdom.local. (flags=600000f0, serial=119, ttl=3600) NS: zcontroller.calcdom.local. (flags=600000f0, serial=1, ttl=900) A: 134.147.57.144 (flags=600000f0, serial=110, ttl=900) A: 192.168.2.1 (flags=600000f0, serial=110, ttl=900) Name=_msdcs, Records=0, Children=0 Name=_sites, Records=0, Children=1 Name=_tcp, Records=0, Children=4 Name=_udp, Records=0, Children=2 Name=DomainDnsZones, Records=0, Children=2 Name=ForestDnsZones, Records=0, Children=2 Name=Y15, Records=1, Children=0 A: 192.168.2.192 (flags=f0, serial=110, ttl=1200) Name=Y16, Records=1, Children=0 A: 192.168.2.122 (flags=f0, serial=110, ttl=1200) .... Name=Z34, Records=1, Children=0 A: 192.168.2.169 (flags=f0, serial=110, ttl=1200) Name=Z35, Records=1, Children=0 A: 192.168.2.206 (flags=f0, serial=115, ttl=0) Name=Z36, Records=1, Children=0 A: 192.168.2.205 (flags=f0, serial=116, ttl=0) Name=Z37, Records=0, Children=0 < ------------------------ Name=zcontroller, Records=2, Children=0 A: 134.147.57.144 (flags=f0, serial=110, ttl=900) A: 192.168.2.1 (flags=f0, serial=110, ttl=900) Name=Ztest, Records=0, Children=0 Now in order to fix that I tried to delete that record and get this: $ samba-tool dns update localhost calcdom.local Z37 A 192.168.2.203 192.168.2.210 Password for [Administrator at CALCDOM.LOCAL]: ERROR: Record does not exist I can believe that, but when I try then to add a new record with that name: $ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.203 Password for [Administrator at CALCDOM.LOCAL]: 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 1053, in run 0, server, zone, name, add_rec_buf, None) So, no record, but I cannot add this one...? A bit strange. I did a recent update where also the automatic DNS updates got better on the other computers. I'm still trying to remove that record...What works is to add a Record with another data: $ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.210 Password for [Administrator at CALCDOM.LOCAL]: Record added successfully But I cannot update or remove the one with the 192.168.2.203: now both are shown : $ nslookup z37 Server: 192.168.2.1 Address: 192.168.2.1#53 Name: z37.calcdom.local Address: 192.168.2.203 Name: z37.calcdom.local Address: 192.168.2.210 Btw. I have no bind installed. I hope you can help, because I have no way to remove that record. Can I clear the DNS Cache maybe? How? Kind Regards, -- M. Sc. Gerhard Stein Lehrstuhl f?r Energieanlagen und Energieprozesstechnik (LEAT) Ruhr-Universit?t Bochum Universit?tsstra?e 150, IC E2/93 D-44780 Bochum Tel: +49 (0)234 / 32-26333 E-Mail: stein at leat.ruhr-uni-bochum.de
I just found this: https://wiki.samba.org/index.php/DNS -> Under troubleshoot Let me try it out first. Am 10.10.2013 15:07, schrieb Gerhard Stein:> > I have had an IP Address Record of the name Z37 which was > 192.168.2.203. Using nslookup I find it, but samba-tool queries the > name and shows 0 Records? > > $ nslookup Z37 > > Server: 192.168.2.1 > Address: 192.168.2.1#53 > > Name: Z37.calcdom.local > Address: 192.168.2.203 > > > > $ samba-tool dns query localhost calcdom.local @ ALL > Name=, Records=4, Children=0 > SOA: serial=119, refresh=900, retry=600, expire=86400, > ns=zcontroller.calcdom.local., email=hostmaster.calcdom.local. > (flags=600000f0, serial=119, ttl=3600) > NS: zcontroller.calcdom.local. (flags=600000f0, serial=1, ttl=900) > A: 134.147.57.144 (flags=600000f0, serial=110, ttl=900) > A: 192.168.2.1 (flags=600000f0, serial=110, ttl=900) > Name=_msdcs, Records=0, Children=0 > Name=_sites, Records=0, Children=1 > Name=_tcp, Records=0, Children=4 > Name=_udp, Records=0, Children=2 > Name=DomainDnsZones, Records=0, Children=2 > Name=ForestDnsZones, Records=0, Children=2 > Name=Y15, Records=1, Children=0 > A: 192.168.2.192 (flags=f0, serial=110, ttl=1200) > Name=Y16, Records=1, Children=0 > A: 192.168.2.122 (flags=f0, serial=110, ttl=1200) > > .... > > Name=Z34, Records=1, Children=0 > A: 192.168.2.169 (flags=f0, serial=110, ttl=1200) > Name=Z35, Records=1, Children=0 > A: 192.168.2.206 (flags=f0, serial=115, ttl=0) > Name=Z36, Records=1, Children=0 > A: 192.168.2.205 (flags=f0, serial=116, ttl=0) > Name=Z37, Records=0, Children=0 < ------------------------ > Name=zcontroller, Records=2, Children=0 > A: 134.147.57.144 (flags=f0, serial=110, ttl=900) > A: 192.168.2.1 (flags=f0, serial=110, ttl=900) > Name=Ztest, Records=0, Children=0 > > > Now in order to fix that I tried to delete that record and get this: > > $ samba-tool dns update localhost calcdom.local Z37 A 192.168.2.203 > 192.168.2.210 > Password for [Administrator at CALCDOM.LOCAL]: > ERROR: Record does not exist > > I can believe that, but when I try then to add a new record with that > name: > > $ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.203 > Password for [Administrator at CALCDOM.LOCAL]: > 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 1053, in run > 0, server, zone, name, add_rec_buf, None) > > So, no record, but I cannot add this one...? A bit strange. I did a > recent update where also the automatic DNS updates got better on the > other computers. > > I'm still trying to remove that record...What works is to add a Record > with another data: > > $ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.210 > Password for [Administrator at CALCDOM.LOCAL]: > Record added successfully > > But I cannot update or remove the one with the 192.168.2.203: > > now both are shown : > > $ nslookup z37 > Server: 192.168.2.1 > Address: 192.168.2.1#53 > > Name: z37.calcdom.local > Address: 192.168.2.203 > Name: z37.calcdom.local > Address: 192.168.2.210 > > > Btw. I have no bind installed. I hope you can help, because I have no > way to remove that record. Can I clear the DNS Cache maybe? How? > > Kind Regards, >