PySide6.QtNetwork.QDnsDomainNameRecord¶
- class QDnsDomainNameRecord¶
- The - QDnsDomainNameRecordclass stores information about a domain name record.- Details- When performing a name server lookup, zero or more records will be returned. Each record is represented by a - QDnsDomainNameRecordinstance.- See also - Synopsis¶- Methods¶- def - __init__()
- def - name()
- def - swap()
- def - timeToLive()
- def - value()
 - 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 - __init__()¶
 - Constructs an empty domain name record object. - __init__(other)
- Parameters:
- other – - QDnsDomainNameRecord
 
 - Constructs a copy of - other.- name()¶
- Return type:
- str 
 
 - Returns the name for this record. - swap(other)¶
- Parameters:
- other – - QDnsDomainNameRecord
 
 - Swaps this domain-name record instance 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. - value()¶
- Return type:
- str 
 
 - Returns the value for this domain name record.