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, CNAMEstringYes
exactreplyExpected exact match result(s)[]string
minrecordsMinimum recordsint
thresholdMillisThreshold response time from DNS serverint
timeoutTimeout in secondsint
*All other commons fieldCommon