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

Provide key+val additional information for SRV, SVCB or HTTPS records #7

Open
pemensik opened this issue Jun 10, 2023 · 0 comments
Open

Comments

@pemensik
Copy link
Contributor

Applications using SRV requests get a weight and priority additional parameters for each address resolved. Because that is used in both DNS and Multicast DNS. Because struct addrinfo contains the ordered list of addresses, I were thinking that is exactly result of SRV query too. In the end, it serves list of mixed AF addresses, sorted according to priority and weight. We could provide applications uniform ability to process SRV records. getaddrinfo() already has text service name anyway. I think we could use it together with some flag.

Similarly new SVCB and HTTPS records offer addresses too, but can provide additional parameters for connections. I think applications doing HTTPS connections would like API to receive all those addresses with additional parameters. I think simple array with key + val for each such parameter would provide ability to use them. Parameters like alpn would require application to use DNS-only resolution. But that would prevent https://localhost/ to work on typical machine.

I doubt it is common to use those records on mdns, but if some service wanted to provide parameters for encrypted channel, it might be used for that.

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

No branches or pull requests

1 participant