-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
proposal: net: Add LookupHTTPS() #72110
Comments
Can you write down the doc comment and function signature for what you are proposing? Thanks. |
Fine
Params can be customized, so unlike my previous description, this should be a map According to the naming style of other records (MX & NS), |
The proposal for dnsmessage is #43790 I think if we add it, it should be a method on Resolver https://pkg.go.dev/net#Resolver |
The lookup method in Resolver seems to be basically the same as the global lookup function, and it's just a function created for the convenience of calling, and there will not be too many differences regardless of the decision I just think this function might be a part of ECH support. If others think this is unnecessary or could be merged into that proposal, this issue can be closed. |
Are these DNS records types directly supported in windows DNS apis? |
Also the name makes me a bit uncomfortable, "https", when I saw the title of this issue I thought that it is something for net/http. This might be a reason not to make it a global function. |
Proposal Details
Golang 1.23+already supports ECH, and the main way to obtain ECH config list is through DNS. However, there is no query function for HTTPS records (type65) in the net package, For now, we need manually handle DNS responses
Type65 not only include the ECH config list, so the func should return a structure slice containing priority (int) alpn ([]string) ECH config list ([]byte) ipv4hint ([]string)... (Other specified in RFC 9460)
The text was updated successfully, but these errors were encountered: