November 16, 2026 · Platform Setup · 10 min read

v2rayN DNS Settings: Configure Local and Remote Resolution

Find the DNS options in v2rayN, understand local versus remote resolution, and choose a routing approach for your setup. Follow practical checks for DNS changes and troubleshoot lookup failures or revert your configuration if needed.

At a glance

v2rayN DNS behavior depends on more than the DNS server address: it also depends on whether an application sends a hostname to the local proxy, which outbound route handles the DNS request, and whether traffic uses the system proxy or TUN mode. This guide shows where to look for DNS-related options, explains local and remote resolution, and gives a cautious way to test changes. It is for Windows users whose sites fail to open, resolve to unexpected addresses, or behave differently between direct and proxied connections.

Understand where DNS resolution happens

DNS turns a hostname such as example.com into an IP address. With v2rayN, there may be more than one place where that lookup happens. The operating system can resolve a name before an application connects; an application can pass the hostname to a local proxy; and the proxy core can use its configured DNS servers when it needs an address. The location depends on the application, proxy mode, routing rules, and core configuration—not on one universal “remote DNS” switch.

In ordinary system-proxy mode, many applications connect to v2rayN’s local HTTP or SOCKS proxy. An application that sends the hostname to the proxy can leave the name available for the proxy core or the remote side to resolve, depending on the protocol and route. Another application may resolve the hostname first and send only the resulting IP address. In the latter case, the DNS query may already have gone to the Windows resolver before the connection reaches the proxy.

TUN mode captures more traffic at the network layer, but it does not automatically guarantee that every DNS query uses a remote resolver. The core’s DNS configuration, routing rules, and system networking still matter. A successful connection to the local proxy also does not prove that DNS queries follow the same path as the website connection.

Application requestHostname or IPDNS lookupRouting decisionOutbound connection

For troubleshooting, separate two questions: which resolver answered the hostname? and which outbound route carried the DNS query? A resolver address such as 1.1.1.1 identifies a DNS service, but it does not by itself prove that the request reached that service through the proxy. Likewise, seeing a remote IP in a connection log does not establish where the hostname was resolved.

Compare local and remote resolution

“Local DNS” commonly means that the Windows system or a resolver on the local network answers the query. “Remote DNS” commonly means that the query is sent to a resolver by a path intended to avoid the local network’s resolver. These are useful descriptions, but clients and core versions may implement them through different combinations of DNS server settings and routing rules. Confirm the actual behavior with a test rather than relying on a label alone.

Local or system resolution

Resolver source
Windows or configured local DNS
Typical DNS port
53 for conventional DNS
Useful when
Local services and intranet names must resolve
Common risk
Queries may use the local network path

The address shown in a node list does not tell you which resolver answered a hostname.

Remote-path resolution

Resolver source
A chosen DNS service
Typical DoH port
443 for HTTPS DNS
Useful when
Proxy traffic needs consistent name resolution
Common risk
DNS routing can loop or use the wrong outbound

DoH uses HTTPS, but port 443 alone does not prove that the request is sent through a proxy.

DNS over HTTPS (DoH) carries DNS messages inside HTTPS requests; conventional DNS commonly uses UDP port 53 and may also use TCP port 53. DoH can make a query harder for a local network to inspect, but the result depends on the route used to reach the DoH service. If the DoH hostname itself needs a DNS lookup, the client also needs a way to resolve that service without creating a circular dependency.

Keep routing separate from resolver selection. A DNS server entry determines where a resolver request is addressed; a routing rule determines which outbound handles that request. A direct outbound may be appropriate for local network names, while a proxy outbound may suit a remote resolver. If all DNS requests are forced through an outbound that itself needs DNS, startup or lookup failures can follow. Avoid changing multiple DNS and routing rules at once.

53
Conventional DNS port
443
Common HTTPS / DoH port
1 change
Change per test round

These ports describe common transports, not a promise that a particular server accepts queries there. Use the DNS service’s documented endpoint and the format supported by the selected core. A plain IP address, a DoH URL, and a hostname for a DNS service are different kinds of values; do not paste one into a field intended for another.

Find and test v2rayN DNS settings

In v2rayN, first check the core and version in use, because the available DNS controls and labels can vary. In commonly used desktop layouts, start at Settings → Parameter Settings and look for the DNS-related section or tab. Review the routing options separately rather than assuming the DNS page controls the outbound route. If a setting is absent, do not add a similarly named option to a generated configuration without confirming that the active core supports it.

