V1.5.2: Fix initalization of TXT record for the second time.
Some checks failed
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/package-deploy Pipeline was successful
ci/woodpecker/tag/docs Pipeline failed
ci/woodpecker/tag/package-deploy Pipeline was successful

This commit is contained in:
minecraftchest1@outlook.com 2025-02-12 12:25:56 -06:00
parent 08be67acfe
commit e73809c478
2 changed files with 2 additions and 2 deletions

View file

@ -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" },
]

View file

@ -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."""