|
|
@ -14,7 +14,6 @@ import (
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/miekg/dns"
|
|
|
|
"github.com/miekg/dns"
|
|
|
|
"golang.org/x/exp/constraints"
|
|
|
|
|
|
|
|
"golang.org/x/exp/slices"
|
|
|
|
"golang.org/x/exp/slices"
|
|
|
|
"tailscale.com/envknob"
|
|
|
|
"tailscale.com/envknob"
|
|
|
|
"tailscale.com/net/netns"
|
|
|
|
"tailscale.com/net/netns"
|
|
|
@ -484,13 +483,6 @@ func (r *Resolver) resolveRecursive(
|
|
|
|
return nil, 0, ErrNoResponses
|
|
|
|
return nil, 0, ErrNoResponses
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func min[T constraints.Ordered](a, b T) T {
|
|
|
|
|
|
|
|
if a < b {
|
|
|
|
|
|
|
|
return a
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return b
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// queryNameserver sends a query for "name" to the nameserver "nameserver" for
|
|
|
|
// queryNameserver sends a query for "name" to the nameserver "nameserver" for
|
|
|
|
// records of type "qtype", trying both UDP and TCP connections as
|
|
|
|
// records of type "qtype", trying both UDP and TCP connections as
|
|
|
|
// appropriate.
|
|
|
|
// appropriate.
|
|
|
|