ip

command module
v0.0.0-...-69f8868 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 17 Imported by: 0

README

ip.chuhlomin.com is a service for finding information about IP addresses.

It uses:
  * GeoLite2 databases for ASN and GeoIP lookups,
  * whois.iana.org for Whois queries.

Available endpoints:
  /help - this page
  / - index page, redirects to /{ip}, where {ip} is your IP address
  /{ip} - returns information about the IP address: ASN and GeoIP
  /whois - redirects to /{ip}/whois if IP is known, otherwise returns 404
  /{ip}/whois - returns the Whois information for the IP address
  /{ip}/{mask} - displays the IP in binary format, visualizing the mask

Example usage:
  curl -L https://ip.chuhlomin.com/
  curl https://ip.chuhlomin.com/1.1.1.1
  curl https://ip.chuhlomin.com/1.1.1.1/whois
  curl https://ip.chuhlomin.com/192.168.0.0/24
  curl -s https://ip.chuhlomin.com/1.1.1.1.json | jq -r '.asn.number'

Version: 1.0.0
Source code: https://github.com/chuhlomin/ip
Author: Konstantin Chukhlomin
License: MIT

---

Known alternatives:
  https://ip.me
  https://ifconfig.co
  https://httpbin.org/ip
  https://ipinfo.io
  https://whatismyipaddress.com

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL