Add support for internal DNS system

This commit is contained in:
风扇滑翔翼 2025-03-09 18:55:37 +00:00 committed by GitHub
parent 4999fd5b7b
commit 5f504888b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 206 additions and 0 deletions

View file

@ -24,6 +24,13 @@ type Client interface {
LookupIP(domain string, option IPOption) ([]net.IP, error)
}
type EnhancedClient interface {
Client
// LookupHTTPS returns HTTPS records for the given domain.
LookupHTTPS(domain string) (map[string]string, error)
}
type HostsLookup interface {
LookupHosts(domain string) *net.Address
}