From fd0fa232c42df363752746ccc52d7e29782ab938 Mon Sep 17 00:00:00 2001 From: "minecraftchest1@outlook.com" Date: Sun, 26 Jan 2025 20:25:53 -0600 Subject: [PATCH] Rename `Zone.new_soa()` to `Zone.new_SOA()` --- src/dnscode/dnscode.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dnscode/dnscode.py b/src/dnscode/dnscode.py index ed056f7..444104e 100644 --- a/src/dnscode/dnscode.py +++ b/src/dnscode/dnscode.py @@ -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."""