Closed Bug 1743995 Opened 2 years ago Closed 2 years ago

DNS cache can not get TTL from DNS-over-HTTPS

Categories

(Core :: Networking: DNS, defect, P2)

Firefox 94
defect

Tracking

()

RESOLVED FIXED
97 Branch
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: nobody → valentin.gosu
Blocks: doh
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Whiteboard: [necko-triaged]

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.

Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/839eb1957f91
DNS cache can not get TTL from DNS-over-HTTPS r=necko-reviewers,kershaw
https://hg.mozilla.org/integration/autoland/rev/9873e362ffb2
Add test for TTL using TRR r=necko-reviewers,kershaw
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Regressions: 1744900
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: