You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-q, --querytype= DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY) (default: A)
70
70
-c, --queryclass= DNS record class type where TYPE =(IN, CS, CH, HS, NONE, ANY) (default: IN)
71
71
--norec Set not recursive mode
72
-
-a, --expected-address= IP-ADDRESS you expect the DNS server to return. If multiple addresses are returned at once, you have to match the whole string of addresses separated with commas
72
+
-a, --expected-address= IP-ADDRESS you expect the DNS server to return. If multiple addresses are returned at once, you have to specify whole string of addresses
Copy file name to clipboardExpand all lines: check-dns/lib/check_dns.go
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ import (
13
13
)
14
14
15
15
typednsOptsstruct {
16
-
Hoststring`short:"H" long:"host" required:"true" description:"The name or address you want to query"`
17
-
Serverstring`short:"s" long:"server" description:"DNS server you want to use for the lookup"`
18
-
Portint`short:"p" long:"port" default:"53" description:"Port number you want to use"`
19
-
QueryTypestring`short:"q" long:"querytype" default:"A" description:"DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY)"`
20
-
QueryClassstring`short:"c" long:"queryclass" default:"IN" description:"DNS record class type where TYPE =(IN, CS, CH, HS, NONE, ANY)"`
21
-
Norecbool`long:"norec" description:"Set not recursive mode"`
22
-
ExpectedAddressstring`short:"a" long:"expected-address" description:"IP-ADDRESS you expect the DNS server to return. If multiple addresses are returned at once, you have to match the whole string of addresses separated with commas"`
16
+
Hoststring`short:"H" long:"host" required:"true" description:"The name or address you want to query"`
17
+
Serverstring`short:"s" long:"server" description:"DNS server you want to use for the lookup"`
18
+
Portint`short:"p" long:"port" default:"53" description:"Port number you want to use"`
19
+
QueryTypestring`short:"q" long:"querytype" default:"A" description:"DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY)"`
20
+
QueryClassstring`short:"c" long:"queryclass" default:"IN" description:"DNS record class type where TYPE =(IN, CS, CH, HS, NONE, ANY)"`
21
+
Norecbool`long:"norec" description:"Set not recursive mode"`
22
+
ExpectedAddress[]string`short:"a" long:"expected-address" description:"IP-ADDRESS you expect the DNS server to return. If multiple addresses are returned at once, you have to specify whole string of addresses"`
0 commit comments