次の方法で共有


SetByParameters method of the PS_DnsServerPrimaryZone class

Overwrites settings of DNS server primary zone.

Syntax

uint32 SetByParameters(
  [in]  string               AllowedDcForNsRecordsAutoCreation[],
  [in]  string               DynamicUpdate,
  [in]  string               Name,
  [in]  string               Notify,
  [in]  string               NotifyServers[],
  [in]  string               SecondaryServers[],
  [in]  string               SecureSecondaries,
  [in]  string               ComputerName,
  [in]  boolean              PassThru,
  [in]  boolean              IsPluginEnabled,
  [in]  boolean              IgnorePolicies,
  [out] DnsServerPrimaryZone cmdletOutput
);

Parameters

AllowedDcForNsRecordsAutoCreation [in]

to allow name server (NS) resource record creation for specific domain controllers. Specifies the IP addresses of the domain controllers that add their names in NS resource records for the zone that is specified in ZoneName. Type a space-separated list of the IP addresses of the DNS servers, for example, 10.0.0.0 172.16.0.0 192.168.0.0

DynamicUpdate [in]

Determines whether the specified zone accepts dynamic updates.

The possible values are.

None ("None")

Secure ("Secure")

NonsecureAndSecure ("NonsecureAndSecure")

Name [in]

Specifies the name of the zone.

Notify [in]

Indicates whether the master Zone notifies secondaries of any changes in its RRs database. Set to 1 to notify secondaries. Specifies a change notification is sent only to certain secondary servers. nonotify: Specifies that no change notifications are sent to secondary servers. notify: Specifies that change notifications are sent to all secondary servers. notifylist: Specifies that change notifications are sent to only the list of servers. This command must be followed by an IP address or addresses that the master server uses. NotifyIPAddresses: Specifies the IP address(es) of the secondary server(s) to which change notifications are sent. This list is used only with the /notifylist parameter. {NoNotify|Notify|NotifyServers}

The possible values are.

NoNotify ("NoNotify")

Notify ("Notify")

NotifyServers ("NotifyServers")

NotifyServers [in]

Specifies Array of strings enumerating IP addresses of DNS servers to be notified of changes in this zone.

SecondaryServers [in]

Specifies array of IP addresses enumerating IP addresses of DNS servers allowed to receive this zone through zone replication

SecureSecondaries [in]

Indicates whether zone transfer is allowed to designated secondaries only. Designated secondaries are DNS Servers whose IP addresses are listed in SecondariesIPAddressesArray.

The possible values are.

NoTransfer ("NoTransfer")

TransferAnyServer ("TransferAnyServer")

TransferToZoneNameServer ("TransferToZoneNameServer")

TransferToSecureServers ("TransferToSecureServers")

ComputerName [in]

Specifies the remote computer on which to execute the command

PassThru [in]

True to return the object that was modified by the method. By default, this method does not generate any output.

IsPluginEnabled [in]

Marks the zone as a plugin-enabled zone.

Windows Server 2012: Not supported.

IgnorePolicies [in]

Whether to ignore the policies of this zone.

Windows Server 2012 R2 and Windows Server 2012: Not supported.

cmdletOutput [out]

Receives an embedded instance of the DnsServerPrimaryZone class.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPSProvider.mof
DLL
DnsServerPSProvider.dll

See also

PS_DnsServerPrimaryZone