QDnsServiceRecord

PyQt5.QtNetwork.QDnsServiceRecord

Description

The QDnsServiceRecord class stores information about a DNS SRV record.

When performing a lookup on a service, zero or more records will be returned. Each record is represented by a QDnsServiceRecord instance.

The meaning of the fields is defined in RFC 2782.

See also

QDnsLookup.

Methods

__init__()

Constructs an empty service record object.


__init__(QDnsServiceRecord)

Constructs a copy of other.


name() → str

TODO


port() → int

Returns the port on the target host for this service record.


priority() → int

Returns the priority for this service record.

A client must attempt to contact the target host with the lowest-numbered priority.


swap(QDnsServiceRecord)

TODO


target() → str

Returns the domain name of the target host for this service record.


timeToLive() → int

Returns the duration in seconds for which this record is valid.


weight() → int

Returns the weight for this service record.

The weight field specifies a relative weight for entries with the same priority. Entries with higher weights should be selected with a higher probability.