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
Copy file name to clipboardExpand all lines: README.md
+14-4
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,12 @@ Providers must be listed in a file, one line should be one provider.
8
8
Empty lines are ignored.
9
9
Lines started with `#` are ignored.
10
10
11
-
The file name must be passed with the `-p` parameter to the command.
11
+
The file name must be passed with the `-p` parameter to the command or `-` for standard input.
12
12
13
13
## Addresses
14
14
15
15
IP addresses or domain names which needs to be tested against the providers.
16
-
The addresses must be passed with the `-i` parameter to the command. Multipla address can be listed, separate them by comma (`,`).
16
+
The addresses must be passed with the `-i` parameter to the command. Multiple address can be listed, separate them by comma (`,`).
17
17
18
18
## Build
19
19
@@ -23,10 +23,20 @@ go build
23
23
24
24
## Execute
25
25
26
+
Variations for the same operation:
27
+
26
28
```sh
27
29
./dnsbl-check -i 1.2.3.4 -p providers
28
30
```
29
31
32
+
```sh
33
+
./dnsbl-check -i 1.2.3.4 -p - < providers
34
+
```
35
+
36
+
```
37
+
cat providers | ./dnsbl-check -i 1.2.3.4 -p -
38
+
```
39
+
30
40
## Output
31
41
32
42
The program returns every result in a new line, fields are separated by TAB character `\t`.
@@ -37,7 +47,7 @@ The line starts with the status: `OK` or `FAIL` or `ERR`
37
47
-`ERR` returned if the address lookup failed
38
48
Second field is the address
39
49
Third field is the provider
40
-
Fourth field is filled only if the statis is either `FAIL` or `ERR`. If the status is `FAIL` and no reason returned from te provider, the `unknown reason` text will be shown. If the status is `ERR` the error message will be shown here.
50
+
Fourth field is filled only if the status is either `FAIL` or `ERR`. If the status is `FAIL` and no reason returned from te provider, the `unknown reason` text will be shown. If the status is `ERR` the error message will be shown here.
0 commit comments