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

DNS resolution for validator lists #3494

Closed
carlhua opened this issue Jul 8, 2020 · 0 comments
Closed

DNS resolution for validator lists #3494

carlhua opened this issue Jul 8, 2020 · 0 comments
Labels
Feature Request Used to indicate requests to add new features RIPD Export Exported from legacy JIRA issue tracking

Comments

@carlhua
Copy link
Contributor

carlhua commented Jul 8, 2020

Validator list site are configured by specifying a URL from which the validator list can be retrieved. The URL can specify either a hostname or an IP address.

If a hostname is specified then we should resolve it every time we need to perform a check against that site; if the resolver response includes a single IP, then we can just use it normally: attempt to connect to that IP and retrieve the list. Store the IP address and the success/failure status in the object and produce a log entry.

If the resolver response includes multiple IPs we need to use more advanced logic. Resolve the hostname again and:

If the previous attempt was successful and if the previously used IP is still valid use that, following the "single IP" logic above.
If this isn't the first attempt and the previous attempt failed, remove the failed IP from the list of resolved addresses if it still exists. Select an IP at random from the remaining choices and follow the "single IP" logic above.

Exported from RIPD-1671

@carlhua carlhua added Feature Request Used to indicate requests to add new features RIPD Export Exported from legacy JIRA issue tracking labels Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Used to indicate requests to add new features RIPD Export Exported from legacy JIRA issue tracking
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant