123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Whois registry | dn42 wiki</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="robots" content="index, follow">
- <meta name="keywords" content="dn42,wiki,routing,bgp">
- <link rel="canonical" href="https://dn42.obl.ong/services/Whois.html">
- <link rel="icon" type="image/x-icon" href="/favicon.ico">
- <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
- <link rel="author" type="text/html" href="/docs/people">
- <link rel="stylesheet" href="/css/normalize.css">
- <link rel="stylesheet" href="/css/simple.min.css">
- <link rel="stylesheet" href="/css/style.css">
- <link rel="stylesheet" href="/css/menu.css">
- </head>
-
- <body>
- <header>
- <b>dn42 wiki / Whois registry</b>
- <div id="dn42_header">
-
- <p><a href="/"><img src="/dn42.png" alt="dn42" /></a></p>
- </div>
- </header>
- <main>
- <h1 id="whois-registry">Whois registry</h1>
- <p><strong>aka</strong> <em>The registry</em> contains:</p>
- <ul>
- <li>AS numbers assignations</li>
- <li>Subnet assignations</li>
- <li>DNS root zone for <code class="language-plaintext highlighter-rouge">dn42.</code></li>
- </ul>
- <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>
- <h1 id="names-and-numbers">Names and numbers</h1>
- <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>
- <h2 id="address-space">Address space</h2>
- <p>dn42 uses <strong>172.20.0.0/14</strong> for IPv4.</p>
- <p>For IPv6, we use ULA (that is, <strong>fd00::/8</strong>).</p>
- <p>See also the howto page covering the <a href="/howto/Address-Space">DN42 address space</a>.</p>
- <h2 id="as-numbers">AS numbers</h2>
- <p>Since June 2014, dn42 is using the <strong>4242420000-4242429999</strong> ASN range for allocations. This range is further subdivided:</p>
- <ul>
- <li><strong>4242420000-4242423999</strong> for end-users allocations</li>
- <li><strong>4242424000-4242426999</strong> reserved for future use</li>
- <li><strong>4242427000-4242429999</strong> for sub-allocations</li>
- </ul>
- <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>
- <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>
- <h2 id="dns-zones">DNS zones</h2>
- <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>
- <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>
- <h1 id="drone-cicd">Drone CI/CD</h1>
- <p>The gitea instance hosting the registry has an associated <a href="https://drone.io/">Drone CI/CD</a> service:</p>
- <ul>
- <li><a href="https://drone.git.dn42/">https://drone.git.dn42/</a></li>
- </ul>
- <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>
- <h1 id="telegram-bot">Telegram Bot</h1>
- <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>
- <p>Privacy mode is enabled, please call the bot with @DN42WhoisBot when necessary.</p>
- <h1 id="web-interface-and-rest-api">Web interface and REST API</h1>
- <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>
- <p>The service is provided by <a href="https://git.burble.com/burble.dn42/dn42regsrv">dn42regsrv</a> which can also be run locally.</p>
- <h2 id="authentication">Authentication</h2>
- <p>See the page on <a href="/howto/Registry-Authentication">Registry Authentication</a></p>
- <h1 id="dns-interface">DNS interface</h1>
- <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>.
- 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>
- <p>Example:</p>
- <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>dig +short AS4242420000.asn.dn42 TXT
- <span class="s2">"4242420000 | DN42 | dn42 | | PYROPETER-AS PyroPeters AS"</span>
- </code></pre></div></div>
- <p>The Python code for generating the zone from the registry is available on the monotone repository.</p>
- <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>
- <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>
- <p>Example:</p>
- <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>dig +short TXT as4242421411.ip.catgirls.dn42
- <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>
- <span class="nv">$ </span>dig +short TXT 32.196.23.172.ip.catgirls.dn42
- <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>
- <span class="nv">$ </span>dig +short TXT 1.d.a.b.f.a.c.e.d.2.4.d.f.ip.catgirls.dn42
- <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>
- </code></pre></div></div>
- <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>
- <h1 id="software">Software</h1>
- <ul>
- <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>
- <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>
- <li><a href="https://git.dn42.dev/C4TG1RL5/who42rs">who42rs</a> a reimplementation of whois42d written in Rust</li>
- </ul>
- <h1 id="whois-daemons">Whois daemons</h1>
- <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>
- <table>
- <thead>
- <tr>
- <th><strong>person</strong></th>
- <th><strong>dns</strong></th>
- <th><strong>ip</strong></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>org-cccda</td>
- <td>whois.cda.dn42</td>
- <td>172.23.96.1 / fd42:23:cda::1</td>
- </tr>
- <tr>
- <td>StrExp / NIA</td>
- <td>whois.nia.dn42</td>
- <td>fd00:1926:817:43::1</td>
- </tr>
- <tr>
- <td>Lan Tian</td>
- <td>whois.lantian.dn42</td>
- <td>172.22.76.108 / fdbc:f9dc:67ad:2547::43</td>
- </tr>
- <tr>
- <td>burble</td>
- <td>whois.burble.dn42</td>
- <td>172.20.129.8 / fd42:4242:2601:ac43::1</td>
- </tr>
- <tr>
- <td>p3bk4c</td>
- <td>whois.pebkac.dn42</td>
- <td>172.21.83.27 / fd63:672f:38e7:27::1</td>
- </tr>
- <tr>
- <td>scooter</td>
- <td>whois.scooter.dn42</td>
- <td>172.23.109.170 / fd38:cfa3:7091:2::1</td>
- </tr>
- <tr>
- <td>C4TG1RL5</td>
- <td>whois.catgirls.dn42</td>
- <td>172.23.196.33 / fd42:deca:fbad::1</td>
- </tr>
- <tr>
- <td>Bandura</td>
- <td>whois.bandura.dn42</td>
- <td>172.22.149.225 / fd04:234e:fc31::1 (may change in the future)</td>
- </tr>
- <tr>
- <td>SUNNET</td>
- <td>whois.sun.dn42</td>
- <td>172.21.100.253 / fdc8:dc88:ee11:253::1</td>
- </tr>
- </tbody>
- </table>
- <h2 id="down">Down?</h2>
- <table>
- <thead>
- <tr>
- <th><strong>person</strong></th>
- <th><strong>dns</strong></th>
- <th><strong>ip</strong></th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>welterde</td>
- <td>thinkbase.srv.welterde.de</td>
- <td>46.4.248.201</td>
- </tr>
- <tr>
- <td>prauscher</td>
- <td>sheldon.prauscher.dn42</td>
- <td>172.22.120.1</td>
- </tr>
- <tr>
- <td>w0h</td>
- <td>whois.w0h.dn42</td>
- <td>172.22.232.6 / fd2d:a6da:8d1a:1408::6</td>
- </tr>
- <tr>
- <td>Mic92</td>
- <td>whois.evenet.dn42 (<a href="https://git.dn42.dev/registry/whois42d">whois42d</a>)</td>
- <td>172.23.75.1 / fd42:4992:6a6d::6</td>
- </tr>
- <tr>
- <td>Fritz</td>
- <td>whois.flhb.de</td>
- <td>172.22.70.69 / 2001:67c:708:102:5054:ff:fe57:9573 / fdd6:aff6:5f6f:102:5054:ff:fe57:9573</td>
- </tr>
- <tr>
- <td>weiti</td>
- <td>whois.weiti.dn42</td>
- <td>172.20.175.253 / fdf7:17d5:de49::43</td>
- </tr>
- </tbody>
- </table>
- <h2 id="usage">Usage</h2>
- <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>
- </code></pre></div></div>
- <h2 id="using-a-whois-config">Using a whois config</h2>
- <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
- <span class="se">\.</span>dn42<span class="nv">$ </span> whois.dn42
- <span class="se">\-</span>DN42<span class="nv">$ </span> whois.dn42
- <span class="c"># dn42 range 64512-65534</span>
- ^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
- <span class="c"># dn42 range 76100-76199</span>
- ^as761[0-9][0-9]<span class="nv">$ </span> whois.dn42
- <span class="c"># dn42 range 4242420000-4242429999</span>
- ^as424242[0-9]<span class="o">{</span>4<span class="o">}</span><span class="nv">$ </span>whois.dn42
- <span class="c"># NeoNetwork range</span>
- ^as420127[0-9]<span class="o">{</span>4<span class="o">}</span><span class="nv">$ </span>whois.bandura.dn42
- <span class="c"># dn42 ipv4 address space</span>
- ^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
- <span class="c"># dn42 ula ipv6 address space</span>
- ^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
- </code></pre></div></div>
- <p>You can then use whois without specifying the server. Works at least with Marco d’Itri’s whois client.</p>
- <h2 id="running-your-own-whoisd">Running your own whoisd</h2>
- <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">cd</span> /home/some/path/to/store/branch
- <span class="nb">sudo </span>aptitude <span class="nb">install </span>ruby rubygems
- <span class="nb">sudo </span>gem <span class="nb">install </span>netaddr
- <span class="nb">cd </span>whoisd/ruby
- <span class="nb">sudo </span>ruby whoisd.rb nobody
- </code></pre></div></div>
- <h2 id="whois-restful-api">Whois restful API</h2>
- <p>Note: this service is in beta testing, use at your own risk.
- <a href="https://whois.rest.dn42/">https://whois.rest.dn42/</a></p>
- <div id="menu-container" class="menu-container">
- <hr>
- <div id="menu" class="menu">
-
- <ul>
- <li><a href="/Home">Home</a>
- <ul>
- <li><a href="/howto/Getting-Started">Getting Started</a></li>
- <li><a href="/howto/Registry-Authentication">Registry Authentication</a></li>
- <li><a href="/howto/Address-Space">Address Space</a></li>
- <li><a href="/howto/BGP-communities">BGP communities</a></li>
- <li><a href="/FAQ">FAQ</a></li>
- </ul>
- </li>
- <li>How-To
- <ul>
- <li><a href="/howto/wireguard">Wireguard</a></li>
- <li><a href="/howto/openvpn">Openvpn</a></li>
- <li><a href="/howto/IPsec-with-PublicKeys">IPsec With Public Keys</a></li>
- <li><a href="/howto/tinc">Tinc</a></li>
- <li><a href="/howto/GRE-on-FreeBSD">GRE on FreeBSD</a></li>
- <li><a href="/howto/GRE-on-OpenBSD">GRE on OpenBSD</a></li>
- <li><a href="/howto/IPv6-Multicast">IPv6 Multicast (PIM-SM)</a></li>
- <li><a href="/howto/multicast">SSM Multicast</a></li>
- <li><a href="/howto/mpls">MPLS</a></li>
- <li><a href="/howto/Bird2">Bird2</a></li>
- <li><a href="/howto/frr">FRRouting</a></li>
- <li><a href="/howto/OpenBGPD">OpenBGPD</a></li>
- <li><a href="/howto/mikrotik">Mikrotik RouterOS</a></li>
- <li><a href="/howto/EdgeOS-Config">EdgeRouter</a></li>
- <li><a href="/howto/Static-routes-on-Windows">Static routes on Windows</a></li>
- <li><a href="/howto/networksettings">Universal Network Requirements</a></li>
- <li><a href="/howto/vyos1.4.x">VyOS</a></li>
- <li><a href="/howto/nixos">NixOS</a></li>
- </ul>
- </li>
- <li>Services
- <ul>
- <li><a href="/services/IRC">IRC</a></li>
- <li><a href="/services/Whois">Whois registry</a></li>
- <li><a href="/services/DNS">DNS</a></li>
- <li><a href="/services/IX-Collection">IX Collection</a></li>
- <li><a href="/services/Clearnet-Domains">Public DNS</a></li>
- <li><a href="/services/Looking-Glasses">Looking Glasses</a></li>
- <li><a href="/services/Automatic-Peering">Automatic Peering</a></li>
- <li><a href="/services/Repository-Mirrors">Repository Mirrors</a></li>
- <li><a href="/services/Distributed-Wiki">Distributed Wiki</a></li>
- <li><a href="/services/Certificate-Authority">Certificate Authority</a></li>
- <li><a href="/services/Route-Collector">Route Collector</a></li>
- </ul>
- </li>
- <li>Internal
- <ul>
- <li><a href="/internal/Internal-Services">Internal services</a></li>
- <li><a href="/internal/Interconnections">Interconnections</a></li>
- <li><a href="/internal/APIs">APIs</a></li>
- <li><a href="/internal/ShowAndTell">Show and Tell</a></li>
- <li><a href="/internal/Historical-Services">Historical services</a></li>
- </ul>
- </li>
- <li>Historical
- <ul>
- <li><a href="/historical/Bird">Bird 1</a></li>
- <li><a href="/historical/Quagga">Quagga</a></li>
- </ul>
- </li>
- <li>External Tools
- <ul>
- <li><a href="https://paste.dn42.us">Paste Board</a></li>
- <li><a href="https://git.dn42.dev">Git Repositories</a></li>
- </ul>
- </li>
- </ul>
- <hr />
- </div>
- </div>
- </main>
-
- <footer><div class="center">
- <div id="dn42_footer">
-
- <table>
- <tbody>
- <tr>
- <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>
- <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>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </footer>
-
- </body>
- </html>
|