dns
— make DNS requests
The dns
check makes a DNS request and checks the result.
Examples
Testing for an A
record value:
[[dns]] domain = 'millimeter.io' class = 'A' value = '159.65.215.200'
Testing for the lack of a value:
[[dns]] domain = 'secret.millimeter.io' class = 'SRV' state = 'missing'
Using a specific DNS nameserver:
[[dns]] domain = 'secret.millimeter.io' class = 'SRV' value = '192.168.34.43:8125' nameserver = '127.0.0.53'
List of parameters
parameter | structure | description |
---|---|---|
domain | string | The domain to send a query about. |
nameserver | string | Address of the DNS server to send requests to. |
state | string | The state of the record. This can be 'present' or 'missing' . |
type | string | The DNS record type to query for. |
value | string | The response IP address or value. |