I've restored Samba data but the DNS records it holds is of as opposed network the system it was restored to operates on. As such, the AD can't even resolve itself properly. How may I reset all the records?

Tentatively, I've tried to add the server's IP using samba-tool dns add, but it asks for DOMAIN\root password instead of DOMAIN\administrator or administrator@DOMAIN.SECRET.COM as in the Samba Wiki example:

$ sudo samba-tool dns add localhost domain.international.com domain A
Password for [DOMAIN\root]:

I'm at my wit's end here.


You have already in place the DNS configuration so I guess in this case you won't need to use add option but update because you are updating the DNS, right? Add -U Administrator to specify which user you want to make these changes as.

First, lookup all records, then use update to change them according to the new network:

samba-tool dns query localhost domain.international @ ALL -U administrator
samba-tool dns update localhost domain.international.com domain A oldIP newIP -U administrator
  • You're correct, but it's asking for the non-existent DOMAIN/root password to do so.
    – Oxwivi
    Oct 6 '15 at 4:40
  • Okay, it seems sudo was the problem. sudo samba-tool made it ask for DOMAIN\root. Fortunately, I named the default Ubuntu account Administrator, so it asked for DOMAIN\administrator without sudo. Do you know of any command to list all records? I'll remove/update all problematic ones.
    – Oxwivi
    Oct 6 '15 at 4:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.