Add / remove reverse lookup zones
Top  Previous  Next


Primary reverse lookup zone

[Settings_Begin]
BatchSettings.Delimiter=;
BatchSettings.MarkerCol=5
//BatchSettings.Debug=Yes
SET ZoneSuffix=.192.in-addr.arpa
[Settings_End]

[Machines_Begin]
\\EDU8      NT PDC    
[Machines_End]

[Batch_Begin]
Data.Loop   
 DOS dnscmd %servername% /ZoneAdd %col1%%ZoneSuffix% /primary   
Data.Endloop   
[Batch_End]

[Undo_Batch_Begin]
Data.Loop   
 DOS dnscmd %servername% /ZoneDelete %col1%%ZoneSuffix% /f   
Data.Endloop   
[Undo_Batch_End]

[Data_Begin]
2.168;;;;
3.168;;;;
4.168;;;;
[Data_End]


Secondary reverse lookup zone

Same as above but add

SET MasterIPAddress=192.168.1.20 // Primary DNS Server IP

And replace the dnscmd line with

DOS dnscmd %servername% /ZoneAdd %col1%%ZoneSuffix% /secondary %MasterIPAddress%