?
Solved

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

Posted on 2013-12-22
12
Medium Priority
?
1,476 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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 37

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

Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

Question has a verified solution.

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

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

777 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