X-Git-Url: https://git.ralfj.de/zonemaker.git/blobdiff_plain/53f825fef45e8d09bd04ab44fd4a5e9e6e0c7626..a07f8b89239fb177a995ebda24fcdc71616c35af:/zone.py diff --git a/zone.py b/zone.py index a74ee18..d325915 100644 --- a/zone.py +++ b/zone.py @@ -259,6 +259,19 @@ class TLSA: def generate_rr(self): return RR('_{}._{}'.format(self._port, self._protocol), 'TLSA', '{} {} {} {}'.format(self._usage, self._selector, self._matching_type, self._data)) +class CAA: + class Tag: + Issue = "issue" + IssueWild = "issuewild" + + def __init__(self, flag: int, tag: str, value: str) -> None: + self._flag = int(flag) + self._tag = str(tag) + self._value = str(value) + + def generate_rr(self): + return RR('@', 'CAA', '{} {} {}'.format(self._flag, self._tag, self._value)) + class CNAME: def __init__(self, name: str) -> None: