Here is a little script I wrote to import the dns entries in DNS:
For /F "Tokens=1,* Delims= " %%A In (hosts.txt) Do (
Set ip=%%A
Set host=%%B
)
dnscmd dns_server_name RecordAdd Forward_zone_name %host% A %ip%
Saturday, December 29, 2007
Subscribe to:
Post Comments (Atom)
1 comment:
I tried this it only adds the last host and ip any ideas?
Post a Comment