blob: 6e2384301a99d2463477145f1e11c445ed1626fa (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# rdns
Quickly look up reverse DNS names. One of them or lots of them.
Look them up by IPv4 address:
```sh
$ rdns 192.0.43.7
# 192.0.43.7
192.0.43.7 icann.org.
```
Look them up by IPv6 address:
```sh
$ rdns 2001:500:88:200::8
# 2001:500:88:200::8
2001:500:88:200::8 iana.org.
```
Look up ranges of them:
```sh
$ rdns 192.0.43.7/29
# 192.0.43.7/29
192.0.43.1 43-1.any.icann.org.
192.0.43.2 43-2.any.icann.org.
192.0.43.3 43-3.any.icann.org.
192.0.43.4 43-4.any.icann.org.
192.0.43.5 43-5.any.icann.org.
192.0.43.6 43-6.any.icann.org.
192.0.43.7 icann.org.
```
Look them up by forward name:
```sh
$ rdns arin.net
# arin.net
2001:500:4:c000::43 www.arin.net.
2001:500:4:c000::44 www.arin.net.
199.43.0.43 www.arin.net.
199.43.0.44 www.arin.net.
```
Look them up by all of the above at once:
```sh
$ rdns 192.0.43.7 2001:500:88:200::8 192.0.43.7/29 arin.net
# 192.0.43.7
192.0.43.7 icann.org.
# 2001:500:88:200::8
2001:500:88:200::8 iana.org.
# 192.0.43.7/29
192.0.43.1 43-1.any.icann.org.
192.0.43.2 43-2.any.icann.org.
192.0.43.3 43-3.any.icann.org.
192.0.43.4 43-4.any.icann.org.
192.0.43.5 43-5.any.icann.org.
192.0.43.6 43-6.any.icann.org.
192.0.43.7 icann.org.
# arin.net
2001:500:4:c000::43 www.arin.net.
2001:500:4:c000::44 www.arin.net.
199.43.0.43 www.arin.net.
199.43.0.44 www.arin.net.
```
## Installation
```sh
$ go get -u doof.net/cmd/rdns
```
Happy resolving.
|