Planning
Planning copied to clipboard
Split DNS logic out of V2Ray core
The existing DNS logic built into V2Ray core has some defects:
- Only support a tiny subset of DNS functionalities;
- Difficult to maintain and debug;
Here is a proposal to split the DNS logic into a standalone program.
- A third party DNS server program will be used, such as CoreDNS.
- V2Ray core brings up DNS server as a child process when necessary (i.e., user configures to use custom DNS).
- V2Ray core opens ports (automatically) for redirecting traffic from local DNS server to remote.
Benefits:
- Full functional DNS.
- Both UDP and HTTP based DNS queries.
- Low maintenance cost.
Potential risk:
- Some V2Ray client may not aware of the extra binary in the package.
Not fesible