Compare commits
No commits in common. "3809ef785a29f5edf2346b996c0b5545aaae792e" and "24ab31bf8938758864f7d755cd5c477fd7bffeb3" have entirely different histories.
3809ef785a
...
24ab31bf89
2 changed files with 2 additions and 7 deletions
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "dnscode"
|
||||
version = "1.3.2"
|
||||
version = "1.3.1"
|
||||
authors = [
|
||||
{ name="Minecraftchest1", email="me@minec1.us" },
|
||||
]
|
||||
|
|
|
@ -20,11 +20,6 @@ import time
|
|||
import ipaddress
|
||||
import fqdn
|
||||
|
||||
"""@package dnscode
|
||||
|
||||
Simplifying DNS Zone management
|
||||
"""
|
||||
|
||||
class InvalidDataException(Exception):
|
||||
"""Exception raised when invalid data is passed to a record."""
|
||||
|
||||
|
@ -257,7 +252,7 @@ class Zone:
|
|||
name = self.__mkfqdn(name)
|
||||
self.add(PTR(name=name, ttl=ttl, host=host))
|
||||
|
||||
def new_SOA(self, mname: str = 'ns1.example.com', rname: str = 'admin.example.com',
|
||||
def new_soa(self, mname: str = 'ns1.example.com', rname: str = 'admin.example.com',
|
||||
serial: int = int(time.time()), refresh: int = 86400, retry: int = 7200,
|
||||
expire: int = 15552000, ttl: int = 21700):
|
||||
"""Creates and adds a new SOA record to the zone."""
|
||||
|
|
Loading…
Add table
Reference in a new issue