There are 3 IP-based rule types. A IP-based rule will trigger a DNS lookup if the hostname of the request is a domain. If the DNS lookup fails, Surge will abort the rule testing and report an error.
Rule matches if the IP address of the request matches a specified range.
Rule matches if the IPv6 address of the request matches a specified range.
Rule matches if the GeoIP test result matches a specified country code.
Rule matches if the autonomous system number of the remote IP address matches.
IP-based Rule Parameters
When a GEOIP or IP-CIDR rule is encountered, Surge will send a DNS query to check if the hostname of request is a domain. You can select 'no-resolve' option to skip this rule for a request with domain.
Notice: If some domains can't be resolved by local DNS server, please make sure there is no IP-based rule in front of the rule which matches that domain. Otherwise the rule testing will fail due to a DNS error. You can use 'no-resolve' to solve the issue too.