C# Class DNSManagement.Zone

The MicrosoftDNS_Zone class describes a DNS Zone. Every instance of the MicrosoftDNS_Zone class must be assigned to exactly one DNS Server. Zones may be associated with multiple instances of MicrosoftDNS_Domain or MicrosoftDNS_ResourceRecord classes.
Inheritance: Domain
ファイルを表示 Open project: drorgl/MSDNSWebAdmin

Public Methods

Method Description
AgeAllRecords ( string nodeName, bool applyToSubtree ) : UInt32

enables aging for some or all non-NS and non-SOA records in a zone.

ChangeZoneType ( ZoneTypeCreate zoneType, string dataFileName, string ipAddr, string adminEmailName ) : Zone

changes the type of a zone.

CreateZone ( Server server, string zoneName, ZoneTypeCreate zoneType, bool dsIntegrated, string dataFileName, string ipAddr, string adminEmail ) : Zone

creates a DNS zone.

ForceRefresh ( ) : void

Forces an update of the secondary from the Master DNS Server.

PauseZone ( ) : void

Pauses the Zone.

ReloadZone ( ) : void

reloads the DNS Zone from its database.

ResetSecondaries ( string secondaryServers, SecondarySecurityEnum secureSecondaries, string notifyServers, NotifyLevelEnum notify ) : Zone

resets the IP addresses for secondary DNS Servers in the zone.

ResumeZone ( ) : void

Resumes the Zone

Save ( ) : void

Saves a modified Zone

ToConfigurationFile ( ) : string
ToString ( ) : string
UpdateFromDS ( ) : void

Forces an update of the Zone from the Directory Service (DS). For this method to be valid, the ZoneType must be 0—the Zone must indeed be stored in the DS.

WriteBackZone ( ) : void

Saves Zone data to its zone file.

Private Methods

Method Description
Dump ( ) : object>>.List
Zone ( ) : System
Zone ( System.Management.ManagementObject mo ) : System

Method Details

AgeAllRecords() public method

enables aging for some or all non-NS and non-SOA records in a zone.
public AgeAllRecords ( string nodeName, bool applyToSubtree ) : UInt32
nodeName string Optional - Name of the node to age.
applyToSubtree bool Optional - Specifies whether aging should apply to all records /// in the subtree. Set to TRUE to apply aging to all records in the subtree, /// beginning with NodeName.
return System.UInt32

ChangeZoneType() public method

changes the type of a zone.
public ChangeZoneType ( ZoneTypeCreate zoneType, string dataFileName, string ipAddr, string adminEmailName ) : Zone
zoneType ZoneTypeCreate Type of zone
dataFileName string Optional - Name of the data file associated with the zone.
ipAddr string Optional - IP address of the mater DNS Server for the zone.
adminEmailName string Optional - Email address of the administrator responsible for the zone.
return Zone

CreateZone() public static method

creates a DNS zone.
public static CreateZone ( Server server, string zoneName, ZoneTypeCreate zoneType, bool dsIntegrated, string dataFileName, string ipAddr, string adminEmail ) : Zone
server Server a Server instance
zoneName string String representing the name of the zone.
zoneType ZoneTypeCreate Type of zone.
dsIntegrated bool 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 string Optional - Name of the data file associated with the zone.
ipAddr string Optional - IP address of the master DNS Server for the zone.
adminEmail string Optional - Email address of the administrator responsible for the zone.
return Zone

ForceRefresh() public method

Forces an update of the secondary from the Master DNS Server.
public ForceRefresh ( ) : void
return void

PauseZone() public method

Pauses the Zone.
public PauseZone ( ) : void
return void

ReloadZone() public method

reloads the DNS Zone from its database.
public ReloadZone ( ) : void
return void

ResetSecondaries() public method

resets the IP addresses for secondary DNS Servers in the zone.
public ResetSecondaries ( string secondaryServers, SecondarySecurityEnum secureSecondaries, string notifyServers, NotifyLevelEnum notify ) : Zone
secondaryServers string Array of IP addresses for secondary DNS Servers.
secureSecondaries SecondarySecurityEnum Specifies the security to be applied
notifyServers string IP address of DNS Servers to be notified when the zone changes.
notify NotifyLevelEnum Notification setting and must be one of the following:
return Zone

ResumeZone() public method

Resumes the Zone
public ResumeZone ( ) : void
return void

Save() public method

Saves a modified Zone
public Save ( ) : void
return void

ToConfigurationFile() public method

public ToConfigurationFile ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

UpdateFromDS() public method

Forces an update of the Zone from the Directory Service (DS). For this method to be valid, the ZoneType must be 0—the Zone must indeed be stored in the DS.
public UpdateFromDS ( ) : void
return void

WriteBackZone() public method

Saves Zone data to its zone file.
public WriteBackZone ( ) : void
return void