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
Afficher le fichier Open project: drorgl/MSDNSWebAdmin

Méthodes publiques

Méthode 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

Méthode Description
Dump ( ) : object>>.List
Zone ( ) : System
Zone ( System.Management.ManagementObject mo ) : System

Method Details

AgeAllRecords() public méthode

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.
Résultat System.UInt32

ChangeZoneType() public méthode

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.
Résultat Zone

CreateZone() public static méthode

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.
Résultat Zone

ForceRefresh() public méthode

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

PauseZone() public méthode

Pauses the Zone.
public PauseZone ( ) : void
Résultat void

ReloadZone() public méthode

reloads the DNS Zone from its database.
public ReloadZone ( ) : void
Résultat void

ResetSecondaries() public méthode

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:
Résultat Zone

ResumeZone() public méthode

Resumes the Zone
public ResumeZone ( ) : void
Résultat void

Save() public méthode

Saves a modified Zone
public Save ( ) : void
Résultat void

ToConfigurationFile() public méthode

public ToConfigurationFile ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdateFromDS() public méthode

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
Résultat void

WriteBackZone() public méthode

Saves Zone data to its zone file.
public WriteBackZone ( ) : void
Résultat void