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. Marcin Milewski 1 Reputation point
    2022-08-05T12:20:18.517+00:00

    I want to add the third and fourth DNS server using netsh command and I am getting that the "index" is not a valid argument for this command. (Windows 2016)

    0 comments No comments

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.