#3381·v2ray-core

[Feature Request] Backporting Response TTL Configuration from v5 to v4

Author: 4-FLOSS-Free-Libre-Open-Source-SoftwareCreated Apr 15, 2025Updated Sep 16, 2026
LabelsStale

DNS Proxy v4 Enhancement – Backporting Response TTL Configuration from v5

Overview:
In version 5 of the DNS Proxy, two new configuration parameters were introduced: "overrideresponseTtl" and "responseTtl". These options allow users to override and define a custom TTL for DNS responses, providing enhanced control and flexibility over network performance. This feature has proven beneficial in optimizing DNS response behavior.

Request:
I propose to backport this feature to the v4 branch to ensure users still operating on v4 can also benefit from configurable response TTL control. The backport should include the following configuration options with identical functionality to that of v5:

"overrideresponseTtl": true,
"responseTtl": 600,

…which are not present in v4, there are also configuration options from v4 that are missing in v5. Unfortunately, I depend on some of these v4-specific features that are currently not supported or implemented in v5. As a result, I am unable to adopt version 5 in its current state. It would be highly appreciated if the v5 configuration layer could be audited against v4 to identify and reintegrate any missing option.