Skip to content

Commit c645ee1

Browse files
authored
Merge pull request #16 from uswitch/node-local-dns-test
change node-local-dns test from using chaos class
2 parents 420ffc5 + 3bc393b commit c645ee1

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

config/plugin/local_dns_resolver.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ UNKNOWN=2
66

77
readonly 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)"
1510
dig_cmd_return_code="$?"
1611
dig_cmd_response_status="$(echo "${dig_cmd_out}" | grep HEADER | sed -e 's/^.* status: \(\w\w*\).*$/\1/')"
1712

0 commit comments

Comments
 (0)