diff --git a/dns/dns.go b/dns/dns.go index dd76dd2..b8d177f 100644 --- a/dns/dns.go +++ b/dns/dns.go @@ -182,6 +182,7 @@ func (ds *DNSList) DialContext(ctx context.Context, dialer *net.Dialer, firstFra tlsConn = tls.Client(conn, &tls.Config{ ServerName: host, MinVersion: tls.VersionTLS12, + NextProtos: []string{"dns"}, }) if firstFragmentLen > 0 { err = terasu.Use(tlsConn).HandshakeContext(ctx, firstFragmentLen)