DNScode 1.4.1
Simplifying DNS configuration
|
Public Member Functions | |
__init__ (self, str name='@', int ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str host='example.com') | |
Public Member Functions inherited from dnscode.dnscode.Record | |
__str__ (self) | |
Public Attributes | |
str | rtype = 'SRV' |
str | name = f"_{service}._{protocol}.{name}" |
ttl = ttl | |
service = service | |
protocol = protocol | |
priority = priority | |
weight = weight | |
port = port | |
target = target | |
str | data = f"{self.priority} {self.weight} {self.port} {self.target}" |
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 |
Represents an 'SRV' (Service) record.
dnscode.dnscode.SRV.__init__ | ( | self, | |
str | name = '@', | ||
int | ttl = 3600, | ||
str | service = "service", | ||
str | protocol = 'proto', | ||
int | priority = 10, | ||
int | weight = 10, | ||
int | port = 0, | ||
str | host = 'example.com' ) |
str dnscode.dnscode.SRV.data = f"{self.priority} {self.weight} {self.port} {self.target}" |
dnscode.dnscode.SRV.port = port |
dnscode.dnscode.SRV.priority = priority |
dnscode.dnscode.SRV.protocol = protocol |
str dnscode.dnscode.SRV.rtype = 'SRV' |
dnscode.dnscode.SRV.service = service |
dnscode.dnscode.SRV.target = target |
dnscode.dnscode.SRV.ttl = ttl |
dnscode.dnscode.SRV.weight = weight |