Skip to content

Commit

Permalink
Simplify the dnscheck list (#1656)
Browse files Browse the repository at this point in the history
Trim down the dnscheck list.

Keep only 2 addresses per providers (http3 enabled and not), since
measuring the ads or malware blocking endpoints is less important (we
only query example.com). The main difference for the malware blocking
endpoints would be that the SNI is different, but we can probably
generate similar telemetry without doing a full DoH measurement.

---------

Co-authored-by: decfox <[email protected]>
  • Loading branch information
hellais and DecFox authored Nov 21, 2024
1 parent 051ab4a commit d078e1a
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions internal/experiment/dnscheck/richerinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,111 @@ func (tl *targetLoader) Load(ctx context.Context) ([]model.ExperimentTarget, err
}

var defaultInput = []model.ExperimentTarget{
//
// https://dns.google/dns-query
//
// Measure HTTP/3 first and then HTTP/2 (see https://github.com/ooni/probe/issues/2675).
//
// Make sure we include the typical IP addresses for the domain.
//
&Target{
URL: "https://dns.google/dns-query",
Config: &Config{
HTTP3Enabled: true,
DefaultAddrs: "8.8.8.8 8.8.4.4",
},
},
&Target{
URL: "https://dns.google/dns-query",
Config: &Config{
DefaultAddrs: "8.8.8.8 8.8.4.4",
},
},
&Target{
URL: "https://cloudflare-dns.com/dns-query",
Config: &Config{
HTTP3Enabled: true,
DefaultAddrs: "1.1.1.1 1.0.0.1",
},
},
&Target{
URL: "https://cloudflare-dns.com/dns-query",
Config: &Config{
DefaultAddrs: "1.1.1.1 1.0.0.1",
},
},
&Target{
URL: "https://dns.quad9.net/dns-query",
Config: &Config{
HTTP3Enabled: true,
DefaultAddrs: "9.9.9.9",
},
},
&Target{
URL: "https://dns.quad9.net/dns-query",
Config: &Config{
DefaultAddrs: "9.9.9.9",
},
},
&Target{
URL: "https://dns.adguard.com/dns-query",
Config: &Config{
HTTP3Enabled: true,
},
},
&Target{
URL: "https://dns.adguard.com/dns-query",
Config: &Config{},
},
&Target{
URL: "https://dns.alidns.com/dns-query",
Config: &Config{
HTTP3Enabled: true,
},
},
&Target{
URL: "https://dns.alidns.com/dns-query",
Config: &Config{},
},
&Target{
URL: "https://doh.opendns.com/dns-query",
Config: &Config{
HTTP3Enabled: true,
},
},
&Target{
URL: "https://doh.opendns.com/dns-query",
Config: &Config{},
},
&Target{
URL: "https://dns.nextdns.io/dns-query",
Config: &Config{
HTTP3Enabled: true,
},
},
&Target{
URL: "https://dns.nextdns.io/dns-query",
Config: &Config{},
},

&Target{
URL: "https://dns.switch.ch/dns-query",
Config: &Config{
HTTP3Enabled: true,
},
},
&Target{
URL: "https://dns.switch.ch/dns-query",
Config: &Config{},
},
}

// extendedInput is an extended input target list for dnscheck.
// TODO(decfox): we should have a flag to return the extended list in special cases
// while using the default list for normal runs.
//
//lint:ignore U1000 ignore unused var
var extendedInput = []model.ExperimentTarget{
//
// https://dns.google/dns-query
//
Expand Down

0 comments on commit d078e1a

Please sign in to comment.