Link to home
Start Free TrialLog in
Avatar of Michael Leonard
Michael LeonardFlag for United States of America

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of Chris
Chris
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Leonard

ASKER

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
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

when I run the script directly on the master nameserver [one zonename for testing] I get command failed RPC_s_SERVER_UNAVAILABLE 1722 0X6BA
figured it out. need to set the variable in the script to $_.ZoneName

works fine now. thx