blob: 344f8536286efaeec26ef0ae0816a1b02159fbbf (
plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="style.css" type="text/css" media="all"/>
<title>WHOIS.JORDAN.IM(7)</title>
</head>
<body>
<table class="head">
<tr>
<td class="head-ltitle">WHOIS.JORDAN.IM(7)</td>
<td class="head-vol">Miscellaneous Information Manual</td>
<td class="head-rtitle">WHOIS.JORDAN.IM(7)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">asn</code> — <span class="Nd">map hosts to
their corresponding ASN over the WHOIS protocol</span></p>
<p class="Pp"></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp"><a class="Lk" href="https://git.jordan.im/asn">asn(1)</a> is a
WHOIS server which provides BGP announcement information sourced from a
local database cache generated using the
<a class="Lk" href="https://location.ipfire.org/">IPFIRE</a> dataset.</p>
<p class="Pp" id="whois.jordan.im"><a class="permalink" href="#whois.jordan.im"><b class="Sy">whois.jordan.im</b></a>
is a public <code class="Nm">asn</code> instance for personal use.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="USAGE"><a class="permalink" href="#USAGE">USAGE</a></h1>
<p class="Pp"><a class="Lk" href="https://man.openbsd.org/whois.1">whois(1)</a>
can be used to communicate with the server using
<var class="Ar">--host</var> and <var class="Ar">--port</var> arguments.
Both hostnames and IP address are accepted.</p>
<div class="Bd Pp Li">
<pre>$ whois -h whois.jordan.im google.com
IP Address | AS Number | Country | AS Name | Announcement
-------------------------+-----------+---------+---------+--------------------
216.58.212.238 | 15169 | US | GOOGLE | 216.58.212.0/24
2a00:1450:4009:80b::200e | 15169 | IE | GOOGLE | 2a00:1450:4009::/48
$ whois -h whois.jordan.im 1.1.1.1
IP Address | AS Number | Country | AS Name | Announcement
-----------+-----------+---------+---------------+-------------
1.1.1.1 | 13335 | AU | CLOUDFLARENET | 1.1.1.0/24</pre>
</div>
<p class="Pp">If a hostname is provided, queries for each resolved A/AAAA record
will be returned. The dataset is regenerated daily to ensure response
accuracy.</p>
<p class="Pp">An instance of the <code class="Nm">asn</code> HTTP component is
hosted at <a class="Lk" href="https://ip.jordan.im/">ip.jordan.im</a> which
provides the requesting address's autonomous system information over HTTP
via JSON.</p>
<div class="Bd Pp Li">
<pre>$ curl ip.jordan.im
{
"host": "45.83.89.132",
"hostname": "45-83-89-132.pool.ovpn.com",
"org": "AS9009 M247 Europe SRL",
"announcement": "45.83.89.0/24"
}</pre>
</div>
<p class="Pp"></p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">March 24, 2022</td>
<td class="foot-os">Alpine Linux</td>
</tr>
</table>
</body>
</html>
|