Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for multi value PTR records #72

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions octodns_powerdns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class PowerDnsBaseProvider(BaseProvider):
SUPPORTS_GEO = False
SUPPORTS_DYNAMIC = False
SUPPORTS_ROOT_NS = True
SUPPORTS_MULTIVALUE_PTR = True
SUPPORTS = set(
(
'A',
Expand Down Expand Up @@ -162,6 +163,7 @@ def _data_for_multiple(self, rrset):
_data_for_A = _data_for_multiple
_data_for_AAAA = _data_for_multiple
_data_for_NS = _data_for_multiple
_data_for_PTR = _data_for_multiple

def _data_for_TLSA(self, rrset):
values = []
Expand Down Expand Up @@ -222,7 +224,6 @@ def _data_for_single(self, rrset):

_data_for_ALIAS = _data_for_single
_data_for_CNAME = _data_for_single
_data_for_PTR = _data_for_single

def _data_for_quoted(self, rrset):
return {
Expand Down Expand Up @@ -492,6 +493,7 @@ def _records_for_multiple(self, record):
_records_for_A = _records_for_multiple
_records_for_AAAA = _records_for_multiple
_records_for_NS = _records_for_multiple
_records_for_PTR = _records_for_multiple

def _records_for_TLSA(self, record):
return [
Expand Down Expand Up @@ -525,7 +527,6 @@ def _records_for_single(self, record):

_records_for_ALIAS = _records_for_single
_records_for_CNAME = _records_for_single
_records_for_PTR = _records_for_single

def _records_for_quoted(self, record):
return [
Expand Down
Loading