We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c2e009 commit 5ef74aeCopy full SHA for 5ef74ae
check-dns/lib/check_dns.go
@@ -90,7 +90,8 @@ func (opts *dnsOpts) run() *checkers.Checker {
90
match := 0
91
for _, v := range opts.ExpectedAddress {
92
for _, answer := range r.Answer {
93
- if strings.Contains(answer.String(), strings.TrimSpace(v)) {
+ // strings.Split(answer.String(), "\t") is formatted as [a.root-servers.net. 328177 IN A 198.41.0.4]
94
+ if strings.Split(answer.String(), "\t")[4] == strings.TrimSpace(v) {
95
match += 1
96
}
97
0 commit comments