Skip to content

Forwarded queries bypassing cache and always hit upstream #2835

@CampionLoong

Description

@CampionLoong

THE TRACKER IS DEDICATED TO KEEPING TRACK OF BUGS,
preferably after they have been already discussed and confirmed to be reproducible.

FOR ASSISTANCE, PLEASE CLOSE THIS FORM AND USE THE DISCUSSIONS SECTION INSTEAD:
https://github.com/DNSCrypt/dnscrypt-proxy/discussions/categories/q-a


Reported bugs must reproducible in the context described in the "Context" section.

Installation and configuration issues are not bugs, but individual assistance request.

Context: the LATEST version of `dnscrypt-proxy` (precompiled binaries downloaded from this repository) is correctly installed and configured on your system, but something doesn't seem to produce the expected result.

If the bug is not trivial to reproduce on any platform, please include ALL the steps required to reliably duplicate it, on a vanilla, generic install of macOS, Windows, OpenBSD or Ubuntu Linux system, in their most current version.

If you don't have any clear understanding of the issue or can't enumerate the steps to reproduce it, open a discussion instead:
https://github.com/DNSCrypt/dnscrypt-proxy/discussions


## Output of the following commands:

./dnscrypt-proxy -version
2.1.8

./dnscrypt-proxy -check
[2025-04-30 14:13:07] [NOTICE] dnscrypt-proxy 2.1.8
[2025-04-30 14:13:07] [NOTICE] Dropping privileges
[2025-04-30 14:13:08] [NOTICE] Source [public-resolvers] loaded
[2025-04-30 14:13:08] [NOTICE] Source [dnscry-pt-relays] loaded
[2025-04-30 14:13:08] [NOTICE] Source [odoh-servers] loaded
[2025-04-30 14:13:08] [NOTICE] Source [dnscry-pt-resolvers] loaded
[2025-04-30 14:13:08] [NOTICE] Source [cs-resolvers] loaded
[2025-04-30 14:13:08] [NOTICE] Source [relays] loaded
[2025-04-30 14:13:08] [NOTICE] Source [odoh-relays] loaded
[2025-04-30 14:13:08] [NOTICE] Source [quad9-resolvers] loaded
[2025-04-30 14:13:08] [NOTICE] Source [cs-relays] loaded
[2025-04-30 14:13:08] [NOTICE] Anonymized DNS: routing everything via [cs-official-anon-cs-nyc dnscry.pt-official-anon-newyork-ipv4]
[2025-04-30 14:13:08] [NOTICE] Configuration successfully checked


./dnscrypt-proxy -resolve example.com
Resolving [example.com] using 127.0.0.1 port 53

Resolver      : 74.63.29.230 (res760.lga.rrdns.pch.net.)

Canonical name: example.com.

IPv4 addresses: 96.7.128.175, 96.7.128.198, 23.192.228.80, 23.192.228.84, 23.215.0.136, 23.215.0.138
IPv6 addresses: -

Name servers  : b.iana-servers.net., a.iana-servers.net.
DNSSEC signed : yes
Mail servers  : 1 mail servers found

HTTPS alias   : -
HTTPS info    : -

Host info     : -
TXT records   : _k2n1y4vw3qtb4skdx9e7dxt97qrmmq9, v=spf1 -all

- [ ] Initially raised as discussion #...



## *What* is affected by this bug?
Inferior performance of forwarded queries as it always disregards the cache and forwards to upstream 


## *When* does this occur?



## *Where* does it happen?



## *How* do we replicate the issue?
<!-- Please list all the steps required to reliably replicate it, starting from a newly installed operating system -->



## Expected behavior (i.e. solution)



## Other Comments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions