Set Chrome to Use Socks Proxy and Enable Remote DNS

An instruction showing how to set Chrome to use Socks Proxy and enable the remote DNS options by two command-line flags.

Question: How can I enable the remote DNS option when I use a socks proxy in Chrome?


Chrome uses the system proxy settings by default. If you want to use different proxy settings, you can use an extension such as Proxy SwitchyOmega. But it can’t enable the remote DNS option for you.

There is a remote DNS option in Firefox. But Chrome doesn’t have it. To enable the remote DNS option, you have to add a command-line flag to your Chrome shortcut.

1. Right-click the Chrome icon on the desktop and click the “Properties” option.
Chrome Shortcut
Chrome Shortcut
2. Add this command-line flag to the “Target” option.


Important Notes:

  • There are double “-” in the command-line flag above.
  • Add a space before the command-line flag. If you want to add a second command-line flag, start it with a space too.
  • The proxy is just a demo, change to a real proxy.

The full command line should be like this one.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --proxy-server="socks5://"

Chrome Command Properties
Chrome Command-Line Properties

Now you are using a socks proxy in Chrome and the remote DNS is enabled. You can use Chrome to surf this website to confirm it

3. An optional command-line flag

According to this Chrome document, there may be some DNS requests leaking. To avoid it, you can add this command-line flag.

--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE"

Please replace with the IP of your real socks proxy. Now the full command line should be like this one.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --proxy-server="socks5://" --host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE"