AddByRt method of the PS_DnsServerResourceRecord class

Adds a Route Through (RT) resource record type in the specified zone.


uint32 AddByRt(
  [in]  string                  IntermediateHost,
  [in]  string                  ZoneName,
  [in]  uint16                  Preference,
  [in]  datetime                TimeToLive,
  [in]  boolean                 AllowUpdateAny,
  [in]  string                  Name,
  [in]  string                  ComputerName,
  [in]  boolean                 AgeRecord,
  [in]  boolean                 RT,
  [in]  boolean                 PassThru,
  [in]  string                  ZoneScope,
  [out] DnsServerResourceRecord cmdletOutput


IntermediateHost [in]

The FQDN of a host that routes packets to a destination host.

ZoneName [in]

Specifies the name of the zone.

Preference [in]

Preference given to this RR among others at the same owner. Lower values are preferred.

TimeToLive [in]

Time To Live in seconds

AllowUpdateAny [in]

Allow any authenticated user to update DNS record with same owner name.

Name [in]

Specifies the name of a DNS server resource record object.

ComputerName [in]

Specifies a DNS server. If you do not specify this parameter, the command runs on the local system. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

AgeRecord [in]

Indicates that the DNS server uses a time stamp for the resource record that this method adds. A DNS server can scavenge resource records that have become stale based on a time stamp.

RT [in]

If specified, creates an RT DNS Server resource record.

PassThru [in]

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

ZoneScope [in]

Name of the zone scope.

Windows Server 2012:  Not supported.

cmdletOutput [out]

Receives an embedded instance of the DnsServerResourceRecord class.


Minimum supported client

None supported

Minimum supported server

Windows Server 2012







See also