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
Solved

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

Posted on 2013-12-22
12
1,377 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 36

Accepted Solution

by:
Mahesh earned 183 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 182 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
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…

828 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