Skip to main content

DNS

Performs queries to a DNS server, typical use cases include:

  • Checking the latency of the DNS server in a Kubernetes cluster
  • Verifying that there are serving records for a DNS based load balancer.
dns-check.yaml
apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: dns-check
spec:
interval: 30
dns:
- name: A record query
server: 8.8.8.8
port: 53
query: "1.2.3.4.nip.io"
querytype: "A"
minrecords: 1
exactreply: ["1.2.3.4"]
timeout: 10
thresholdMillis: 1000
FieldDescriptionSchemeRequired
serverAddress of DNS server to query e.g. 8.8.8.8stringYes
portPort to query DNS server on, e.g. 53intYes
queryDomain name to lookupstringYes
querytypeRecord type to query e.g. A, CNAME, TXT, SRVstringYes
exactreplyExpected exact match result(s)[]string
minrecordsMinimum recordsint
thresholdMillisThreshold response time from DNS serverint
timeoutTimeout in secondsint
nameName of the check, must be unique within the canarystringYes
descriptionDescription for the checkstring
iconIcon for overwriting default icon on the dashboardstring
labelsLabels for checkmap[string]string
testEvaluate whether a check is healthyExpression
displayExpression to change the formatting of the displayExpression
transformTransform data from a check into multiple individual checksExpression
metricsMetrics to export from[]Metrics