diff --git a/dns/util.go b/dns/util.go index ad52f051..b1541091 100644 --- a/dns/util.go +++ b/dns/util.go @@ -133,6 +133,7 @@ func transform(servers []NameServer, resolver *Resolver) []dnsClient { ClientSessionCache: globalSessionCache, // alpn identifier, see https://tools.ietf.org/html/draft-hoffman-dprive-dns-tls-alpn-00#page-6 NextProtos: []string{"dns"}, + ServerName: host, }, UDPSize: 4096, Timeout: 5 * time.Second,