summaryrefslogtreecommitdiffstats
path: root/geoip-hostnames
diff options
context:
space:
mode:
Diffstat (limited to 'geoip-hostnames')
-rwxr-xr-xgeoip-hostnames6
1 files changed, 6 insertions, 0 deletions
diff --git a/geoip-hostnames b/geoip-hostnames
new file mode 100755
index 0000000..bd6849f
--- /dev/null
+++ b/geoip-hostnames
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+for i in "$@"; do
+ printf '%s ' "$i"
+ geoiplookup "$i" | grep 'GeoIP City Edition, Rev 1:' | sed 's#GeoIP City Edition, Rev 1: ##'
+done