[Samba] How to delete an unwanted NS record

James B. Byrne byrnejb at harte-lyne.ca
Wed Jul 8 18:33:10 UTC 2020



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,

-- 
***          e-Mail is NOT a SECURE channel          ***
        Do NOT transmit sensitive data via e-Mail
   Unencrypted messages have no legal claim to privacy
 Do NOT open attachments nor follow links sent by e-Mail

James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




More information about the samba mailing list