modulepackage
0.0.0-20240731145820-a9b680fdd84c
Repository: https://github.com/etclab/resolv.git
Documentation: pkg.go.dev
# README
Go package that implements a variety of DNS clients, including DNS-over-TLS and DNS-over-HTTPS.
resolv
sdscan
Output Schema
{
Rank: <int>
QName: <string>
DNSSDProbe: <null> | {
ServiceBrowsers: [
<str>,
...
],
DefaultServiceBrowser: <str>,
LegacyServiceBrowsers: [
<str>,
...
],
Services: {
<str>: [
{
Name: <str>,
Priority: <int>,
Weight: <int>,
Port: <int>,
Target: <str>,
Txt: <null> | [
<str>,
...
],
Addrs: [
<str>,
...,
],
SRVValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AAAAValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
}
},
...
],
...
}
},
PTRProbe: <null> | {
Services: {
<str>: [
{
Name: <str>,
Priority: <int>,
Weight: <int>,
Port: <int>,
Target: <str>,
Txt: <null> | [
<str>,
...
],
Addrs: [
<str>,
...,
],
SRVValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AAAAValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
}
},
...
],
...
}
},
SRVProbe: null | {
Services: {
<str>: [
{
Name: <str>,
Priority: <int>,
Weight: <int>,
Port: <int>,
Target: <str>,
Txt: <null> | [
<str>,
...
],
Addrs: [
<str>,
...,
],
SRVValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AAAAValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
}
},
...
],
...
}
},
NAPTRProbe: {
NAPTRs: [
{
Order: <int>,
Preference: <int>,
Flags: <str>,
Service: <str>,
Regexp: <str>,
Replacement: <str>,
NAPTRValidated: {
Validated: <bool>
Rcode: <int>,
ExtendedErrorCode: <int>
}
Services: nil | [
{
Name: <str>,
Priority: <int>,
Weight: <int>,
Port: <int>,
Target: <str>,
Txt: <null> | [
<str>,
...
],
Addrs: [
<str>,
...,
],
SRVValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
AAAAValidated: {
Validated: <bool>,
Rcode: <int>,
ExtendedErrorCode: <int>
},
},
...
]
},
...
]
}
}
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
CollectRRs takes a slice of [github.com/miekg/dns.RR]s and returns a slice of with the [github.com/miekg/dns.RR]s of type T.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
in the EDNS0 opt record.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ErrBadAnswer indicates that the response's answer contains data that does not conform to its RR type.
ErrBadName indicates that the response's answer contains records that match the query's QTYPE, but none of the records match the QNAME or one of the QNAME's CNAME aliases.
ErrInvalidCNAMEChain indicates that the response's answer contains an invalid set of CNAMEs.
ErrMaxCNAMEs indicates that the client followed its configurd maximum number of CNAMEs without resolving the query.
ErrNoData represents the NODATA pseudo RCODE.
DNS response's rcode is something other than Sucess.
# Structs
A Client defines the settings for a DNS client: the tranport, and the query settings that are agnostic to the choice of transport.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
aggregation of SRV, TXT, and A/AAAA records.
# Interfaces
No description provided by the author