Open Bug 1620628 Opened 5 years ago Updated 2 years ago

More frequent DoH requests than expected

Categories

(Core :: Networking: DNS, task, P3)

75 Branch
Desktop
Linux
task

Tracking

()

Tracking Status
firefox75 --- affected

People

(Reporter: sven, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged][trr])

I have configured DoH to use my personal NextDNS account. The account offers a log of all requests. Some domain names are requested far more frequently than I'd expect.

One example is the domain play.google.com. I generally have two Gmail tabs open (one in each profile configured to use the NextDNS account), and Gmail regularly sends requests to that domain. The DNS record has a TTL of 300 seconds, but on average I see one request every 15 seconds for that name.

Another domain name I see more frequently than expected is sync-721-us-west-2.sync.services.mozilla.com, which is the name of the Sync node responsible for my account. I often see bursts of about two dozen requests for this domain name in a very short time (about a second, but I'm not quite sure about that).

When looking at about:networking#dns, play.google.com seems to be missing from the list most of the time, in spite of constantly being resolved. The last time I checked it was listed, though. I've never seen the sync host in that list.

I don't know whether this is working as expected, but it definitely isn't working as I would expect. :) I'd expect Firefox to respect the TTL when making DoH requests, and I wouldn't expect Firefox to send many identical DoH requests in a very short amount of time.

Valentin, can you have a look?

Flags: needinfo?(valentin.gosu)
Priority: -- → P2
Whiteboard: [necko-triaged]

Some of the DNS requests performed are instructed to skip the cache (which includes the DNS cache).
So when you force refresh a page, that will send a request regardless if the DNS record's TTL has not expired.
However, some of the issues presented here might be important to investigate, even if only as an optimization. I'll try to take a look soon.

Type: defect → task
Priority: P2 → P3
Flags: needinfo?(valentin.gosu)
Whiteboard: [necko-triaged] → [necko-triaged][trr]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.