DNS
-
A DNS server designed as an
IPStackProtocol
implementation which works with TUN interface.This class is thread-safe.
See moreDeclaration
Swift
open class DNSServer: DNSResolverDelegate, IPStackProtocol
-
Undocumented
See more
-
The result of matching the rule to DNS request.
- Real: The request matches the rule and the connection can be done with a real IP address.
- Fake: The request matches the rule but we need to identify this session when a later connection is fired with an IP address instead of the host domain.
- Unknown: The match type is
DNSSessionMatchType.Domain
but rule needs the resolved IP address. - Pass: This rule does not match the request.
Declaration
Swift
public enum DNSSessionMatchResult
-
The information available in current round of matching.
Since we want to speed things up, we first match the request without resolving it (
.Domain
). If any rule returns.Unknown
, we lookup the request and rematches that rule (.IP
).- Domain: Only domain information is available.
- IP: The IP address is resolved.
Declaration
Swift
public enum DNSSessionMatchType