2018-10-11 20:34:31 +00:00
|
|
|
package dns
|
|
|
|
|
|
|
|
import (
|
2018-10-11 21:09:15 +00:00
|
|
|
"v2ray.com/core/common/net"
|
2018-10-11 20:34:31 +00:00
|
|
|
"v2ray.com/core/features"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Client is a V2Ray feature for querying DNS information.
|
|
|
|
type Client interface {
|
|
|
|
features.Feature
|
|
|
|
LookupIP(host string) ([]net.IP, error)
|
|
|
|
}
|
2018-10-12 21:57:56 +00:00
|
|
|
|
2018-10-13 10:09:58 +00:00
|
|
|
// ClientType returns the type of Client interface. Can be used for implementing common.HasType.
|
2018-10-12 21:57:56 +00:00
|
|
|
func ClientType() interface{} {
|
|
|
|
return (*Client)(nil)
|
|
|
|
}
|