From e73809c478edc4a723ad3d1bcc534a7afed6b180 Mon Sep 17 00:00:00 2001 From: "minecraftchest1@outlook.com" Date: Wed, 12 Feb 2025 12:25:56 -0600 Subject: [PATCH] V1.5.2: Fix initalization of TXT record for the second time. --- pyproject.toml | 2 +- src/dnscode/dnscode.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."""