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

need a powershell script to add in IP addresses into the DNS zone transfer list

Posted on 2014-01-05
5
1,175 Views
Last Modified: 2014-01-06
can someone provide a script that we can run to add (2) IP addresses into the DNS server "zone transfer authorized list"

we have 300+ zones to add these IP's on.

many thanks!

S.
0
Comment
Question by:siber1
  • 4
5 Comments
 
LVL 12

Accepted Solution

by:
Chris earned 500 total points
ID: 39758889
You can easily do this using dnscmd. The following command should achieve what you're after:

dnscmd SourceServerName /ZoneResetSecondaries ZoneName /SecureList DestinationServerIPs

Where:
SourceServerName is the name of the server you're setting the zone transfer settings on.
ZoneName is the name of the zone you're setting the zone transfer settings for.
DestinationServerIPs is a space delimited list of IP address for servers which are allowed to transfer the zone from the source server.
0
 

Author Comment

by:siber1
ID: 39759026
yes, but I need to do this on 300+ zonenames, which is why I was asking for a script that can accomplish this in bulk.

thx
0
 

Author Comment

by:siber1
ID: 39759039
I think this may be a way to automate it.
import-csv records.csv | foreach  {dnscmd SourceServerName /ZoneResetSecondaries /ZoneName /SecureList 10.1.1.1 10.2.2.2 10.3.3.3 10.4.4.4}

Open in new window

0
 

Author Comment

by:siber1
ID: 39759052
when I run the script directly on the master nameserver [one zonename for testing] I get command failed RPC_s_SERVER_UNAVAILABLE 1722 0X6BA
0
 

Author Comment

by:siber1
ID: 39759077
figured it out. need to set the variable in the script to $_.ZoneName

works fine now. thx
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

791 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