CreateZone method of the MicrosoftDNS_Zone class

The CreateZone method creates a DNS zone.

Syntax


void CreateZone(
  [in]           string            ZoneName,
  [in]           uint32            ZoneType,
  [in]           boolean           DsIntegrated,
  [in, optional] string            DataFileName,
  [in, optional] string            IpAddr[],
  [in, optional] string            AdminEmailName,
  [out, ref]     MicrosoftDns_Zone &RR
);

Parameters

ZoneName [in]

String representing the name of the zone.

ZoneType [in]

Type of zone. Valid values are the following:

ValueMeaning
1

AD integrated.

2

Secondary zone.

3

Stub zone.

Windows Server 2003:  This zone type is introduced in Windows Server 2003.

4

Zone forwarder.

Windows Server 2003:  This zone type is introduced in Windows Server 2003.

 

DsIntegrated [in]

Indicates whether zone data is stored in the Active Directory or in files. If TRUE, the data is stored in the Active Directory; if FALSE, the data is stored in files.

DataFileName [in, optional]

Name of the data file associated with the zone.

IpAddr [in, optional]

IP address of the master DNS Server for the zone.

AdminEmailName [in, optional]

Email address of the administrator responsible for the zone.

RR [out, ref]

RR of type MicrosoftDns_Zone.

Return value

This method does not return a value.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows 2000 Server [desktop apps only]

Namespace

Root\MicrosoftDNS

MOF

Dnsprov.mof

See also

MicrosoftDNS_Zone
AgeAllRecords Method of the MicrosoftDNS_Zone Class
ChangeZoneType Method of the MicrosoftDNS_Zone Class
ForceRefresh Method of the MicrosoftDNS_Zone Class
GetDistinguishedName Method of the MicrosoftDNS_Zone Class
PauseZone Method of the MicrosoftDNS_Zone Class
ReloadZone Method of the MicrosoftDNS_Zone Class
ResetSecondaries Method of the MicrosoftDNS_Zone Class
ResumeZone Method of the MicrosoftDNS_Zone Class
UpdateFromDS Method of the MicrosoftDNS_Zone Class
WriteBackZone Method of the MicrosoftDNS_Zone Class

 

 

Community Additions

ADD
Show: