PySide6.QtNetwork.QDnsMailExchangeRecord¶
- class QDnsMailExchangeRecord¶
- The - QDnsMailExchangeRecordclass stores information about a DNS MX record. More…- Synopsis¶- Methods¶- def - __init__()
- def - exchange()
- def - name()
- def - preference()
- def - swap()
- def - timeToLive()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- When performing a lookup on a service, zero or more records will be returned. Each record is represented by a - QDnsMailExchangeRecordinstance.- The meaning of the fields is defined in RFC 1035 . - See also - __init__()¶
 - Constructs an empty mail exchange record object. - __init__(other)
- Parameters:
- other – - QDnsMailExchangeRecord
 
 - Constructs a copy of - other.- exchange()¶
- Return type:
- str 
 
 - Returns the domain name of the mail exchange for this record. - name()¶
- Return type:
- str 
 
 - Returns the name for this record. - preference()¶
- Return type:
- int 
 
 - Returns the preference for this record. - swap(other)¶
- Parameters:
- other – - QDnsMailExchangeRecord
 
 - Swaps this mail exchange record with - other. This operation is very fast and never fails.- timeToLive()¶
- Return type:
- int 
 
 - Returns the duration in seconds for which this record is valid.