Michael Leonard
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.
we have 300+ zones to add these IP's on.
many thanks!
S.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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}
ASKER
when I run the script directly on the master nameserver [one zonename for testing] I get command failed RPC_s_SERVER_UNAVAILABLE 1722 0X6BA
ASKER
figured it out. need to set the variable in the script to $_.ZoneName
works fine now. thx
works fine now. thx
ASKER
thx