DNScode 1.4.1
Simplifying DNS configuration
Loading...
Searching...
No Matches
dnscode.dnscode.MX Class Reference
Inheritance diagram for dnscode.dnscode.MX:
dnscode.dnscode.Record

Public Member Functions

 __init__ (self, str name='@', int ttl=3600, int priority=10, str host='example.com')
 
- Public Member Functions inherited from dnscode.dnscode.Record
 __str__ (self)
 

Public Attributes

str rtype = 'MX'
 
 name = name
 
 ttl = ttl
 
 priority = priority
 
 host = host
 
str data = f"{self.priority} {self.host}"
 

Additional Inherited Members

- Static Public Attributes inherited from dnscode.dnscode.Record
str rclass = 'IN'
 
str rtype = 'A'
 
str name = '@'
 
str data = '0.0.0.0'
 
int ttl = 3600
 

Detailed Description

Represents an 'MX' (Mail Exchange) record.

Constructor & Destructor Documentation

◆ __init__()

dnscode.dnscode.MX.__init__ ( self,
str name = '@',
int ttl = 3600,
int priority = 10,
str host = 'example.com' )

Member Data Documentation

◆ data

str dnscode.dnscode.MX.data = f"{self.priority} {self.host}"

◆ host

dnscode.dnscode.MX.host = host

◆ name

dnscode.dnscode.MX.name = name

◆ priority

dnscode.dnscode.MX.priority = priority

◆ rtype

str dnscode.dnscode.MX.rtype = 'MX'

◆ ttl

dnscode.dnscode.MX.ttl = ttl

The documentation for this class was generated from the following file: