feat(netxlite): implements NS queries (#734)
This diff has been extracted from eb0bf38957.
See https://github.com/ooni/probe/issues/2096.
While there, skip the broken tests caused by issue
https://github.com/ooni/probe/issues/2098.
This commit is contained in:
parent
c1b06a2d09
commit
ce052b665e
26 changed files with 859 additions and 75 deletions
|
|
@ -51,6 +51,9 @@ type DNSDecoder interface {
|
|||
// an error, though, when there are no IPv4/IPv6 hints in the reply.
|
||||
DecodeHTTPS(data []byte, queryID uint16) (*HTTPSSvc, error)
|
||||
|
||||
// DecodeNS is like DecodeHTTPS but for NS queries.
|
||||
DecodeNS(data []byte, queryID uint16) ([]*net.NS, error)
|
||||
|
||||
// DecodeReply decodes a DNS reply message.
|
||||
//
|
||||
// Arguments:
|
||||
|
|
@ -194,6 +197,9 @@ type Resolver interface {
|
|||
// LookupHTTPS issues an HTTPS query for a domain.
|
||||
LookupHTTPS(
|
||||
ctx context.Context, domain string) (*HTTPSSvc, error)
|
||||
|
||||
// LookupNS issues a NS query for a domain.
|
||||
LookupNS(ctx context.Context, domain string) ([]*net.NS, error)
|
||||
}
|
||||
|
||||
// TLSDialer is a Dialer dialing TLS connections.
|
||||
|
|
|
|||
Loading…
Reference in a new issue