Documentation ¶
Index ¶
Constants ¶
View Source
const COMMON_DNS_PORT = 53
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeDns ¶
type FakeDns interface { Start() error Stop() error // GenerateFakeResponse generates a fake dns response for the specify request. GenerateFakeResponse(request []byte) ([]byte, error) // QueryDomain returns the corresponding domain for the given IP. QueryDomain(ip net.IP) string // IsFakeIP checks if the given ip is a fake IP. IsFakeIP(ip net.IP) bool }
Click to show internal directories.
Click to hide internal directories.