[Samba] Inconsistent DNS after crash

basti mailinglist at unix-solution.de
Thu Jan 17 15:00:45 UTC 2019


Hello,
I have destroy my DNS Setup. So I have recover my dc1 from Backup.
Now DNS is Inconsistent.

samba-tool dns add 192.168.30.2 example.com mail-001 A 192.168.30.14 -U
administrator

ERROR(runtime): uncaught exception - (9711,
'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')

samba-tool dns delete 192.168.30.2 example.com mail-001 A 192.168.30.14
-U administrator
ERROR: Record does not exist

RSAT does not show the entry.

dig mail-001.example.com @dc1.example.com
;; ANSWER SECTION:
mail-001.example.com. 3600 IN	A	192.168.30.14
;; AUTHORITY SECTION:
example.com.	3600	IN	NS	dc1.example.com.
example.com.	3600	IN	NS	dc2.example.com.

;; ADDITIONAL SECTION:
dc2.example.com.	3600	IN	A	192.168.30.6
dc1.example.com.	3600	IN	A	192.168.30.2

;; Query time: 1 msec
;; SERVER: 192.168.30.2#53(192.168.30.2)
;; WHEN: Thu Jan 17 15:56:26 CET 2019
;; MSG SIZE  rcvd: 142


samba-tool dns query 192.168.30.2 example.com @ ALL -U administrator

Name=mail-001, Records=0, Children=0

has no A Record.

Where does samba safe this entries?

May idea is to stop 2'nd dc and restore dc1 from backup again.
Or just restore the file with the dns.

Any other ideas or fixes?

samba-tool dbcheck --cross-ncs --fix --yes
has no errors.

Best regards.



More information about the samba mailing list