Before editing, note the selected node, active core, system-proxy state, TUN state, and any custom DNS or routing entries. Export or copy custom configuration that you maintain yourself. v2rayN can generate core configuration from client settings; manually editing a generated file may be overwritten when the client restarts or changes nodes. Keep a record of the original value so that a comparison or rollback is straightforward.

  1. Record the baseline

    Choose one affected hostname and note the time, selected node, active core, and whether you are using system proxy or TUN. Test the same hostname and application before changing DNS so the original symptom is reproducible.

  2. Open DNS options

    In the main window, open “Settings” → “Parameter Settings” and find the DNS-related controls. Read the field labels and help text; menu wording can differ between releases. Check routing settings in their own section.

  3. Change one value

    Use a resolver value and format supported by the active core. Leave unrelated routing and proxy-mode settings unchanged. If you are testing a DNS server, avoid changing the server, query strategy, and outbound route together.

  4. Restart and retest

    Apply the change using the client’s available restart or core-reload action. Test the same hostname in the same application and mode. Then test one known working hostname to see whether the change caused a broader failure.

  5. Keep or revert

    Keep the change only if the result is repeatable and expected. Otherwise restore the recorded value, reload the core, and check that the original behavior returns before trying another variable.

Windows provides a useful comparison, but its result is not a complete test of v2rayN’s core DNS path. In Command Prompt, run nslookup example.com to see whether the system resolver can answer that name. If it succeeds while the same site fails through the proxy, investigate the proxy path, core DNS, and routing rather than assuming Windows DNS is broken. If it fails both with and without v2rayN, check the active network and Windows resolver configuration first.

Repeat the same test after each change. A browser may cache DNS answers, and applications can maintain their own connections. Close and reopen the affected application if necessary, or use a fresh test hostname you are authorized to access. Do not treat one successful page load as proof that all applications, protocols, and routes now use the intended resolver.

Troubleshoot DNS failures and avoid loops

Start with the first useful error in the core log, not simply the last “connection failed” message. A lookup failure can mean the resolver is unreachable, the DNS value has the wrong format, a routing rule selects an unavailable outbound, or the hostname has no usable record. Record the timestamp and reproduce the failure once; repeated retries can make the log harder to read.

DNS lookup failed or timed out

Cause and fix: The resolver may be unreachable or the selected route may not work. Temporarily restore the previous DNS value, verify ordinary connectivity, then test the resolver and route separately.

Domain name is not resolved

Cause and fix: The application or core may be receiving an unusable name, or the hostname may not have a valid response. Check the spelling, test it with nslookup, and compare a different known hostname.

Core starts, but pages stop opening after a DNS change

Cause and fix: A new DNS or routing rule may send resolver traffic into an outbound that depends on the same unresolved lookup. Restore the previous setting and test a simpler resolver route before adding more rules.

Check whether the failure affects every application or only one. If one browser fails while another works, inspect that application’s own secure-DNS setting and cached connections; its resolver behavior may not follow the same path as the system proxy. If all applications fail only with TUN enabled, compare with TUN disabled and system-proxy mode, keeping the same node and DNS configuration. That comparison helps locate the problem in traffic capture or DNS handling rather than the node itself.

For a remote resolver, check both name resolution and reachability to the resolver endpoint. A DoH URL may require a valid hostname, HTTPS connection, and compatible core support. If its hostname cannot be resolved at startup, the core may need a bootstrap path; do not assume that replacing the URL with an IP address is safe or supported, since HTTPS certificate validation and endpoint behavior may depend on the hostname.

When rolling back, restore the exact previous DNS and routing values, reload or restart the core, and repeat the original test. If the client still behaves differently, also restore the original proxy mode and selected node. A change in TUN state or system proxy can alter DNS behavior even when the DNS fields themselves are unchanged.

DNS settings FAQ

Does choosing a DNS server make every query remote?

No. The server choice and the route to that server are separate. An application may resolve a hostname before using the proxy, and a DNS request may use a direct outbound unless routing sends it elsewhere. Test the actual application and mode you use.

Should I use system proxy or TUN to fix DNS?

Neither mode is a universal DNS fix. Use system proxy to test applications that support the local proxy, then compare TUN only if the affected traffic is not captured by the system-proxy setup. Keep the node and DNS values constant during the comparison.

Why does nslookup work while a proxied site fails?

nslookup usually tests the Windows resolver path, not necessarily the DNS route used by the core or application. Check v2rayN’s core log, the proxy mode, and the route for the failing request; compare with another application before changing the system resolver.

Can I delete all DNS rules and start over?

Back up custom settings first. Restore the client’s prior or default values rather than deleting entries whose purpose you do not know; DNS rules may be needed for local domains or core bootstrap. Change one item, reload the core, and verify the result before proceeding.

A reliable DNS setup is one whose resolver, query route, and proxy mode match the way your applications send hostnames. Keep the original configuration, test one change at a time, and use the core log and a system-resolver comparison to narrow down failures. If a change makes resolution worse, restore the previous values before testing a different approach.

Download V2rayNChoose your platform