QDnsMailExchangeRecord

PyQt5.QtNetwork.QDnsMailExchangeRecord

Description

The QDnsMailExchangeRecord class stores information about a DNS MX record.

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

The meaning of the fields is defined in RFC 1035.

See also

QDnsLookup.

Methods

__init__()

Constructs an empty mail exchange record object.


__init__(QDnsMailExchangeRecord)

Constructs a copy of other.


exchange() → str

TODO


name() → str

Returns the name for this record.


preference() → int

Returns the preference for this record.


swap(QDnsMailExchangeRecord)

TODO


timeToLive() → int

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