QDnsMailExchangeRecord露

The QDnsMailExchangeRecord class stores information about a DNS MX record. More鈥�

Inheritance diagram of PySide2.QtNetwork.QDnsMailExchangeRecord

Synopsis露

Functions露

Detailed Description露

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

class PySide2.QtNetwork.QDnsMailExchangeRecord露

PySide2.QtNetwork.QDnsMailExchangeRecord(other)

param other:

PySide2.QtNetwork.QDnsMailExchangeRecord

Constructs an empty mail exchange record object.

Constructs a copy of other .

PySide2.QtNetwork.QDnsMailExchangeRecord.exchange()露
Return type:

str

Returns the domain name of the mail exchange for this record.

PySide2.QtNetwork.QDnsMailExchangeRecord.name()露
Return type:

str

Returns the name for this record.

PySide2.QtNetwork.QDnsMailExchangeRecord.preference()露
Return type:

quint16

Returns the preference for this record.

PySide2.QtNetwork.QDnsMailExchangeRecord.swap(other)露
Parameters:

other 鈥� PySide2.QtNetwork.QDnsMailExchangeRecord

Swaps this mail exchange record with other . This function is very fast and never fails.

PySide2.QtNetwork.QDnsMailExchangeRecord.timeToLive()露
Return type:

int

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