diff --git a/docs/html/README_8md.html b/docs/html/README_8md.html index 8e5aaa3..d3065ff 100644 --- a/docs/html/README_8md.html +++ b/docs/html/README_8md.html @@ -29,7 +29,7 @@
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str ttl=3600, str target='0.0.0.0') | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
data = data | |
str | rtype = 'A' |
name = name | |
ttl = ttl | |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.A.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | target = '0.0.0.0' ) | -
main.A.data = data | -
main.A.name = name | -
str main.A.rtype = 'A' | -
main.A.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str ttl=3600, str target='0.0.0.0') | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
data = data | |
str | rtype = 'AAAA' |
name = name | |
ttl = ttl | |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.AAAA.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | target = '0.0.0.0' ) | -
main.AAAA.data = data | -
main.AAAA.name = name | -
str main.AAAA.rtype = 'AAAA' | -
main.AAAA.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
This is the complete list of members for main.CNAME, including all inherited members.
-__init__(self, str name='@', str ttl=3600, str target='0.0.0.0') | main.CNAME | |
data | main.CNAME | |
name | main.CNAME | |
rtype | main.CNAME | |
ttl | main.CNAME |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str ttl=3600, str target='0.0.0.0') | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
str | rtype = 'CNAME' |
name = name | |
ttl = ttl | |
data = target | |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.CNAME.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | target = '0.0.0.0' ) | -
main.CNAME.data = target | -
main.CNAME.name = name | -
str main.CNAME.rtype = 'CNAME' | -
main.CNAME.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
This is the complete list of members for main.InvaliadDataException, including all inherited members.
-__init__(self, message) | main.InvaliadDataException | |
message | main.InvaliadDataException |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, message) | |
-Public Attributes | |
message = message | |
Exception raied when invaliad data is passed to a record
main.InvaliadDataException.__init__ | -( | -self, | -|
- | - | message ) | -
main.InvaliadDataException.message = message | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str ttl=3600, int priority='10', str host='example.com') | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
str | rtype = 'MX' |
name = name | |
ttl = ttl | |
priority = priority | |
str | data = "{ttl} {priority}" |
host = host | |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.MX.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | int | priority = '10', | -
- | - | str | host = 'example.com' ) | -
str main.MX.data = "{ttl} {priority}" | -
main.MX.host = host | -
main.MX.name = name | -
main.MX.priority = priority | -
str main.MX.rtype = 'MX' | -
main.MX.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str ttl=3600, str target='example.com') | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
str | rtype = 'MX' |
name = name | |
ttl = ttl | |
host = host | |
data = target | |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.NS.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | target = 'example.com' ) | -
main.NS.data = target | -
main.NS.host = host | -
main.NS.name = name | -
str main.NS.rtype = 'MX' | -
main.NS.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str ttl=3600, str host='0.0.0.0') | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
str | rtype = 'PTR' |
name = name | |
ttl = ttl | |
data = host | |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.PTR.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | host = '0.0.0.0' ) | -
main.PTR.data = host | -
main.PTR.name = name | -
str main.PTR.rtype = 'PTR' | -
main.PTR.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
This is the complete list of members for main.Record, including all inherited members.
-__int__(self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | main.Record | |
__str__(self) | main.Record | |
data | main.Record | static |
name | main.Record | static |
rclass | main.Record | static |
rtype | main.Record | static |
ttl | main.Record | static |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Static Public Attributes | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.Record.__int__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | rtype = 'A', | -
- | - | str | data = '0.0.0.0' ) | -
Reimplemented in main.SRV.
- -main.Record.__str__ | -( | -self | ) | -- |
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
This is the complete list of members for main.SOA, including all inherited members.
-__init__(self, str name='@', str mname='ns1.example.com', str rname='admin.example.com', int serial=int(time.time()), int refresh=86400, int retry=7200, int expire=15552000, int ttl=21700) | main.SOA | |
data | main.SOA | |
expire | main.SOA | |
mname | main.SOA | |
name | main.SOA | |
refresh | main.SOA | |
retry | main.SOA | |
rname | main.SOA | |
rtype | main.SOA | |
serial | main.SOA | |
ttl | main.SOA |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__init__ (self, str name='@', str mname='ns1.example.com', str rname='admin.example.com', int serial=int(time.time()), int refresh=86400, int retry=7200, int expire=15552000, int ttl=21700) | |
Public Member Functions inherited from main.Record | |
__int__ (self, str name='@', str ttl=3600, str rtype='A', str data='0.0.0.0') | |
__str__ (self) | |
-Public Attributes | |
str | rtype = "SOA" |
name = name | |
mname = mname | |
rname = rname | |
serial = serial | |
refresh = refresh | |
retry = retry | |
expire = expire | |
ttl = ttl | |
str | data = "{name} {ttl} IN SOA {mname} {rname} {serial} {refresh} {retry} {expire} {ttl}" |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.SOA.__init__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | mname = 'ns1.example.com', | -
- | - | str | rname = 'admin.example.com', | -
- | - | int | serial = int(time.time()), | -
- | - | int | refresh = 86400, | -
- | - | int | retry = 7200, | -
- | - | int | expire = 15552000, | -
- | - | int | ttl = 21700 ) | -
str main.SOA.data = "{name} {ttl} IN SOA {mname} {rname} {serial} {refresh} {retry} {expire} {ttl}" | -
main.SOA.expire = expire | -
main.SOA.mname = mname | -
main.SOA.name = name | -
main.SOA.refresh = refresh | -
main.SOA.retry = retry | -
main.SOA.rname = rname | -
str main.SOA.rtype = "SOA" | -
main.SOA.serial = serial | -
main.SOA.ttl = ttl | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
This is the complete list of members for main.SRV, including all inherited members.
-__int__(self, str name='@', str ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str target='example.com') | main.SRV | |
data | main.SRV | |
name | main.SRV | |
port | main.SRV | |
priority | main.SRV | |
protocol | main.SRV | |
rtype | main.SRV | |
service | main.SRV | |
target | main.SRV | |
ttl | main.SRV | |
weight | main.SRV |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__int__ (self, str name='@', str ttl=3600, str service="service", str protocol='proto', int priority=10, int weight=10, int port=0, str target='example.com') | |
Public Member Functions inherited from main.Record | |
__str__ (self) | |
-Public Attributes | |
str | rtype = 'PTR' |
str | name = '_{service}._{protocol}.name' |
ttl = ttl | |
service = service | |
protocol = protocol | |
priority = priority | |
weight = weight | |
port = port | |
target = target | |
str | data = "{priority} {weight} {port} {target}" |
-Additional Inherited Members | |
Static Public Attributes inherited from main.Record | |
str | rclass = 'IN' |
str | rtype = 'A' |
str | name = '@' |
str | data = '0.0.0.0' |
int | ttl = 6400 |
main.SRV.__int__ | -( | -self, | -|
- | - | str | name = '@', | -
- | - | str | ttl = 3600, | -
- | - | str | service = "service", | -
- | - | str | protocol = 'proto', | -
- | - | int | priority = 10, | -
- | - | int | weight = 10, | -
- | - | int | port = 0, | -
- | - | str | target = 'example.com' ) | -
Reimplemented from main.Record.
- -main.SRV.port = port | -
main.SRV.priority = priority | -
main.SRV.protocol = protocol | -
str main.SRV.rtype = 'PTR' | -
main.SRV.service = service | -
main.SRV.target = target | -
main.SRV.ttl = ttl | -
main.SRV.weight = weight | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
This is the complete list of members for main.Zone, including all inherited members.
-__str__(self) | main.Zone | |
add(self, Record record) | main.Zone | |
new_A(self, str name='@', int ttl=3600, str data='0.0.0.0') | main.Zone | |
new_AAAA(self, str name='@', int ttl=3600, str data='0.0.0.0') | main.Zone | |
new_CNAME(self, str name='@', int ttl=3600, str data='0.0.0.0') | main.Zone | |
new_MX(self, str name='@', int ttl=3600, int priority=10, str host='example.com') | main.Zone | |
new_NS(self, str name='@', int ttl=3600, str target='example.com') | main.Zone | |
new_PTR(self, str name='@', int ttl=3600, str host='example.com') | main.Zone | |
new_record(self, str name='@', int ttl=3600, str rtype='A', str data='0.0.0.0') | main.Zone | |
new_soa(self, str mname='ns1.example.com', str rname='admin.example.com', int serial=int(time.time()), int refresh=86400, int retry=7200, int expire=15552000, int ttl=21700) | main.Zone | |
new_SRV(self, str name='@', int ttl=3600, str service='service', str protocol='proto', int priority=10, int weight=10, str target='example.com') | main.Zone | |
records | main.Zone | static |
save_file(self, str filepath) | main.Zone |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Public Member Functions | |
__str__ (self) | |
new_A (self, str name='@', int ttl=3600, str data='0.0.0.0') | |
new_AAAA (self, str name='@', int ttl=3600, str data='0.0.0.0') | |
new_CNAME (self, str name='@', int ttl=3600, str data='0.0.0.0') | |
new_MX (self, str name='@', int ttl=3600, int priority=10, str host='example.com') | |
new_NS (self, str name='@', int ttl=3600, str target='example.com') | |
new_PTR (self, str name='@', int ttl=3600, str host='example.com') | |
new_soa (self, str mname='ns1.example.com', str rname='admin.example.com', int serial=int(time.time()), int refresh=86400, int retry=7200, int expire=15552000, int ttl=21700) | |
new_SRV (self, str name='@', int ttl=3600, str service='service', str protocol='proto', int priority=10, int weight=10, str target='example.com') | |
new_record (self, str name='@', int ttl=3600, str rtype='A', str data='0.0.0.0') | |
add (self, Record record) | |
save_file (self, str filepath) | |
-Static Public Attributes | |
list | records = field(default_factory=list) |
main.Zone.__str__ | -( | -self | ) | -- |
main.Zone.add | -( | -self, | -|
- | - | Record | record ) | -
main.Zone.new_A | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | data = '0.0.0.0' ) | -
main.Zone.new_AAAA | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | data = '0.0.0.0' ) | -
main.Zone.new_CNAME | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | data = '0.0.0.0' ) | -
main.Zone.new_MX | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | int | priority = 10, | -
- | - | str | host = 'example.com' ) | -
main.Zone.new_NS | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | target = 'example.com' ) | -
main.Zone.new_PTR | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | host = 'example.com' ) | -
main.Zone.new_record | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | rtype = 'A', | -
- | - | str | data = '0.0.0.0' ) | -
main.Zone.new_soa | -( | -self, | -|
- | - | str | mname = 'ns1.example.com', | -
- | - | str | rname = 'admin.example.com', | -
- | - | int | serial = int(time.time()), | -
- | - | int | refresh = 86400, | -
- | - | int | retry = 7200, | -
- | - | int | expire = 15552000, | -
- | - | int | ttl = 21700 ) | -
main.Zone.new_SRV | -( | -self, | -|
- | - | str | name = '@', | -
- | - | int | ttl = 3600, | -
- | - | str | service = 'service', | -
- | - | str | protocol = 'proto', | -
- | - | int | priority = 10, | -
- | - | int | weight = 10, | -
- | - | str | target = 'example.com' ) | -
main.Zone.save_file | -( | -self, | -|
- | - | str | filepath ) | -
-
|
- -static | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Classes | |
class | main.InvaliadDataException |
class | main.Record |
class | main.A |
class | main.AAAA |
class | main.CNAME |
class | main.MX |
class | main.NS |
class | main.PTR |
class | main.SOA |
class | main.SRV |
class | main.Zone |
-Namespaces | |
namespace | main |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
DNScode is a project to help simplify DNS zone management, when using plain text files with servers like BIND and NSD. It provides a framework for programmatically generating zone files with Python, allowing for more flexability, compared to other DNS as code solutions.
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Namespaces | |
namespace | minecraftchest1 |
-Variables | |
minecraftchest1.zone = main.Zone(origin='minecraftchest1.us.') | |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Variables | |
zone = main.Zone(origin='example.com') | |
record = main.Record(data='192.168.5.254', name='localhost.example.com') | |
mname | |
test.mname | -
test.record = main.Record(data='192.168.5.254', name='localhost.example.com') | -
test.zone = main.Zone(origin='example.com') | -
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
DNScode |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Namespaces | |
namespace | test |
-Variables | |
test.zone = main.Zone(origin='example.com') | |
test.record = main.Record(data='192.168.5.254', name='localhost.example.com') | |
test.mname | |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Namespaces | |
namespace | test_dnscode |
-Functions | |
test_dnscode.test_A (tmp_path) | |
test_dnscode.test_AAAA (tmp_path) | |
- DNScode 0.1.9
-
- Simplifying DNS configuration
- |
-
-Namespaces | |
namespace | zone |