Creating Multiple DNS Records


Hi Guys,


Now from below command you can create multiple DNS records (A and PTR ) at same time



1.       Create a CSV file as Shown below example and Save the file on C:\
2.       Run below command in PowerShell as administrator


name ip type zone dnsserver
test 10.192.10.20    A test.com FQDN of DNS Server




Import-CSV -Path "c:\DNSEntries.csv" | ForEach-Object { dnscmd.exe $_.dnsserver /RecordAdd $_.zone $_.name /createPTR $_.type $_.IP }

You can save it as well in .ps1 format and just hit.
This will create both host A and PTR records at same time.



Cheers!!

Comments

Popular posts from this blog

Windows Deployment Service ( WDS ) and Errors and Solutions

DHCP, WDS, PXE Boot and Common Issues

SCCM Questions & Answers