[PATCH] An option in 'net ads dns' command to remove a DNS hostname

Shyam Rathi shyam.rathi at nutanix.com
Tue Mar 8 02:12:27 UTC 2016

I did not find a way to remove a DNS hostname from a server using ‘net ads dns’ command. It has only two options, ‘register’ and ‘gethostbyname’. I’ve added a third option ‘unregister’ to remove a hostname as well, which can be used to revert the DNS entries added with ‘register’ option.

nutanix at NTNX-10-4-136-71-A-NVM:~$ sudo net ads dns
Invalid command: net ads dns
net ads dns register        Add host dns entry to AD
net ads dns unregister      Remove host dns entry from AD
net ads dns gethostbyname   Look up host

Attached the patch on top of latest master:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-utils-net-Add-new-option-unregister-in-net-ads-dn.patch
Type: application/octet-stream
Size: 6937 bytes
Desc: 0001-s3-utils-net-Add-new-option-unregister-in-net-ads-dn.patch
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160308/f138317e/0001-s3-utils-net-Add-new-option-unregister-in-net-ads-dn.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160308/f138317e/ATT00001.txt>

More information about the samba-technical mailing list