13.2.1 ProblemYou want to create a reverse lookup zone. A reverse lookup zone maps IP addresses to names. 13.2.2 Solution13.2.2.1 Using a graphical user interface
13.2.2.2 Using a command-line interfaceThe following command creates an AD-integrated reverse zone: > dnscmd <DNSServerName> /zoneadd <ZoneName> /DsPrimary 13.2.2.3 Using VBScript' This code creates an AD-integrated reverse zone. ' ------ SCRIPT CONFIGURATION ------ strServer = "<DNSServerName>" ' e.g. dc1.rallencorp.com strNewZone = "<ZoneName>" ' e.g. 8.10.192.in-addr.arpa. ' ------ END CONFIGURATION --------- set objDNS = GetObject("winMgmts:\\" & strServer & "\root\MicrosoftDNS") set objDNSZone = objDNS.Get("MicrosoftDNS_Zone") strNull = objDNSZone.CreateZone(strNewZone, 0 , True) WScript.Echo "Created zone " & strNewZone 13.2.3 DiscussionCreating a reverse zone is very similar to creating a forward zone. See Recipe 13.1 for more information. 13.2.4 See AlsoMS KB 323445 (HOW TO: Create a New Zone on a DNS Server in Windows Server 2003) and MSDN: CreateZone Method of the MicrosoftDNS_Zone Class |