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
-s, --server= DNS server you want to use for the lookup
47
-
-p, --port= Port number you want to use (default: 53)
48
-
-q, --querytype= DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY) (default: A)
49
-
-c, --queryclass= DNS record class type where TYPE =(IN, CS, CH, HS, NONE, ANY) (default: IN)
50
-
--norec Set not recursive mode
66
+
-H, --host= The name or address you want to query
67
+
-s, --server= DNS server you want to use for the lookup
68
+
-p, --port= Port number you want to use (default: 53)
69
+
-q, --querytype= DNS record query type where TYPE =(A, AAAA, SRV, TXT, MX, ANY) (default: A)
70
+
-c, --queryclass= DNS record class type where TYPE =(IN, CS, CH, HS, NONE, ANY) (default: IN)
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
Copy file name to clipboardExpand all lines: check-dns/lib/check_dns.go
+42-6Lines changed: 42 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,12 +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"`
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"`
0 commit comments