Whois.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Whois registry | dn42 wiki</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="robots" content="index, follow">
  8. <meta name="keywords" content="dn42,wiki,routing,bgp">
  9. <link rel="canonical" href="https://dn42.obl.ong/services/Whois.html">
  10. <link rel="icon" type="image/x-icon" href="/favicon.ico">
  11. <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
  12. <link rel="author" type="text/html" href="/docs/people">
  13. <link rel="stylesheet" href="/css/normalize.css">
  14. <link rel="stylesheet" href="/css/simple.min.css">
  15. <link rel="stylesheet" href="/css/style.css">
  16. <link rel="stylesheet" href="/css/menu.css">
  17. </head>
  18. <body>
  19. <header>
  20. <b>dn42 wiki / Whois registry</b>
  21. <div id="dn42_header">
  22. <p><a href="/"><img src="/dn42.png" alt="dn42" /></a></p>
  23. </div>
  24. </header>
  25. <main>
  26. <h1 id="whois-registry">Whois registry</h1>
  27. <p><strong>aka</strong> <em>The registry</em> contains:</p>
  28. <ul>
  29. <li>AS numbers assignations</li>
  30. <li>Subnet assignations</li>
  31. <li>DNS root zone for <code class="language-plaintext highlighter-rouge">dn42.</code></li>
  32. </ul>
  33. <p>The registry is a git repository, hosted here: <a href="https://git.dn42.dev/dn42/registry.git">https://git.dn42.dev/dn42/registry.git</a>, Changes to the registry are managed by submitting pull requests to the repository, these are then reviewed by the registry maintainers before acceptance.</p>
  34. <h1 id="names-and-numbers">Names and numbers</h1>
  35. <p>dn42 uses some names and numbers, which are declared in the registry. Whenever possible, we try to stick to names and numbers that do not conflict with the ICANN-net or other networks similar to dn42, for instance by using private numbers space.</p>
  36. <h2 id="address-space">Address space</h2>
  37. <p>dn42 uses <strong>172.20.0.0/14</strong> for IPv4.</p>
  38. <p>For IPv6, we use ULA (that is, <strong>fd00::/8</strong>).</p>
  39. <p>See also the howto page covering the <a href="/howto/Address-Space">DN42 address space</a>.</p>
  40. <h2 id="as-numbers">AS numbers</h2>
  41. <p>Since June 2014, dn42 is using the <strong>4242420000-4242429999</strong> ASN range for allocations. This range is further subdivided:</p>
  42. <ul>
  43. <li><strong>4242420000-4242423999</strong> for end-users allocations</li>
  44. <li><strong>4242424000-4242426999</strong> reserved for future use</li>
  45. <li><strong>4242427000-4242429999</strong> for sub-allocations</li>
  46. </ul>
  47. <p>If you are running a project similar to dn42, please use another range of ASN. The “sub-allocations” range is meant for dn42 users willing to have administrative control over a small, consecutive range of ASN (e.g. to use them directly or to distribute them).</p>
  48. <p>Note that currently, most AS are using one of the legacy ASN range (and will probably continue to do so, as renumbering is painful). See the <a href="/FAQ#frequently-asked-questions_why-are-you-using-asn-in-the-76100-76199-range">FAQ</a> for a discussion on AS ranges.</p>
  49. <h2 id="dns-zones">DNS zones</h2>
  50. <p>dn42 uses the <code class="language-plaintext highlighter-rouge">dn42.</code> TLD, which is not present in the root DNS zone of the ICANN-net. For details, see <a href="/services/DNS">DNS</a>.</p>
  51. <p>Note that other TLDs should also be usable from dn42, most notably from Freifunk and ChaosVPN. A tentative list is available at <a href="/services/dns/External-DNS">External DNS</a>.</p>
  52. <h1 id="drone-cicd">Drone CI/CD</h1>
  53. <p>The gitea instance hosting the registry has an associated <a href="https://drone.io/">Drone CI/CD</a> service:</p>
  54. <ul>
  55. <li><a href="https://drone.git.dn42/">https://drone.git.dn42/</a></li>
  56. </ul>
  57. <p>Users are free to add drone pipelines to their own repositories. Repositories can be enabled using the Drone server <a href="https://drone.git.dn42/">user interface</a>.</p>
  58. <h1 id="telegram-bot">Telegram Bot</h1>
  59. <p>A telegram whois bot owned by <a href="https://t.me/oxygen233">@Oxygen233</a> is hosted on <a href="https://t.me/DN42WhoisBot">@DN42WhoisBot</a>.</p>
  60. <p>Privacy mode is enabled, please call the bot with @DN42WhoisBot when necessary.</p>
  61. <h1 id="web-interface-and-rest-api">Web interface and REST API</h1>
  62. <p><a href="https://explorer.burble.dn42/">https://explorer.burble.dn42/</a> (<a href="https://explorer.burble.com/">https://explorer.burble.com/</a> via clearnet) provides a web interface and REST API for querying the DN42 registry.</p>
  63. <p>The service is provided by <a href="https://git.burble.com/burble.dn42/dn42regsrv">dn42regsrv</a> which can also be run locally.</p>
  64. <h2 id="authentication">Authentication</h2>
  65. <p>See the page on <a href="/howto/Registry-Authentication">Registry Authentication</a></p>
  66. <h1 id="dns-interface">DNS interface</h1>
  67. <p>There is also a DNS-based interface to query AS information from the registry. The DNS zone is <code class="language-plaintext highlighter-rouge">asn.dn42</code>.
  68. Mirrors are hosted at <code class="language-plaintext highlighter-rouge">asn.grmml.dn42</code> and <code class="language-plaintext highlighter-rouge">asn.lorkep.dn42</code>.</p>
  69. <p>Example:</p>
  70. <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>dig +short AS4242420000.asn.dn42 TXT
  71. <span class="s2">"4242420000 | DN42 | dn42 | | PYROPETER-AS PyroPeters AS"</span>
  72. </code></pre></div></div>
  73. <p>The Python code for generating the zone from the registry is available on the monotone repository.</p>
  74. <p>An alternative version to query the registry is it <code class="language-plaintext highlighter-rouge">ip.catgirls.dn42</code> (IPv6 only) (Source code <a href="https://git.catgirls.systems/famfo/ipinfo">https://git.catgirls.systems/famfo/ipinfo</a>). Note: if there is no <code class="language-plaintext highlighter-rouge">route</code>/<code class="language-plaintext highlighter-rouge">route6</code> object for the <code class="language-plaintext highlighter-rouge">inetnum</code>/<code class="language-plaintext highlighter-rouge">inet6num</code>, the ip address will not be found.</p>
  75. <p>This can be used together with <code class="language-plaintext highlighter-rouge">mtr</code> using the <code class="language-plaintext highlighter-rouge">--ipinfo_provider4</code> and <code class="language-plaintext highlighter-rouge">--ipinfo_provider6</code> flags (mtr has to be build from source for that, there hasn’t been a release in a while).</p>
  76. <p>Example:</p>
  77. <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>dig +short TXT as4242421411.ip.catgirls.dn42
  78. <span class="s2">"4242421411 | C4TG1RL5-MNT | 172.20.0.81/32 | 172.23.196.32/27 | 172.20.0.80/32 | fd42:d42:d42:2080::/64 | fd42:deca:fbad::/48 | fd42:d42:d42:81::/64"</span>
  79. <span class="nv">$ </span>dig +short TXT 32.196.23.172.ip.catgirls.dn42
  80. <span class="s2">"4242421411 | C4TG1RL5-MNT | 172.20.0.81/32 | 172.23.196.32/27 | 172.20.0.80/32 | fd42:d42:d42:2080::/64 | fd42:deca:fbad::/48 | fd42:d42:d42:81::/64"</span>
  81. <span class="nv">$ </span>dig +short TXT 1.d.a.b.f.a.c.e.d.2.4.d.f.ip.catgirls.dn42
  82. <span class="s2">"4242421411 | C4TG1RL5-MNT | 172.20.0.81/32 | 172.23.196.32/27 | 172.20.0.80/32 | fd42:d42:d42:2080::/64 | fd42:deca:fbad::/48 | fd42:d42:d42:81::/64"</span>
  83. </code></pre></div></div>
  84. <p>The idea comes from the guys at cymru.com, who provide this service for the Internet (e.g. <code class="language-plaintext highlighter-rouge">AS1.asn.cymru.com</code>), see <a href="https://www.team-cymru.org/Services/ip-to-asn.html#dns">https://www.team-cymru.org/Services/ip-to-asn.html#dns</a></p>
  85. <h1 id="software">Software</h1>
  86. <ul>
  87. <li><a href="/howto/lglass">lglass</a> is a python implementation for working with the registry. It features a whois server, tools to manipulate the data (DNS zone generation, etc).</li>
  88. <li><a href="https://git.dn42.dev/registry/whois42d">whois42d</a> written in golang, lightweight/fast, whois server with support for all registry objects, type filtering and systemd socket activation.</li>
  89. <li><a href="https://git.dn42.dev/C4TG1RL5/who42rs">who42rs</a> a reimplementation of whois42d written in Rust</li>
  90. </ul>
  91. <h1 id="whois-daemons">Whois daemons</h1>
  92. <p>We have anycast IPv4 and IPv6, both reachable under whois.dn42. IPs are 172.22.0.43 respective fd42:d42:d42:43::1. Please consider joining these anycast-adresses when you setup your server. Updates every 1 hour would be nice for a start.</p>
  93. <table>
  94. <thead>
  95. <tr>
  96. <th><strong>person</strong></th>
  97. <th><strong>dns</strong></th>
  98. <th><strong>ip</strong></th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <tr>
  103. <td>org-cccda</td>
  104. <td>whois.cda.dn42</td>
  105. <td>172.23.96.1 / fd42:23:cda::1</td>
  106. </tr>
  107. <tr>
  108. <td>StrExp / NIA</td>
  109. <td>whois.nia.dn42</td>
  110. <td>fd00:1926:817:43::1</td>
  111. </tr>
  112. <tr>
  113. <td>Lan Tian</td>
  114. <td>whois.lantian.dn42</td>
  115. <td>172.22.76.108 / fdbc:f9dc:67ad:2547::43</td>
  116. </tr>
  117. <tr>
  118. <td>burble</td>
  119. <td>whois.burble.dn42</td>
  120. <td>172.20.129.8 / fd42:4242:2601:ac43::1</td>
  121. </tr>
  122. <tr>
  123. <td>p3bk4c</td>
  124. <td>whois.pebkac.dn42</td>
  125. <td>172.21.83.27 / fd63:672f:38e7:27::1</td>
  126. </tr>
  127. <tr>
  128. <td>scooter</td>
  129. <td>whois.scooter.dn42</td>
  130. <td>172.23.109.170 / fd38:cfa3:7091:2::1</td>
  131. </tr>
  132. <tr>
  133. <td>C4TG1RL5</td>
  134. <td>whois.catgirls.dn42</td>
  135. <td>172.23.196.33 / fd42:deca:fbad::1</td>
  136. </tr>
  137. <tr>
  138. <td>Bandura</td>
  139. <td>whois.bandura.dn42</td>
  140. <td>172.22.149.225 / fd04:234e:fc31::1 (may change in the future)</td>
  141. </tr>
  142. <tr>
  143. <td>SUNNET</td>
  144. <td>whois.sun.dn42</td>
  145. <td>172.21.100.253 / fdc8:dc88:ee11:253::1</td>
  146. </tr>
  147. </tbody>
  148. </table>
  149. <h2 id="down">Down?</h2>
  150. <table>
  151. <thead>
  152. <tr>
  153. <th><strong>person</strong></th>
  154. <th><strong>dns</strong></th>
  155. <th><strong>ip</strong></th>
  156. </tr>
  157. </thead>
  158. <tbody>
  159. <tr>
  160. <td>welterde</td>
  161. <td>thinkbase.srv.welterde.de</td>
  162. <td>46.4.248.201</td>
  163. </tr>
  164. <tr>
  165. <td>prauscher</td>
  166. <td>sheldon.prauscher.dn42</td>
  167. <td>172.22.120.1</td>
  168. </tr>
  169. <tr>
  170. <td>w0h</td>
  171. <td>whois.w0h.dn42</td>
  172. <td>172.22.232.6 / fd2d:a6da:8d1a:1408::6</td>
  173. </tr>
  174. <tr>
  175. <td>Mic92</td>
  176. <td>whois.evenet.dn42 (<a href="https://git.dn42.dev/registry/whois42d">whois42d</a>)</td>
  177. <td>172.23.75.1 / fd42:4992:6a6d::6</td>
  178. </tr>
  179. <tr>
  180. <td>Fritz</td>
  181. <td>whois.flhb.de</td>
  182. <td>172.22.70.69 / 2001:67c:708:102:5054:ff:fe57:9573 / fdd6:aff6:5f6f:102:5054:ff:fe57:9573</td>
  183. </tr>
  184. <tr>
  185. <td>weiti</td>
  186. <td>whois.weiti.dn42</td>
  187. <td>172.20.175.253 / fdf7:17d5:de49::43</td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. <h2 id="usage">Usage</h2>
  192. <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>whois <span class="nt">-h</span> <span class="nv">$host</span> <span class="nv">$query</span>
  193. </code></pre></div></div>
  194. <h2 id="using-a-whois-config">Using a whois config</h2>
  195. <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">cat</span> /etc/whois.conf
  196. <span class="se">\.</span>dn42<span class="nv">$ </span> whois.dn42
  197. <span class="se">\-</span>DN42<span class="nv">$ </span> whois.dn42
  198. <span class="c"># dn42 range 64512-65534</span>
  199. ^as6<span class="o">(</span>4<span class="o">(</span>5<span class="o">(</span>1[2-9]|[2-9][0-9]<span class="o">)</span>|[6-9][0-9]<span class="o">{</span>2<span class="o">})</span>|5<span class="o">([</span>0-4][0-9]<span class="o">{</span>2<span class="o">}</span>|5<span class="o">([</span>0-2][0-9]|3[0-4]<span class="o">)))</span><span class="nv">$ </span>whois.dn42
  200. <span class="c"># dn42 range 76100-76199</span>
  201. ^as761[0-9][0-9]<span class="nv">$ </span> whois.dn42
  202. <span class="c"># dn42 range 4242420000-4242429999</span>
  203. ^as424242[0-9]<span class="o">{</span>4<span class="o">}</span><span class="nv">$ </span>whois.dn42
  204. <span class="c"># NeoNetwork range</span>
  205. ^as420127[0-9]<span class="o">{</span>4<span class="o">}</span><span class="nv">$ </span>whois.bandura.dn42
  206. <span class="c"># dn42 ipv4 address space</span>
  207. ^172<span class="se">\.</span>2[0-3]<span class="se">\.</span><span class="o">[</span>0-9]<span class="o">{</span>1,3<span class="o">}</span><span class="se">\.</span><span class="o">[</span>0-9]<span class="o">{</span>1,3<span class="o">}(</span>/<span class="o">(</span>1[56789]|2[0-9]|3[012]<span class="o">))</span>?<span class="nv">$ </span>whois.dn42
  208. <span class="c"># dn42 ula ipv6 address space</span>
  209. ^fd<span class="k">**</span>:<span class="k">****</span>:<span class="k">****</span>:<span class="k">****</span>:<span class="k">****</span>:<span class="k">****</span>:<span class="k">****</span>:<span class="k">****</span> whois.dn42
  210. </code></pre></div></div>
  211. <p>You can then use whois without specifying the server. Works at least with Marco d’Itri’s whois client.</p>
  212. <h2 id="running-your-own-whoisd">Running your own whoisd</h2>
  213. <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> /home/some/path/to/store/branch
  214. <span class="nb">sudo </span>aptitude <span class="nb">install </span>ruby rubygems
  215. <span class="nb">sudo </span>gem <span class="nb">install </span>netaddr
  216. <span class="nb">cd </span>whoisd/ruby
  217. <span class="nb">sudo </span>ruby whoisd.rb nobody
  218. </code></pre></div></div>
  219. <h2 id="whois-restful-api">Whois restful API</h2>
  220. <p>Note: this service is in beta testing, use at your own risk.
  221. <a href="https://whois.rest.dn42/">https://whois.rest.dn42/</a></p>
  222. <div id="menu-container" class="menu-container">
  223. <hr>
  224. <div id="menu" class="menu">
  225. <ul>
  226. <li><a href="/Home">Home</a>
  227. <ul>
  228. <li><a href="/howto/Getting-Started">Getting Started</a></li>
  229. <li><a href="/howto/Registry-Authentication">Registry Authentication</a></li>
  230. <li><a href="/howto/Address-Space">Address Space</a></li>
  231. <li><a href="/howto/BGP-communities">BGP communities</a></li>
  232. <li><a href="/FAQ">FAQ</a></li>
  233. </ul>
  234. </li>
  235. <li>How-To
  236. <ul>
  237. <li><a href="/howto/wireguard">Wireguard</a></li>
  238. <li><a href="/howto/openvpn">Openvpn</a></li>
  239. <li><a href="/howto/IPsec-with-PublicKeys">IPsec With Public Keys</a></li>
  240. <li><a href="/howto/tinc">Tinc</a></li>
  241. <li><a href="/howto/GRE-on-FreeBSD">GRE on FreeBSD</a></li>
  242. <li><a href="/howto/GRE-on-OpenBSD">GRE on OpenBSD</a></li>
  243. <li><a href="/howto/IPv6-Multicast">IPv6 Multicast (PIM-SM)</a></li>
  244. <li><a href="/howto/multicast">SSM Multicast</a></li>
  245. <li><a href="/howto/mpls">MPLS</a></li>
  246. <li><a href="/howto/Bird2">Bird2</a></li>
  247. <li><a href="/howto/frr">FRRouting</a></li>
  248. <li><a href="/howto/OpenBGPD">OpenBGPD</a></li>
  249. <li><a href="/howto/mikrotik">Mikrotik RouterOS</a></li>
  250. <li><a href="/howto/EdgeOS-Config">EdgeRouter</a></li>
  251. <li><a href="/howto/Static-routes-on-Windows">Static routes on Windows</a></li>
  252. <li><a href="/howto/networksettings">Universal Network Requirements</a></li>
  253. <li><a href="/howto/vyos1.4.x">VyOS</a></li>
  254. <li><a href="/howto/nixos">NixOS</a></li>
  255. </ul>
  256. </li>
  257. <li>Services
  258. <ul>
  259. <li><a href="/services/IRC">IRC</a></li>
  260. <li><a href="/services/Whois">Whois registry</a></li>
  261. <li><a href="/services/DNS">DNS</a></li>
  262. <li><a href="/services/IX-Collection">IX Collection</a></li>
  263. <li><a href="/services/Clearnet-Domains">Public DNS</a></li>
  264. <li><a href="/services/Looking-Glasses">Looking Glasses</a></li>
  265. <li><a href="/services/Automatic-Peering">Automatic Peering</a></li>
  266. <li><a href="/services/Repository-Mirrors">Repository Mirrors</a></li>
  267. <li><a href="/services/Distributed-Wiki">Distributed Wiki</a></li>
  268. <li><a href="/services/Certificate-Authority">Certificate Authority</a></li>
  269. <li><a href="/services/Route-Collector">Route Collector</a></li>
  270. </ul>
  271. </li>
  272. <li>Internal
  273. <ul>
  274. <li><a href="/internal/Internal-Services">Internal services</a></li>
  275. <li><a href="/internal/Interconnections">Interconnections</a></li>
  276. <li><a href="/internal/APIs">APIs</a></li>
  277. <li><a href="/internal/ShowAndTell">Show and Tell</a></li>
  278. <li><a href="/internal/Historical-Services">Historical services</a></li>
  279. </ul>
  280. </li>
  281. <li>Historical
  282. <ul>
  283. <li><a href="/historical/Bird">Bird 1</a></li>
  284. <li><a href="/historical/Quagga">Quagga</a></li>
  285. </ul>
  286. </li>
  287. <li>External Tools
  288. <ul>
  289. <li><a href="https://paste.dn42.us">Paste Board</a></li>
  290. <li><a href="https://git.dn42.dev">Git Repositories</a></li>
  291. </ul>
  292. </li>
  293. </ul>
  294. <hr />
  295. </div>
  296. </div>
  297. </main>
  298. <footer><div class="center">
  299. <div id="dn42_footer">
  300. <table>
  301. <tbody>
  302. <tr>
  303. <td>Hosted by: <a href="mailto:dn42@burble.com">BURBLE-MNT</a>, <a href="mailto:nurtic-vibe@grmml.net">GRMML-MNT</a>, <a href="mailto:xuu@dn42.us">XUU-MNT</a>, <a href="mailto:janeric@ortgies.it">JAN-MNT</a>, <a href="mailto:lare@lare.cc">LARE-MNT</a>, <a href="mailto:danny@saru.moe">SARU-MNT</a>, <a href="mailto:androw95220@gmail.com">ANDROW-MNT</a>, <a href="mailto:dn42@mk16.de">MARK22K-MNT</a></td>
  304. <td>Accessible via: <a href="https://wiki.dn42">dn42</a>, <a href="https://dn42.dev/">dn42.dev</a>, <a href="https://dn42.eu/">dn42.eu</a>, <a href="https://wiki.dn42.us/">wiki.dn42.us</a>, <a href="https://dn42.de/">dn42.de</a> (IPv6-only), <a href="https://dn42.cc/">dn42.cc</a> (wiki-ng), <a href="https://dn42.wiki/">dn42.wiki</a>, <a href="https://dn42.pp.ua/">dn42.pp.ua</a>, <a href="https://dn42.obl.ong/">dn42.obl.ong</a></td>
  305. </tr>
  306. </tbody>
  307. </table>
  308. </div>
  309. </div>
  310. </footer>
  311. </body>
  312. </html>