Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Do an AAAA lookup on SRV record targets #2462

Merged
merged 1 commit into from
Sep 22, 2017
Merged

Do an AAAA lookup on SRV record targets #2462

merged 1 commit into from
Sep 22, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 22, 2017

Support SRV records which point at AAAA records, as well as A records.

Fixes #2405

@richvdh
Copy link
Member Author

richvdh commented Sep 22, 2017

ok this seems better now.

Support SRV records which point at AAAA records, as well as A records.

Fixes #2405
if answer.type == dns.A and answer.payload:
ip = answer.payload.dottedQuad()
host_ttl = min(srv_ttl, answer.ttl)
for (ip, ttl) in hosts:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically doesn't need brackets

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants