V1.5.2: Fix initalization of TXT record for the second time.
This commit is contained in:
parent
08be67acfe
commit
e73809c478
2 changed files with 2 additions and 2 deletions
|
@ -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" },
|
||||
]
|
||||
|
|
|
@ -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."""
|
||||
|
|
Loading…
Add table
Reference in a new issue