[Dnsmasq-discuss] Maximum concurrent tcp dns requests with dnsmasq
Jan Horstmann
J.Horstmann at mittwald.de
Fri Dec 2 14:15:49 UTC 2022
Hi,
it seems that dnsmasq with mostly default parameters can be easily
overwhelmed with tcp dns requests. Even for 64 nearly concurrent
requests some will take longer than a second to be answered [1]. This
gets worse with the number of requests.
Are there any tunables which could improve this?
Regards
Jan
[1]
root at 8cb67b32dabb:/# dnsmasq --version
Dnsmasq version 2.86 Copyright (c) 2000-2021 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP
DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect
inotify dumpfile
[...]
root at 8cb67b32dabb:/# dnsmasq --no-hosts --no-resolv --local-service --
bind-dynamic --server=1.1.1.1
root at 8cb67b32dabb:/# time dig +short +tcp thekelleys.org.uk @127.0.0.1
85.119.82.65
real 0m0.076s
user 0m0.019s
sys 0m0.016s
root at 8cb67b32dabb:/# for i in {0..63}; do time dig +short +tcp
thekelleys.org.uk @127.0.0.1 & done | grep -c '85.119.82.65'
real 0m0.064s
user 0m0.012s
sys 0m0.010s
real 0m0.074s
user 0m0.009s
sys 0m0.011s
[...]
real 0m0.359s
user 0m0.014s
sys 0m0.004s
real 0m1.190s
user 0m0.009s
sys 0m0.012s
real 0m1.171s
user 0m0.012s
sys 0m0.007s
real 0m1.192s
user 0m0.009s
sys 0m0.011s
64
--
Jan Horstmann
Systementwickler | Infrastruktur
_____
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 4-6
32339 Espelkamp
Tel.: 05772 / 293-900
Fax: 05772 / 293-333
j.horstmann at mittwald.de
https://www.mittwald.de
Geschäftsführer: Robert Meyer, Florian Jürgens
USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad
Oeynhausen
Informationen zur Datenverarbeitung im Rahmen unserer
Geschäftstätigkeit
gemäß Art. 13-14 DSGVO sind unter www.mittwald.de/ds abrufbar.
More information about the Dnsmasq-discuss
mailing list