Skip to content

Commit ffc6589

Browse files
committed
Added examples
1 parent 32ea422 commit ffc6589

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
Reverse IP utility.
44

5-
Allows you to easily reverse IPs in your UNIX workflow for PTR or RBL
5+
Easily reverse IPs in your workflow, e.g. for PTR or RBL
66
lookups.
77

8-
## Example
8+
## IPv4 Example
99

1010
```bash
1111
iprev 185.143.223.168
@@ -17,4 +17,31 @@ Will produce
1717
168.223.143.185.
1818
```
1919

20+
## IPv6 Example
21+
22+
```bash
23+
iprev 2a02:790:1:d::100:164
24+
```
25+
26+
Will produce
27+
28+
```
29+
4.6.1.0.0.0.1.0.0.0.0.0.0.0.0.0.d.0.0.0.1.0.0.0.0.9.7.0.2.0.a.2.
30+
```
31+
32+
## RBL lookup example
33+
34+
Easily check popular blocklists for an IP.
35+
36+
```bash
37+
dig +noall +answer $(iprev 185.143.223.168)zen.spamhaus.org
38+
```
39+
40+
## PTR Lookup Example
41+
42+
Get the hostname from an IP address.
43+
44+
```bash
45+
dig +short PTR $(iprev 52.203.88.233)in-addr.arpa
46+
```
2047

0 commit comments

Comments
 (0)