-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bug: ECS (EDNS) inaccurately reported when served from cache (related to #3978) #4382
Comments
Does this persist after the TTL of the records expire? |
@gspannu Sorry for the long silence! Is this issue still relevant in the latest release? |
The bug still persists. The incorrect ECS data (always responds with cached) is reported in subsequent requests, regardless of whether the subsequent request is executed within TTL or post TTL. Simple example to help you test... Now send this command (with changed subnet) Th response is always the same a the 1st request, subsequent responses do not honour the subnet details, AGH responds with cached data. |
I was unable to reproduce this.
After 60 secs:
|
No response for over a year; closing. |
I think I have identified a bug in ECS(EDNS) implementation ... related #3978
Running the latest edge build...
Try these following commands
dig o-o.myaddr.google.com txt +subnet=4.5.6.7/24 @AGHServerIP
Response (which is correct)
Now try the same command with different ECS subnet data
dig o-o.myaddr.google.com txt +subnet=1.2.3.4/24 @AGHServerIP
Response (which seems to be incorrect)
Observation
I had sent different subnet values to AGH (
4.5.6.7/24
and1.2.3.4/24
), but if the response is served from cache, then the previous (cached) ECS data is reported by AGH in subsequent queries.As shown by AGH Query log...
First request
![Screenshot](https://user-images.githubusercontent.com/137664/157677574-9333867b-f36f-499b-b52c-f252e69fbd24.png)
Second request (responded by cache)
![Screenshot 1](https://user-images.githubusercontent.com/137664/157677598-5b387a39-4c65-4216-8fae-089773583711.png)
The text was updated successfully, but these errors were encountered: