IP Facts
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, which I find helpful when checking abusive IP addresses.
Get your IP Facts – http://ipfacts.info/
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:
ifconfig
Check what an IP address resolves to:
host iphere
host 122.122.122.122
Check what hostname an IP address resolves to:
host domain.com
host google.com
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 122.122.122.122
[Querying whois.apnic.net]
[Redirected to whois.twnic.net]
[Querying whois.twnic.net]
[whois.twnic.net]
Chunghwa Telecom Data Communication Business GroupNetname: HINET-NET
Netblock: 122.122.0.0/16Administrator contact:
network-adm@hinet.netTechnical contact:
network-adm@hinet.net
In the case of the above, the IP to Country script comes in handy because the database is build from another source.
Similar Posts:
- 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
- Firefox Google Search Plugin for Australia (AU)
- Installing WordPress via SSH Command Line
- How to delete ASP.NET temporary files from shared server
- My Dark Neon (Green) WordPress Theme
- PHP Code Block Vent In Spite of Spammers
One Response to Simple IP Information / IP to Location (Country) Lookup