File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,12 +6,7 @@ UNKNOWN=2
66
77readonly local_dns_resolver_ip=" $1 "
88
9- # CHAOS class request for a TXT record "id.server." (typically used for
10- # identification of DNS software). We send a single attempt only, without
11- # retries and with 33s timeout - CoreDNS forward plugin internally defaults to
12- # 30s dial time and 2s read timeout - this way we ensure to leave enough time
13- # for CoreDNS forward plugin to respond with _something_.
14- dig_cmd_out=" $( dig -c CH -t TXT @" ${local_dns_resolver_ip} " +tries=1 +retry=0 +time=33 +norecurse +noall +noqr +comments id.server. 2>&1 ) "
9+ dig_cmd_out=" $( dig -t TXT @" ${local_dns_resolver_ip} " +tries=1 +retry=0 +time=33 +noqr +noall +comments kubernetes.default.svc. 2>&1 ) "
1510dig_cmd_return_code=" $? "
1611dig_cmd_response_status=" $( echo " ${dig_cmd_out} " | grep HEADER | sed -e ' s/^.* status: \(\w\w*\).*$/\1/' ) "
1712
You can’t perform that action at this time.
0 commit comments