Domain-based Rule

There are 3 domain-based rule types.



Rule matches if the domain of request matches exactly.



Rule matches if the domain of the request matches the suffix. For example: '' matches '', '' and '', but does not match ''.



Rule matches if the domain of the request contains the keyword.

Domain-based Rule Options

Option: force-remote-dns (Surge iOS Only)


When a raw TCP connection is handled by Surge TUN, the application will firstly try to resolve the domain, then send packets to the IP address directly. If the domain cannot be resolved locally, you can use this option to force the DNS resolution to happen remotely on the proxy.

Technically, when an application tries to resolve a domain which matches a rule with 'force-remote-dns' option, Surge will send a DNS answer with a fake IP address (240.1.x.x). When the application connects to the fake IP, Surge will remap it to a domain and send the request to the remote proxy.

Notice: This option only works for Surge TUN (only exists in Surge iOS). Request handled by Surge Proxy will always be resolved remotely if the rule's policy is a proxy.

results matching ""

    No results matching ""