LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

acountry

IP address geolocation lookup via DNS

TLDR

Print the country where an IPv4 address or host is located
$ acountry [example.com]
copy
Print extra debugging output
$ acountry -d [example.com]
copy
Print more verbose information
$ acountry -v [example.com]
copy

SYNOPSIS

acountry [-d] [-v] hostnameorip

DESCRIPTION

acountry prints the country where an IPv4 address or hostname is located. It works by performing DNS-based lookups against country code databases to determine the geographic origin of an IP address. The tool is part of the c-ares library utilities, which provide asynchronous DNS resolution capabilities.Unlike GeoIP database tools, acountry relies on DNS TXT record queries to specialized services that map IP ranges to country codes. This makes it lightweight and dependency-free but limited to country-level granularity.

PARAMETERS

-d

Print extra debugging output
-v
Print more verbose information

CAVEATS

Geographic IP location is approximate and may not reflect the actual physical location of the server or user. IP addresses can be reassigned or routed through different countries.

HISTORY

Part of the c-ares asynchronous DNS resolver library tools.

SEE ALSO

ahost(1), adig(1), host(1), dig(1), nslookup(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid