0xERR0R / blocky

Fast and lightweight DNS proxy as ad-blocker for local network with many features
https://0xERR0R.github.io/blocky/
Apache License 2.0
4.39k stars 199 forks source link

one upstream server and strict.. double queries? #1536

Open bcookatpcsd opened 5 days ago

bcookatpcsd commented 5 days ago

I use NextDNS for upstream filtering.. and my queries seem to have doubled..

So I put dnscrypt-proxy behind blocky to look at the queries better/easier..

And I seem to be getting two lookup requests for each inbound to blocky..

I thought multiple was coming from parallel_best, so I tried strict.. still happens..

[2024-07-05 09:00:22]  INFO server: -> strict:
[2024-07-05 09:00:22]  INFO server:      group: default
[2024-07-05 09:00:22]  INFO server:      upstreams:
[2024-07-05 09:00:22]  INFO server:        - tcp+udp:127.0.0.1:5353
[2024-07-05 09:01:29]   127.0.0.1       play.google.com A       PASS    6ms     a1b2c3-xyz
[2024-07-05 09:01:29]   127.0.0.1       play.google.com A       PASS    6ms     a1b2c3-xyz
[2024-07-05 09:01:30]   127.0.0.1       dns.msftncsi.com        A       PASS    5ms     a1b2c3-xyz
[2024-07-05 09:01:30]   127.0.0.1       dns.msftncsi.com        A       PASS    6ms     a1b2c3-xyz
[2024-07-05 09:01:36]   127.0.0.1       fpinit.itunes.apple.com HTTPS   PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:36]   127.0.0.1       fpinit.itunes.apple.com HTTPS   PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:36]   127.0.0.1       fpinit.itunes.apple.com A       PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:36]   127.0.0.1       fpinit.itunes.apple.com A       PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:36]   127.0.0.1       fpinit-us-e.edge-itunes-apple.com.akadns.net    HTTPS   PASS    5ms     a1b2c3-xyz
[2024-07-05 09:01:36]   127.0.0.1       fpinit-us-e.edge-itunes-apple.com.akadns.net    HTTPS   PASS    5ms     a1b2c3-xyz
[2024-07-05 09:01:37]   127.0.0.1       configuration.ls.apple.com      HTTPS   PASS    7ms     a1b2c3-xyz
[2024-07-05 09:01:37]   127.0.0.1       configuration.ls.apple.com      HTTPS   PASS    7ms     a1b2c3-xyz
[2024-07-05 09:01:37]   127.0.0.1       configuration.ls.apple.com      A       PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:37]   127.0.0.1       configuration.ls.apple.com      A       PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:37]   127.0.0.1       e10499.dsce9.akamaiedge.net     HTTPS   PASS    6ms     a1b2c3-xyz
[2024-07-05 09:01:37]   127.0.0.1       e10499.dsce9.akamaiedge.net     HTTPS   PASS    7ms     a1b2c3-xyz
[2024-07-05 09:01:38]   127.0.0.1       assets.msn.com  A       PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:38]   127.0.0.1       assets.msn.com  A       PASS    9ms     a1b2c3-xyz
[2024-07-05 09:01:38]   127.0.0.1       assets.msn.com  HTTPS   PASS    8ms     a1b2c3-xyz
[2024-07-05 09:01:38]   127.0.0.1       assets.msn.com  HTTPS   PASS    9ms     a1b2c3-xyz
 docker exec -it blocky /app/blocky version
blocky
Version: v0.24
Build time: 20240525-085726
Architecture: amd64
kwitsch commented 4 days ago

If I remember correctly udp+tcp does both requests parallel to increase performance.🤔

But I'm currently not entirely sure about it.🫣

Have to look at the code later on to verify it...