dns_query_type | **Optional.** The DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY). The default query type is 'A' (IPv4 host entry)
dns_expected_answers | **Optional.** The answer(s) to look for. A hostname must end with a dot. Multiple answers must be defined as array.
dns_authoritative | **Optional.** Expect the server to send an authoritative answer.
+dns_accept_cname | **Optional.** Accept cname responses as a valid result to a query.
dns_wtime | **Optional.** Return warning if elapsed time exceeds value.
dns_ctime | **Optional.** Return critical if elapsed time exceeds value.
dns_timeout | **Optional.** Seconds before connection times out. Defaults to 10.
}
"-A" = {
set_if = "$dns_authoritative$"
+ description = "Optionally expect the DNS server to be authoritative for the lookup"
+ }
+ "-n" = {
+ set_if = "$dns_accept_cname$"
+ description = "Optionally accept cname responses as a valid result to a query. The default is to ignore cname responses as part of the result"
}
"-w" = {
value = "$dns_wtime$"