summaryrefslogtreecommitdiff
path: root/whois.jordan.im
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2023-01-14 06:05:07 +0000
committerJordan <me@jordan.im>2023-01-14 06:05:07 +0000
commit38c02e531cefaf218655fc3b51bf4a409416a96a (patch)
tree81700b5e31178676aae5293986ff30e68feb0782 /whois.jordan.im
parent5167dfa180fb780fd9f5886fb7ab74301cbb84f0 (diff)
downloadwww-38c02e531cefaf218655fc3b51bf4a409416a96a.tar.gz
www-38c02e531cefaf218655fc3b51bf4a409416a96a.zip
jordan.im, whois.jordan.im: links, documentation
Diffstat (limited to 'whois.jordan.im')
-rw-r--r--whois.jordan.im/index.722
-rw-r--r--whois.jordan.im/index.html17
2 files changed, 37 insertions, 2 deletions
diff --git a/whois.jordan.im/index.7 b/whois.jordan.im/index.7
index a68e10c..5d01226 100644
--- a/whois.jordan.im/index.7
+++ b/whois.jordan.im/index.7
@@ -28,7 +28,7 @@ and
.Ar --port
arguments. Both hostnames and IP address are accepted.
.
-.Bd -literal -offset indent
+.Bd -literal
$ whois -h whois.jordan.im google.com
IP Address | AS Number | Country | AS Name | Announcement
@@ -46,3 +46,23 @@ IP Address | AS Number | Country | AS Name | Announcement
.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.
+
+An instance of the
+.Nm
+HTTP component is hosted at
+.Lk https://ip.jordan.im/ ip.jordan.im
+which provides the requesting address's autonomous system information over HTTP
+via JSON.
+.
+.Bd -literal
+$ 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"
+}
+.Ed
+.
+
diff --git a/whois.jordan.im/index.html b/whois.jordan.im/index.html
index 7eb6c86..344f853 100644
--- a/whois.jordan.im/index.html
+++ b/whois.jordan.im/index.html
@@ -36,7 +36,7 @@
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">
+<div class="Bd Pp Li">
<pre>$ whois -h whois.jordan.im google.com
IP Address | AS Number | Country | AS Name | Announcement
@@ -53,6 +53,21 @@ IP Address | AS Number | Country | AS Name | Announcement
<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
+
+{
+ &quot;host&quot;: &quot;45.83.89.132&quot;,
+ &quot;hostname&quot;: &quot;45-83-89-132.pool.ovpn.com&quot;,
+ &quot;org&quot;: &quot;AS9009 M247 Europe SRL&quot;,
+ &quot;announcement&quot;: &quot;45.83.89.0/24&quot;
+}</pre>
+</div>
+<p class="Pp"></p>
</section>
</div>
<table class="foot">