Multiple DNS Servers into W2K19 using netsh.

Doria 1,246 Reputation points
2021-07-15T19:41:26.027+00:00

Hi everyone!

How do I add multiple DNS Servers into a Windows Server 2019 core using netsh?

Thanks.

Windows for business Windows Server User experience Other
{count} vote

Accepted answer
  1. Anonymous
    2021-07-16T02:53:46.637+00:00

    Hi,

    I did a test in my lab and found that the command netsh interface ipv4 add dnsserver name=Ethernet address=192.168.0.101 index=1 can be run successfully in my Windows Server 2019 core.

    Here is my test result for your reference:

    My systeminfo result:

    115291-image.png

    115245-image.png

    115205-image.png

    ![115281-image.png

    Here is an article for your reference:

    Manually install a Server Core installation
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    If you still cannot configure the DNS server on your server core, please help to provide related screenshots for further troubleshooting.

    Best Regards,
    Sunny


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-07-15T21:35:59.23+00:00

    You may need to delete them first
    netsh interface ip delete dns "Ethernet" [old DNS ip address]

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. Anonymous
    2021-07-15T21:41:13.073+00:00

    Another option is to use PowerShell. Use Get-NetAdapter to find the index
    https://devblogs.microsoft.com/scripting/powertip-use-powershell-to-set-primary-and-secondary-dns-server-addresses/

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  3. Anonymous
    2021-07-16T12:56:39.107+00:00

    Just checking if there's any progress or updates?

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  4. Doria 1,246 Reputation points
    2021-07-16T13:28:06.26+00:00

    Thanks all!

    I was using "netsh interface ip" and not "netsh interface ipv4" commands.

    MS should remove those old commands, I guess.

    Thanks again. :-)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.