mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-26 11:54:14 +00:00
Add support for internal DNS system
This commit is contained in:
parent
4999fd5b7b
commit
5f504888b6
7 changed files with 206 additions and 0 deletions
|
@ -23,6 +23,13 @@ type Server interface {
|
|||
QueryIP(ctx context.Context, domain string, clientIP net.IP, option dns.IPOption, disableCache bool) ([]net.IP, error)
|
||||
}
|
||||
|
||||
// Server is the interface for Enhanced Name Server.
|
||||
type EnhancedServer interface {
|
||||
Server
|
||||
// QueryHTTPS sends HTTPS queries to its configured server.
|
||||
QueryHTTPS(ctx context.Context, domain string, disableCache bool) (map[string]string, error)
|
||||
}
|
||||
|
||||
// Client is the interface for DNS client.
|
||||
type Client struct {
|
||||
server Server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue