Files
tun2socks/component/fakedns/fakedns.go
2019-08-19 17:01:27 +08:00

17 lines
284 B
Go

package fakedns
import (
"net"
)
type FakeDNS interface {
Start() error
Stop() error
// Resolve a fake dns response for the specify request.
Resolve([]byte) ([]byte, error)
// IPToHost returns the corresponding domain for the given IP.
IPToHost(ip net.IP) (string, bool)
}