[Samba] How to delete a corrupt record from internal DNS
ole.traupe at tu-berlin.de
Fri Dec 18 12:44:27 UTC 2015
I accidentally created a SRV record with a false port. I then updated
the port but was afraid of any consequences. So I deleted that record
again and wanted to re-create it. But now I can't: "The record already
1) I can't see it in the RSAT DNS gui, so I can't delete it there.
2) I also can't delete it via samba-tool (although I could delete it's
counter part for the other DC; so the command is ok):
# samba-tool dns delete DC1 _msdcs.my.domain.tld
_ldap._tcp.gc._msdcs.my.domain.tld SRV "dc2.my.domain.tld 3268 0 100"
ERROR: Record does not exist
3) However, it can be found with dig:
# dig @DC1 _ldap._tcp.gc._msdcs.my.domain.tld SRV
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6_7.4 <<>> @DC1
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28612
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;_ldap._tcp.gc._msdcs.my.domain.tld. IN SRV
;; ANSWER SECTION:
_ldap._tcp.gc._msdcs.my.domain.tld. 180 IN SRV 0 100 3268 dc1.my.domain.tld.
_ldap._tcp.gc._msdcs.my.domain.tld. 180 IN SRV 0 100 3268 dc2.my.domain.tld.
;; Query time: 1 msec
;; SERVER: IP_of_1stDC#53(IP_of_1stDC)
;; WHEN: Thu Dec 17 13:28:06 2015
;; MSG SIZE rcvd: 103
So, how do I get rid of this problematic record for my DC2?
More information about the samba