How do you add/remove DNS servers to 2012 server core?

Hi Experts, need to know how to add new DNS servers to server core and remove old DNS servers?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy LidbetterCommented:
Hi there,

DNS is a Server Role, Its as simple as adding or removing the role?

What exactly are you trying to achieve?
Zephyr ICTCloud ArchitectCommented:
Hi, what exactly do you mean with add new DNS servers to server core? Add new records, forwarders, or install the actual DNS server role on a core?

To remote manage a DNS server on a core you need to install the DNS Server Tools on a 2012 server that has a GUI (usually this is a management server specific for used for managing the environment) through the "Add Roles and Features Wizard".

On a Windows 8 client you could install the RSAT, Remote Server Administration Tools, to get the DNS management tools.
abhijitm00Author Commented:
Thanks for getting back. This server needs the DNS servers it currently uses to be changed to new servers. It does not have a DNS role on it
Zephyr ICTCloud ArchitectCommented:
Ok, that is something different, confusing title :)

First run this in Powershell and remember/write down the IfIndex number you see in the result:


Open in new window

When you have the IfIndex number (in our example it's number 11) use following commands in powershell:

First remove the currently configured addresses:

Set-DNSClientServerAddress -interfaceindex 11 -ResetServerAddress

Open in new window

 Now set the new DNS addresses.

Set-DNSClientServerAddress –InterfaceIndex 11 -ServerAddresses,

Open in new window

Guy LidbetterCommented:
Oh! You want to change what DNS its looking at, not make it a DNS server.

Please have a look at this link which helps explain how to do this.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.