Documentation
¶
Overview ¶
Package dns provides utilities for DNS tests.
Index ¶
- Constants
- Variables
- func DigMatch(ctx context.Context, re *regexp.Regexp, match bool) error
- func GetClientString(c Client) string
- func InstallDigInContainer(ctx context.Context, cont *vm.Container) error
- func QueryDNS(ctx context.Context, c Client, a *arc.ARC, cont *vm.Container, domain string) error
- func SetDoHMode(ctx context.Context, cr *chrome.Chrome, tconn *chrome.TestConn, mode DoHMode, ...) error
- func TestQueryDNSProxy(ctx context.Context, tcs []ProxyTestCase, a *arc.ARC, cont *vm.Container, ...) []error
- type Client
- type DoHMode
- type ProxyTestCase
Constants ¶
View Source
const GoogleDoHProvider = "https://dns.google/dns-query"
GoogleDoHProvider is the Google DNS-over-HTTPS provider.
Variables ¶
View Source
var DigProxyIPRE = regexp.MustCompile(`SERVER: 100.115.92.\d+#53`)
DigProxyIPRE is the regular expressions for DNS proxy IP inside dig output.
Functions ¶
func DigMatch ¶
DigMatch runs dig to check name resolution works and verifies the expected server was used.
func GetClientString ¶
GetClientString get the string representation of a DNS client.
func InstallDigInContainer ¶
InstallDigInContainer installs dig in container.
Types ¶
type ProxyTestCase ¶
ProxyTestCase contains test case for DNS proxy tests.
Click to show internal directories.
Click to hide internal directories.