QDnsMailExchangeRecord Class

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

Header: #include <QDnsMailExchangeRecord>
qmake: QT += network

Public Functions

QDnsMailExchangeRecord()
QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)
~QDnsMailExchangeRecord()
QString name() const
quint16 preference() const
quint32 timeToLive() const

Detailed 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.

Member Function Documentation

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

Constructs an empty mail exchange record object.

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

Constructs a copy of other.

QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

Destroys a mail exchange record.

QString QDnsMailExchangeRecord::name() const

Returns the name for this record.

quint16 QDnsMailExchangeRecord::preference() const

Returns the preference for this record.

quint32 QDnsMailExchangeRecord::timeToLive() const

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