DNS cache can not get TTL from DNS-over-HTTPS
Categories
(Core :: Networking: DNS, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox97 | --- | fixed |
People
(Reporter: fantasyfate, Assigned: valentin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0
Steps to reproduce:
Enable DNS-over-HTTPS, visit "https://www.example.com/", and observe TTL from Expires (Seconds) in "about:networking#dns"
Actual results:
The TTL is 60 seconds.
Expected results:
The initial TTL for "www.example.com" DNS record is 86400 seconds, so it is highly unlikely to get 60 seconds TTL every time, which seems to be controlled by network.dnsCacheExpiration
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
If mTTL is initialized to UINT32_MAX then the update condition when
adding a new IP via DOHResp::Add will never be triggered (a TTL can
never be larger than UINT32_MAX).
So it is better to have it be initialized to 0.
Assignee | ||
Comment 2•3 years ago
|
||
Depends on D132697
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/839eb1957f91
https://hg.mozilla.org/mozilla-central/rev/9873e362ffb2
Description
•