Adding accept_cname to dns command definition.

This commit is contained in:
Petr Ruzicka 2017-06-08 16:45:26 +02:00
parent 2dc82138e3
commit 1e1beb8454
2 changed files with 6 additions and 0 deletions

View File

@ -325,6 +325,7 @@ dns_server | **Optional.** The DNS server to query. Defaults to the se
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.

View File

@ -1565,6 +1565,11 @@ object CheckCommand "dns" {
}
"-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$"