QSGEO(1)
π QSGEO(1) π
okay bestie, welcome to the qsgeo corner of the qsgeo man page, it's giving β¨country-code-detectiveβ¨ energy and honestly? obsessed.
πΈ NAME πΈ
qsgeo β a little utility that looks up a client's country code. no cap, that's the whole job π
π SYNOPSIS π
qsgeo -d <path> [-l] [-s] [-ip <ip>]
like, look at her. four flags max. she's lowkey iconic for that π«Ά
π¦ DESCRIPTION π¦
so here's the vibe: you use this utility to resolve the country codes of IP addresses that are already chilling inside your existing log files. πΊοΈ
it reads the log file data from stdin and writes it back out to stdout, but with the country code injected in there. like a little glow-up for every line. periodt. π
β¨ OPTIONS β¨
-d <path>β tells it where the geographical database files live. specifically: the path to a CSV file containing IP address ranges and country codes. that's the whole map, bestie πΊοΈ-sβ writes a summary of the requests per country only. like the cliff notes version, no full line-by-line drama π-lβ writes the database itself tostdout, ignoringstdin, and inserts local (127.*) and private (10.*,172.16*,192.168.*) network addresses while it's at it. she's doing the most and honestly? slay π-ip <ip>β resolves a single IP address instead of processing a whole log file. main character energy for exactly one IP π
π EXAMPLE π
Reading the file access.log and adding the country code to the IP address field:
cat access.log | qsgeo -d GeoIPCountryWhois.csv
Reading the file access.log and showing a summary only:
cat access.log | qsgeo -d GeoIPCountryWhois.csv -s
Resolving a single IP address:
qsgeo -d GeoIPCountryWhois.csv -ip 192.84.12.23
see how clean that is?? chef's kiss, ate, no crumbs π₯
π SEE ALSO π
the whole friend group fr fr π«Ά go say hi
π AUTHOR π
Pascal Buchbinder, http://mod-qos.sourceforge.net/
the way he built this whole thingβ¦ king behavior π
and that's the whole page, bestie!! this was brought to you by the mod_qos utilities, version 11.79, dated May 2026 β mwah, drink some water, and go resolve some country codes π β¨π¦π
π¦ where this page comes from
- ubuntu stonking: libapache2-mod-qos 11.79-1build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms