[Samba] How to delete an unwanted NS record
Rowland penny
rpenny at samba.org
Wed Jul 8 18:38:00 UTC 2020
On 08/07/2020 19:33, James B. Byrne wrote:
>
> Wed Jul 8 16:09:19 UTC 2020, Rowland penny wrote:
>
>> No, it is '@' for the name, not 'brockley.harte-lyne.ca'
> Previously I had tried that as well with similar results as shown below:
>
> [root at smb4-1 ~ (master)]# samba-tool dns help delete
> Usage: samba-tool dns delete <server> <zone> <name>
> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data>
>
> [root at smb4-1 ~ (master)]# samba-tool dns delete localhost
> brockley.harte-lyne.ca @ NS 192.168.216.162
> Password for [administrator at BROCKLEY.HARTE-LYNE.CA]:
> ERROR(runtime): uncaught exception - (9701,
> 'WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST')
> File "/usr/local/lib/python3.7/site-packages/samba/netcmd/__init__.py", line
> 185, in _run
> return self.run(*args, **kwargs)
> File "/usr/local/lib/python3.7/site-packages/samba/netcmd/dns.py", line 1071,
> in run
> raise e
> File "/usr/local/lib/python3.7/site-packages/samba/netcmd/dns.py", line 1067,
> in run
> del_rec_buf)
>
> Unless I am completely missing what you are trying to tell me, which is not
> unheard of.
>
> Sincerely,
>
Try it like this:
samba-tool dns delete localhost brockley.harte-lyne.ca @ A 192.168.216.162
Rowland
More information about the samba
mailing list