tracemap
view xguru_fun @ 0:0d498f80f832
Repository initialization.
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sun Jun 29 17:36:44 2008 +0300 (2008-06-29) |
parents | |
children |
line source
1 get_mx()
2 {
3 dig "$1" mx | grep -v '^;' | grep MX | sort -nk 5 | head -1 | awk '{print $6}' | sed s/.$//
4 }
5 get_ttl()
6 {
7 traceroute -q1 -n "$1" | grep ms | wc -l
8 }
9 get_location()
10 {
11 lynx -dump 'http://www.geoiptool.com/en/?IP='$1 | egrep 'Longitude|Latitude|City|Country|Region'
12 }