Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

A and PTR records update under zone's folder..

$
0
0

Hi Friends

I have below power shell script which is working fine if I have single zone But I have domain folder in single zone.

I am using below script to add A records and PTR records in zone but This script is not updating A and PTR records on domain folder under the Zone..

$CSVFile = Import-Csv "D:\DNS update script\DNSentries.csv"
$CSVFile | foreach {dnscmd $_.dnsserver /RecordAdd $_.Zone $_.name /CreatePTR $_.type $_.IP}

It giving me below error:

Command failed: DNS_ERROR_ZONE_DOES_NOT_EXIST 9601 0x2581


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>