Planning icon indicating copy to clipboard operation
Planning copied to clipboard

Split DNS logic out of V2Ray core

Open DarienRaymond opened this issue 9 years ago • 1 comments

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.

DarienRaymond avatar Sep 27 '17 19:09 DarienRaymond

Not fesible

DarienRaymond avatar Nov 15 '17 16:11 DarienRaymond