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
파일 보기 프로젝트 열기: drorgl/MSDNSWebAdmin

공개 메소드들

메소드 설명
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