Install geoip-bin by entering the following commands in the terminal:
sudo apt update sudo apt install geoip-bin
Description:
IP lookup command line tools that use the GeoIP library
GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from. It uses a file based database. . This database simply contains IP blocks as keys, and countries as values and it should be more complete and accurate than using reverse DNS lookups. . This package contains the command line utilities to resolve the IP numbers using the GeoIP library.
Homepage: https://www.maxmind.com/
Version: 1.6.12-1
Section: net