[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Adding a DNS A record to Windows Server Core Machine via Powershell

Posted on 2013-12-22
12
Medium Priority
?
1,534 Views
Last Modified: 2013-12-23
Heyas,

How would I add a DNS A record to Windows Server Core Machine via Powershell. The 'A; record would need to include:

- Name
- FQDN
- IP Address

Any help much appreciated.

Thank you.
0
Comment
Question by:Zack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 5

Expert Comment

by:Kwoof
ID: 39735375
Is DNS running on your core machine?, or you want to add a DNS record to point to your core machine?...or do you need to modify your hosts file on the core machine?

Is your Core machine configured?  Corefig can help with a GUI if you need it:

http://corefig.codeplex.com/
0
 

Author Comment

by:Zack
ID: 39735390
Hi Kwoof,

DNS is running on my core machine.  I tried using the New-DnsRecord command but it doesn't work

"New-DnsRecord : The term 'New-DnsRecord' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

Thank you.
0
 
LVL 5

Expert Comment

by:Kwoof
ID: 39735394
What OS is the server core?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 5

Expert Comment

by:Recept
ID: 39735396
You could use the Remote Server Administration Tools (RSAT) on your own computer to remotely manage the DNS server.

http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/04/27/remotely-managing-your-server-core-using-rsat.aspx
0
 

Author Comment

by:Zack
ID: 39735406
The server core OS is Windows Server 2012.

Thank you.
0
 
LVL 5

Expert Comment

by:Kwoof
ID: 39735419
I had assumed you already tried RSAT?
0
 

Author Comment

by:Zack
ID: 39735420
Hi Kwoof,

I have extracted Corefig onto the Server Core how do I run it? When I type in the script file name ".\start_corefig.wsf all I get is >>

Confused I thought a GUI would load.
0
 

Author Comment

by:Zack
ID: 39735424
Hi Kwoof,

As I understand there is no RSAT feature for Windows Server 2012, could you clarify.

Thank you.
0
 
LVL 38

Accepted Solution

by:
Mahesh earned 732 total points
ID: 39735467
If you are having domain admins group membership or local administrative rights on DNS server, then from any windows server 2012 GUI version, you can add DNS server tools from roles and features and add core server in dns management console
from there you can manage DNS completely.

On core server, just run below command from command prompt to disable firewall
netsh advfirewall set allprofiles state off

You can download RSAT tools for windows 2012 server which can be run through Win 8 Machine and from there you can add dns tools and add 2012 core server there to manage it from GUI
http://www.microsoft.com/en-us/download/details.aspx?id=28972
http://blogs.technet.com/b/blainbar/archive/2013/07/23/manage-your-windows-2012-server-with-remote-server-administration-tools-rsat-from-windows-8-read-on.aspx


Mahesh
0
 
LVL 19

Assisted Solution

by:Raheman M. Abdul
Raheman M. Abdul earned 728 total points
ID: 39735945
U can use the cmdlet: Add-DnsServerResourceRecordA

Eg. Add-DnsServerResourceRecordA -ZoneName ZONENAME –Name Server2 -IPv4Address 10.10.10.2

Ref: http://technet.microsoft.com/en-us/library/jj649925.aspx
See Example 1
0
 

Expert Comment

by:redefy
ID: 39736709
U can use the cmdlet: Add-DnsServerResourceRecordA

Eg. Add-DnsServerResourceRecordA -ZoneName ZONENAME –Name Server2 -IPv4Address 10.10.10.2

^ that is exactly what you do. But first be sure to import the module.

Import-Module DNSServer

Open in new window

0
 

Author Closing Comment

by:Zack
ID: 39737246
Thank for the help.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A brief introduction to what I consider to be the best editor for PowerShell.
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question