A colleague of mine recently released a new website, which I thought was brilliant enough to blog about. Simply, the website displays IP Facts, without all the crap and ads we normally have to put up with. Simply put sysadmins, it’s simple and gets straight to the point – something hard to come across.
With a little assistance, we also got it to lookup the details of a supplied IP address, IP to Location (Country), which I find helpful when checking abusive IP addresses.
Linux / SSH Console Commands
Of course if you have a console window open, you can typically get most of this information using a few commands.
Find your server’s interface IP address:
Check what an IP address resolves to:
Check what hostname an IP address resolves to:
As for what country an IP belongs to, this isn’t as easy. You can run a whois and see who the IP is owned by, but that isn’t always the correct country for international corporations, but even then that’s no promise you’ll get any information if any:
$ whois 18.104.22.168
[Redirected to whois.twnic.net]
Chunghwa Telecom Data Communication Business Group
In the case of the above, the IP to Country script comes in handy because the database is build from another source.
- Simple PHP Function Code to Check IP Against “Stop Forum Spam” API
- Moving From No Control Panel Servers to a cPanel Server
- Generic PHP Function Code to Query “Stop Forum Spam” API
- Installing WordPress via SSH Command Line
- Firefox Google Search Plugin for Australia (AU)
- PHP Code Block Vent In Spite of Spammers
- My Dark Neon (Green) WordPress Theme