mirror of https://github.com/v2ray/v2ray-core
18 lines
380 B
Go
18 lines
380 B
Go
package dns
|
|
|
|
import (
|
|
"v2ray.com/core/common/net"
|
|
"v2ray.com/core/features"
|
|
)
|
|
|
|
// Client is a V2Ray feature for querying DNS information.
|
|
type Client interface {
|
|
features.Feature
|
|
LookupIP(host string) ([]net.IP, error)
|
|
}
|
|
|
|
// ClientType returns the type of Client interface. Can be used for implementing common.HasType.
|
|
func ClientType() interface{} {
|
|
return (*Client)(nil)
|
|
}
|