summaryrefslogtreecommitdiff
path: root/whois.jordan.im
diff options
context:
space:
mode:
Diffstat (limited to 'whois.jordan.im')
-rw-r--r--whois.jordan.im/Makefile14
-rw-r--r--whois.jordan.im/index.748
-rw-r--r--whois.jordan.im/index.html65
-rw-r--r--whois.jordan.im/style.css22
4 files changed, 149 insertions, 0 deletions
diff --git a/whois.jordan.im/Makefile b/whois.jordan.im/Makefile
new file mode 100644
index 0000000..75ce63e
--- /dev/null
+++ b/whois.jordan.im/Makefile
@@ -0,0 +1,14 @@
+WEBROOT = /var/www/whois.jordan.im
+
+FILES = index.html style.css
+
+all: ${FILES}
+
+index.html: index.7
+ mandoc -T html -O style=style.css index.7 > index.html
+
+install: ${FILES}
+ install -c -m 644 ${FILES} ${WEBROOT}
+
+clean:
+ rm -f index.html
diff --git a/whois.jordan.im/index.7 b/whois.jordan.im/index.7
new file mode 100644
index 0000000..fc91ae2
--- /dev/null
+++ b/whois.jordan.im/index.7
@@ -0,0 +1,48 @@
+.Dd March 24, 2022
+.Dt WHOIS.JORDAN.IM 7
+.Os "Alpine Linux"
+.
+.Sh NAME
+.Nm asn
+.Nd map hosts to their corresponding ASN over the WHOIS protocol
+
+.Sh DESCRIPTION
+.Lk https://git.jordan.im/asn "asn(1)"
+is a WHOIS server which provides BGP announcement information sourced from
+a local database cache generated using the
+.Lk https://location.ipfire.org/ "IPFIRE"
+dataset.
+.Pp
+.Sy whois.jordan.im
+is a public
+.Nm
+instance for personal use.
+.
+.Sh USAGE
+.
+.Pp
+.Lk https://man.openbsd.org/whois.1 "whois(1)"
+can be used to communicate with the server using
+.Ar --host
+and
+.Ar --port
+arguments. Both hostnames and IP address are accepted.
+.
+.Bd -literal -offset indent
+$ whois -h whois.jordan.im google.com
+
+AS Number | Country | AS Name | Announcement
+----------+---------+---------+--------------------
+15169 | US | GOOGLE | 142.250.0.0/15
+15169 | IE | GOOGLE | 2a00:1450:4009::/48
+
+$ whois -h whois.jordan.im 1.1.1.1
+
+AS Number | Country | AS Name | Announcement
+----------+---------+---------------+-------------
+13335 | AU | CLOUDFLARENET | 1.1.1.0/24
+.Ed
+.
+.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.
diff --git a/whois.jordan.im/index.html b/whois.jordan.im/index.html
new file mode 100644
index 0000000..402d9dd
--- /dev/null
+++ b/whois.jordan.im/index.html
@@ -0,0 +1,65 @@
+<!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> &#x2014; <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 Bd-indent Li">
+<pre>$ whois -h whois.jordan.im google.com
+
+AS Number | Country | AS Name | Announcement
+----------+---------+---------+--------------------
+15169 | US | GOOGLE | 142.250.0.0/15
+15169 | IE | GOOGLE | 2a00:1450:4009::/48
+
+$ whois -h whois.jordan.im 1.1.1.1
+
+AS Number | Country | AS Name | Announcement
+----------+---------+---------------+-------------
+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>
+</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>
diff --git a/whois.jordan.im/style.css b/whois.jordan.im/style.css
new file mode 100644
index 0000000..740b52f
--- /dev/null
+++ b/whois.jordan.im/style.css
@@ -0,0 +1,22 @@
+table.head, table.foot { width: 100%; }
+td.head-rtitle, td.foot-os { text-align: right; }
+td.head-vol { text-align: center; }
+div.Pp { margin: 1ex 0ex; }
+div.Nd, div.Bf, div.Op { display: inline; }
+span.Pa, span.Ad { font-style: italic; }
+span.Ms { font-weight: bold; }
+dl.Bl-diag > dt { font-weight: bold; }
+code.Nm, code.Fl, code.Cm, code.Ic, code.In, code.Fd, code.Fn,
+code.Cd { font-weight: bold; font-family: inherit; }
+
+html { font-family: monospace; line-height: 1.25em; }
+body { max-width: 80ch; margin: 1em auto; padding: 0 1ch; }
+table { border-collapse: collapse; }
+table.Nm code.Nm { padding-right: 1ch; }
+table.foot { margin-top: 1em; }
+
+html { background-color: var(--ansi16); color: var(--ansi17); }
+a { color: var(--ansi4); }
+a:visited { color: var(--ansi5); }
+a.permalink { color: var(--ansi3); text-decoration: none; }
+