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

DoH query id should always be 0 according to RFC 8484 #77

Open
TrevinAvery opened this issue Dec 1, 2021 · 0 comments
Open

DoH query id should always be 0 according to RFC 8484 #77

TrevinAvery opened this issue Dec 1, 2021 · 0 comments

Comments

@TrevinAvery
Copy link

According to RFC 8484 section 4.1, the id should always be 0 to optimize caching:

In order to maximize HTTP cache friendliness, DoH clients using media formats that include the ID field from the DNS message header, such as "application/dns-message", SHOULD use a DNS ID of 0 in every DNS request. HTTP correlates the request and response, thus eliminating the need for the ID in a media type such as "application/dns-message". The use of a varying DNS ID can cause semantically equivalent DNS queries to be cached separately.

id: getRandomInt(1, 65534),

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