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
This plugin incorporates material from third parties.
79
+
80
+
### miekg/dns
81
+
82
+
**source**: https://github.com/miekg/dns
64
83
65
84
```
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 specify whole string of addresses
73
-
```
85
+
BSD 3-Clause License
86
+
87
+
Copyright (c) 2009, The Go Authors. Extensions copyright (c) 2011, Miek Gieben.
88
+
All rights reserved.
74
89
75
-
## For more information
90
+
Redistribution and use in source and binary forms, with or without
91
+
modification, are permitted provided that the following conditions are met:
76
92
77
-
Please execute `check-dns -h` and you can get command line options.
93
+
1. Redistributions of source code must retain the above copyright notice, this
94
+
list of conditions and the following disclaimer.
95
+
96
+
2. Redistributions in binary form must reproduce the above copyright notice,
97
+
this list of conditions and the following disclaimer in the documentation
98
+
and/or other materials provided with the distribution.
99
+
100
+
3. Neither the name of the copyright holder nor the names of its
101
+
contributors may be used to endorse or promote products derived from
102
+
this software without specific prior written permission.
103
+
104
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
105
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
106
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
107
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
108
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
109
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
110
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
111
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
112
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
113
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copy file name to clipboardExpand all lines: check-dns/lib/check_dns.go
+42-22Lines changed: 42 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,17 @@ 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
-
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"`
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, TXT, MX, CNAME)"`
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
+
ExpectedString []string`short:"e" long:"expected-string" description:"The string you expect the DNS server to return. If multiple responses are returned at once, you have to specify whole string"`
0 commit comments