C# Класс 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.
Наследование: Domain
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Dump ( ) : object>>.List
Zone ( ) : System
Zone ( System.Management.ManagementObject mo ) : System

Описание методов

AgeAllRecords() публичный Метод

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.
Результат System.UInt32

ChangeZoneType() публичный Метод

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.
Результат Zone

CreateZone() публичный статический Метод

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.
Результат Zone

ForceRefresh() публичный Метод

Forces an update of the secondary from the Master DNS Server.
public ForceRefresh ( ) : void
Результат void

PauseZone() публичный Метод

Pauses the Zone.
public PauseZone ( ) : void
Результат void

ReloadZone() публичный Метод

reloads the DNS Zone from its database.
public ReloadZone ( ) : void
Результат void

ResetSecondaries() публичный Метод

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:
Результат Zone

ResumeZone() публичный Метод

Resumes the Zone
public ResumeZone ( ) : void
Результат void

Save() публичный Метод

Saves a modified Zone
public Save ( ) : void
Результат void

ToConfigurationFile() публичный Метод

public ToConfigurationFile ( ) : string
Результат string

ToString() публичный Метод

public ToString ( ) : string
Результат string

UpdateFromDS() публичный Метод

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
Результат void

WriteBackZone() публичный Метод

Saves Zone data to its zone file.
public WriteBackZone ( ) : void
Результат void