Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

Create bulk PTR records via dnscmd.exe

$
0
0

Hi,

I need to create multiple reverse lookup zones which I can add on DNS Manager.

Once I have created the reverse lookup zones, I was hoping whether I can import PTR records into the zones. So what I have done is created a .txt file for example with the following entries in the text file: -

105 testhost01.domain.local 0.168.192.in-addr.arpa

106 testhost02.domain.local 1.168.192.in-addr.arpa

107 testhost03.domain.local 2.168.192.in-addr.arpa

From the above saved txt file, I have downloaded the below command line: -

For /f "tokens1-3" %i in (C:\test.txt) do dnscmd %LOGONSERVER% /RecordAdd %k %i PTR %j

Is the above command linecorrect? (I can confirm the .txt file is saved in that location as a test) Can someone please advise where I am going wrong?

Many thanks.


Viewing all articles
Browse latest Browse all 5877

Trending Articles



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