Gerhard Stein
2013-10-14 04:00:02 UTC
I just found this:
https://wiki.samba.org/index.php/DNS -> Under troubleshoot
Let me try it out first.
https://wiki.samba.org/index.php/DNS -> Under troubleshoot
Let me try it out first.
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
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
$ samba-tool dns update localhost calcdom.local Z37 A 192.168.2.203
192.168.2.210
ERROR: Record does not exist
I can believe that, but when I try then to add a new record with that
$ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.203
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
$ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.210
Record added successfully
$ 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,
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
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
$ samba-tool dns update localhost calcdom.local Z37 A 192.168.2.203
192.168.2.210
ERROR: Record does not exist
I can believe that, but when I try then to add a new record with that
$ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.203
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
$ samba-tool dns add localhost calcdom.local Z37 A 192.168.2.210
Record added successfully
$ 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,
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba