services/Whois.md
... ...
@@ -82,24 +82,27 @@ We have anycast IPv4 and IPv6, both reachable under whois.dn42. IPs are 172.22.0
82 82
```sh
83 83
whois -h $host $query
84 84
```
85
+
85 86
### Using a whois config
87
+
86 88
```sh
87 89
$ cat /etc/whois.conf
88
-\.dn42$ 172.22.177.77
89
-\-DN42$ 172.22.177.77
90
+\.dn42$ whois.dn42
91
+\-DN42$ whois.dn42
90 92
# dn42 range 64512-65534
91
-^as6(4(5(1[2-9]|[2-9][0-9])|[6-9][0-9]{2})|5([0-4][0-9]{2}|5([0-2][0-9]|3[0-4])))$ 172.22.177.77
93
+^as6(4(5(1[2-9]|[2-9][0-9])|[6-9][0-9]{2})|5([0-4][0-9]{2}|5([0-2][0-9]|3[0-4])))$ whois.dn42
92 94
# dn42 range 76100-76199
93
-^as761[0-9][0-9]$ 172.22.177.77
95
+^as761[0-9][0-9]$ whois.dn42
94 96
# dn42 range 4242420000-4242429999
95
-^as424242[0-9]{4}$ 172.22.177.77
97
+^as424242[0-9]{4}$ whois.dn42
96 98
# dn42 ipv4 address space
97
-^172\.2[2-3]\.[0-9]{1,3}\.[0-9]{1,3}(/(1[56789]|2[0-9]|3[012]))?$ 172.22.177.77
99
+^172\.2[2-3]\.[0-9]{1,3}\.[0-9]{1,3}(/(1[56789]|2[0-9]|3[012]))?$ whois.dn42
98 100
99 101
# dn42 ula ipv6 address space
100
-fd**:****:****:****:****:****:****:**** 172.22.177.77
102
+fd**:****:****:****:****:****:****:**** whois.dn42
101 103
102 104
```
105
+
103 106
You can then use whois without specifying the server. Works at least with Marco d'Itri's whois client.
104 107
105 108
### Running your own whoisd