# Troubleshoot DNS when using a proxy

Distinguish between proxy host parsing, target domain name parsing, local DNS leak, and SOCKS5 proxy-side parsing.

DNS issues can occur at two different stages of resolving the proxy gateway or the target domain name, and are handled differently.

## Proxy Host Analysis

- Confirm that the system can parse the gateway host provided by the console.
- Check on-premises DNS, corporate networks, and firewalls.
- Do not replace the gateway host with a fixed address of unknown origin.

## Domain Names

- HTTP proxies usually handle targets by proxy links.
- SOCKS5 uses proxy-side parsing options when accessing domains, such as `socks5h`.
- Check whether the client has resolved the domain name to a local address in advance.

## Leak inspection

- Checks system proxy, extensions, WebRTC, and secure DNS settings for browsers at once.
- Don't make conclusions based on just one test page.

## Submission of information

- Record the desensitization form, parsing stage, time and error type of failed domain names.
- No complete business queries or credentials are submitted.
