none
Register specific network interface in DNS with PowerShell. RRS feed

  • Question

  • Hi all.

    I want to register ONLY ONE network interface of a 2-interface Win2012R2 server in our DMZ using PowerShell.

    Register-DnsClient does only apply to all interfaces. I can't specify which interface to register.

    Anyone knows the trick here?

    Thanks a lot!


    Monday, October 16, 2017 3:10 PM

Answers

  • You can configure the unwanted interface not to register the connections address in dns

    On the Unwanted NIC TCP/IP Properties -> Advanced -> DNS - > Uncheck "Register this connections Address in DNS" 

    link below

    https://support.microsoft.com/en-gb/help/2023004/steps-to-avoid-registering-unwanted-nic-s-in-dns-on-a-mulithomed-domai

    • Marked as answer by Skype-Schlund Tuesday, October 17, 2017 10:12 AM
    Monday, October 16, 2017 3:29 PM
  • Hi Skype-Schlund,

    >>Register specific network interface in DNS with PowerShell

    You could follow the commands below:

    Get-NetAdapter Ethernet  | Set-DnsClient -RegisterThisConnectionsAddress $true
    Get-NetAdapter Ethernet2  | Set-DnsClient -RegisterThisConnectionsAddress $false 

    For your reference:

    How to remove NIC DNS registration with Powershell

    https://community.spiceworks.com/how_to/138214-how-to-remove-nic-dns-registration-with-powershell

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by Skype-Schlund Tuesday, October 17, 2017 10:12 AM
    Tuesday, October 17, 2017 8:15 AM

All replies

  • You can configure the unwanted interface not to register the connections address in dns

    On the Unwanted NIC TCP/IP Properties -> Advanced -> DNS - > Uncheck "Register this connections Address in DNS" 

    link below

    https://support.microsoft.com/en-gb/help/2023004/steps-to-avoid-registering-unwanted-nic-s-in-dns-on-a-mulithomed-domai

    • Marked as answer by Skype-Schlund Tuesday, October 17, 2017 10:12 AM
    Monday, October 16, 2017 3:29 PM
  • Hi Skype-Schlund,

    >>Register specific network interface in DNS with PowerShell

    You could follow the commands below:

    Get-NetAdapter Ethernet  | Set-DnsClient -RegisterThisConnectionsAddress $true
    Get-NetAdapter Ethernet2  | Set-DnsClient -RegisterThisConnectionsAddress $false 

    For your reference:

    How to remove NIC DNS registration with Powershell

    https://community.spiceworks.com/how_to/138214-how-to-remove-nic-dns-registration-with-powershell

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Marked as answer by Skype-Schlund Tuesday, October 17, 2017 10:12 AM
    Tuesday, October 17, 2017 8:15 AM