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.
On Thu, 17 Jan 2019 16:00:45 +0100 basti via samba <samba at lists.samba.org> wrote:> Hello, > I have destroy my DNS Setup. So I have recover my dc1 from Backup. > Now DNS is Inconsistent.Rule 1, if you have another running DC, do not recover a DC from a backup.> > 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 >Your best plan now would be to upgrade to the internal dns server with samba_upgradedns and then upgrade again to Bind9. This should reset your dns. Of course, it goes without saying, test this first on a clone. Rowland
On 17.01.19 16:22, Rowland Penny via samba wrote:> Rule 1, if you have another running DC, do not recover a DC from a > backup.I see. I have recover the backup a second time in a test env without network. Now it look like OK. my plan: 1. shutdown dc2 2. start dc1 with network 3. and now ??? can I already start dc2? Or should I start it without network and delete all DNS entries? I think when I Update/Add or delete a DNS entry on dc1 before I start dc2 the soa serial should be increase What you opinion Rowland?
Hai Basti, Have you tried to manual replicate https://wiki.samba.org/index.php/Manually_Replicating_Directory_Partitions Im not sure if the dns records are replicated this way also but worth a try. It cant get worser imo. Use the full-sync here. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > basti via samba > Verzonden: donderdag 17 januari 2019 16:33 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Inconsistent DNS after crash > > On 17.01.19 16:22, Rowland Penny via samba wrote: > > > Rule 1, if you have another running DC, do not recover a DC from a > > backup. > > I see. I have recover the backup a second time in a test env without > network. Now it look like OK. > > my plan: > > 1. shutdown dc2 > 2. start dc1 with network > > 3. and now ??? can I already start dc2? > > Or should I start it without network and delete all DNS entries? > I think when I Update/Add or delete a DNS entry on dc1 before I start > dc2 the soa serial should be increase > > What you opinion Rowland? > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >