Author: Eugenio Talarico - eugeniotalarico at vodafone dot it
Type: Windows Script
The BAT file creates a series of records into DNS. It uses the LISTA.TXT file as input, wherein you have to specify the name of the record and its value.
If you open the BAT file you'll see that after DNSCMD you have to also specify a server that contains the zone (SERVERNAME), the parameter /RecordADD to add the record, and the ZONE.
You can also dictate whether the record you want to add is a HOST or an ALIAS. To do so, you have to place the following between the RECORD_NAME and the value XXX.XXX.XXX.XXX or alias:
A = HOST CNAME = ALIAS so the result of the string inside the input.txt reads as: RECORD_2_ADD;A;IP_ADDRESS OR RECORD_2_ADD;CNAME;ALIAS_WHERE_POINT
Download Location - Link
Scroll down to view the script.
for /f "tokens=1-3 delims=;" %%a in (input.txt) do (dnscmd SERVERNAME/RecordAdd ZONE_WHERE_ADD_RECORD %%a %%b %%c >>insert.log)