diff --git a/pyproject.toml b/pyproject.toml index 0b204b1..e9a9d05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "dnscode" -version = "1.5.1" +version = "1.5.2" authors = [ { name="Minecraftchest1", email="me@minec1.us" }, ] diff --git a/src/dnscode/dnscode.py b/src/dnscode/dnscode.py index 62dc974..dff781e 100644 --- a/src/dnscode/dnscode.py +++ b/src/dnscode/dnscode.py @@ -286,7 +286,7 @@ class Zone: def new_TXT(self, name: str = '@', ttl: int = 3600, text: str = 'example.com'): """Creates and adds a new CNAME record to the zone.""" name = self.__mkfqdn(name) - self.add(CNAME(name=name, ttl=ttl, text=text)) + self.add(TXT(name=name, ttl=ttl, text=text)) def new_record(self, name: str = '@', ttl: int = 3600, rtype: str = 'A', data: str = '0.0.0.0'): """Creates and adds a generic DNS record to the zone."""