This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Description
Current "magicdns" feature uses a pool of TCP connections against the upstream DNS server to pipeline the UDP DNS requests.
My observation is that CoreDNS as soon as the connection becomes idle shuts down the TCP connection.
TCP connection establishment is expensive and increases p99 latency, having 1 TCP request alive permanently will improve the performance, it will be nice to understand the state of the art in this area and propose a solution
Ref: https://datatracker.ietf.org/doc/html/rfc7828#section-3