Skip to content

Commit 548faa5

Browse files
committed
Merge branch 'master' of github.com:Ajnasz/dnsbl-check
2 parents 704a88b + dbdd005 commit 548faa5

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Providers must be listed in a file, one line should be one provider.
88
Empty lines are ignored.
99
Lines started with `#` are ignored.
1010

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.
1212

1313
## Addresses
1414

1515
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 (`,`).
1717

1818
## Build
1919

@@ -23,10 +23,20 @@ go build
2323

2424
## Execute
2525

26+
Variations for the same operation:
27+
2628
```sh
2729
./dnsbl-check -i 1.2.3.4 -p providers
2830
```
2931

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+
3040
## Output
3141

3242
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`
3747
- `ERR` returned if the address lookup failed
3848
Second field is the address
3949
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.
4151

4252
```
4353
OK 127.0.0.2 dyn.rbl.polspam.pl
@@ -76,7 +86,7 @@ awk '$5 == "b" && $2 == "ipv4" && $1 != "(hidden)" { print $1 }' < providers | \
7686
./dnsbl-check -p - -i 1.2.3.4
7787
```
7888

79-
However it's recommended to keep the used provider list separetly, to save the resources of the providers.
89+
However it's recommended to keep the used provider list separately, to save the resources of the providers.
8090

8191
### Domain providers:
8292

0 commit comments

Comments
 (0)