Compare commits

..

2 commits

Author SHA1 Message Date
minecraftchest1@outlook.com
3809ef785a Bump to 1.3.2
Some checks failed
ci/woodpecker/tag/package-deploy Pipeline failed
2025-01-26 20:26:12 -06:00
minecraftchest1@outlook.com
fd0fa232c4 Rename Zone.new_soa() to Zone.new_SOA() 2025-01-26 20:25:53 -06:00
2 changed files with 7 additions and 2 deletions

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "dnscode"
version = "1.3.1"
version = "1.3.2"
authors = [
{ name="Minecraftchest1", email="me@minec1.us" },
]

View file

@ -20,6 +20,11 @@ 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."""
@ -252,7 +257,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."""