Skip to content

Commit

Permalink
Add DNS record types for OPENPGPKEY and SMIMEA
Browse files Browse the repository at this point in the history
Netcup allows to store public keys (OPENPGPKEY) and certificates (SMIMEA) in DNS, cannot be published/ deleted as types are not part of the valid types list and nc_dnsapi will fail if such records exist.
  • Loading branch information
jp-coding authored Apr 16, 2019
1 parent e3e6a28 commit b79f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nc_dnsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __eq__(self, other):


class DNSRecord(object):
__valid_types = ['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT', 'TLSA', 'NS', 'DS']
__valid_types = ['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT', 'TLSA', 'NS', 'DS', 'OPENPGPKEY', 'SMIMEA']

def __init__(self, hostname, type, destination, **kwargs):
self.hostname = hostname
Expand Down

0 comments on commit b79f0bf

Please sign in to comment.