Freigeben über


DnsServerResourceRecordSrv class

Represents a service (SRV) resource record on a DNS server.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[ClassVersion("1.0.0"), dynamic, provider("DnsServerPSProvider"), AMENDMENT]
class DnsServerResourceRecordSrv : DnsServerResourceRecordData
{
  uint16 Priority;
  uint16 Weight;
  uint16 Port;
  string DomainName;
};

Members

The DnsServerResourceRecordSrv class has these types of members:

Properties

The DnsServerResourceRecordSrv class has these properties.

DomainName

Data type: string

Access type: Read/write

The container name of the service that is specified by the SRV resource record.

Port

Data type: uint16

Access type: Read/write

The port number for the host server that is specified by the SRV resource record.

Priority

Data type: uint16

Access type: Read/write

Indicates the priority of the host server that is specified by the SRV resource record.

Weight

Data type: uint16

Access type: Read/write

Indicates the load balancing weight for the SRV resource record.

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

DnsServerResourceRecordData

DnsServerPSProvider Provider