[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 327
  • Last Modified:

insert @ DNS

please I need a script for adding a list of @ name -> @ IP in the DNS instead of manually insert
thx
0
DRRAM
Asked:
DRRAM
  • 3
  • 2
1 Solution
 
SandeshdubeyCommented:
Command to create Bulk A record (host record)
for /f "tokens=1-3 delims=;" %a in (list.txt) do dnscmd Server Name /RecordAdd %b %a A %c

Command to create Bulk PTR record
for /f "tokens=1-3 delims=;" %a in (list.txt) do for /f "tokens=1-4 delims=." %e in ("%c") do dnscmd Server Name /recordadd %g.%f.%e.in-addr.arpa. %h PTR %a.%b

Refer this link for the same:http://blog.scottlowe.org/2006/06/30/bulk-adding-entries-in-dns/



0
 
DRRAMAuthor Commented:
Sandeshdubey

Command failedĀ :  DNS_ERROR_ZONE_DOES_NOT_EXIST     9601    0x258
0
 
DRRAMAuthor Commented:
,,,,?????
0
 
SandeshdubeyCommented:
Refer this link detail info is given about the same what you are trying to achive.

http://www.experts-exchange.com/Networking/Windows_Networking/Q_21917743.html
0
 
DRRAMAuthor Commented:
thx
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now