Browse - Programming Tips - How can I find what country an IP-address is from?

Date: 2018jan11
OS: Linux
Distro: RedHat/Fedora/CentOS
Keywords: location, geo-location, latitude, longitude

Q.  How can I find what country an IP-address is from?

A.  There is a very simple command for that:

geoiplookup 80.60.233.195 GeoIP Country Edition: NL, Netherlands
You can use an IP-addresses or hostname on the command line.
geoiplookup www.museivaticani.va GeoIP Country Edition: VA, Holy See (Vatican City State)
To install
dnf install GeoIP
So now you can see greet visitors to your site with a country-specific page.