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

Have libpaf connect to all addresses of DNS-based address #22

Open
m-ronnblom opened this issue Oct 25, 2022 · 3 comments
Open

Have libpaf connect to all addresses of DNS-based address #22

m-ronnblom opened this issue Oct 25, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@m-ronnblom
Copy link
Collaborator

For TLS or TCP type server addresses, libpaf should resolve the DNS name and connect to all IPv4 and IPv6 addresses, treating each A och AAA record as a separate server.

Current libpaf relies on XCM for name resolution, which in turn relies on glibc and the system's configuration, and picks one addresses out of those available for a particular DNS FQDN.

Considering the change in semantics, this new behavior should only be exhibited if it is explicitly enabled (in the domains file).

@m-ronnblom m-ronnblom added the enhancement New feature or request label Oct 25, 2022
@m-ronnblom
Copy link
Collaborator Author

The use-all-DNS-FQDN-IPs would lead to the same credentials (cert, key, and trusted CA bundle) to be used for all servers under a particular DNS name.

@m-ronnblom
Copy link
Collaborator Author

Should there be a way to handle multi-homed servers residing behind the same DNS FQDN?

@m-ronnblom
Copy link
Collaborator Author

m-ronnblom commented Mar 16, 2023

libpaf would need to poll DNS to see if the number or contents of records for a particular domain changes. In essence, the DNS hostname will provide the same information as are in the domain file (i.e., a list of server addresses. but minus "extra" such as tlsCertificateFile).

Polling frequency should be determined by the DNS TTL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant