Q. How can I disable DNS registration for hosts from the command line?

A. By default, hosts will try and register their host names in the zone that matches the default suffix for the network adapter or computer configuration. You can disable this through the registry by setting HKLM\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\\\{<interface>\\}\RegistrationEnabled to 0 instead of the default value of 1. You can also use netsh, but you'll have to reconfigure the DNS server settings as well:

netsh interface ipv4 set dnsserver source=static address=192.168.1.10 register=none

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish