dns

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dns reports whether DNS answers matches expected records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// The nameserver attribute should contain the host:port of the nameserver to query
	Nameserver string `hcl:"nameserver"`
	// The name attribute must be a FQDN (including the terminal . such as walzberg.fr.) to query records for.
	Name string `hcl:"name"`
	// The record_type attribute must be one of the following supported record types: A, AAAA, TXT, MX, CNAME, CAA.
	RecordType string `hcl:"record_type"`
	// The expected_values attribute is a list of expected response values from the nameserver.
	ExpectedValues []string `hcl:"expected_values"`
	// The expect_all_values attribute will, when set to true, ensure that the nameserver returned all the expected values (and not just one of them).
	ExpectAllValues bool `hcl:"expect_all_values"`
}

Config for the dns probe: it queries a DNS nameserver for the specified name and type of record, and compares the response to a set of provided expected values.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL