Does a traceroute. Lookup and display the network or AS names and AS numbers.

lft -NAS google.com
From the man page. lft ? display the route packets take to a network host/socket using one of several layer-4 protocols and methods; optionally show heuristic network information in transitu -A Enable lookup and display of of AS (autonomous system) numbers (e.g., [1]). This option queries one of several whois servers (see options 'C' and 'r') in order to ascertain the origin ASN of the IP address in question. By default, LFT uses the pWhoIs service whose ASN data tends to be more accurate and more timely than using the RADB as it is derived from the Internet's global routing table. -N Enable lookup and display of network or AS names (e.g., [GNTY-NETBLK-4]). This option queries Prefix WhoIs, RIPE NCC, or the RADB (as requested). In the case of Prefix WhoIs or RADB, the network name is displayed. In the case of RIPE NCC, the AS name is displayed.
Sample Output
TTL LFT trace to bs-in-f104.1e100.net (64.233.163.104):80/tcp
 1  [AS?] [NULL] 10.1.1.1 0.2ms
 2  [18881] [NET-189-32-0-0-S11] gvt-l0.b9.cpe.gvt.net.br (189.59.84.1) 5.3ms
 3  [18881] [NET-189-32-0-0-S11] 189.59.89.217.static.host.gvt.net.br (189.59.89.217) 5.2ms
 4  [18881] [NET-189-32-0-0-S11] gvt-ge-3-1.rc1.bsa.gvt.net.br (189.59.250.21) 29.1ms
 5  [18881] [NET-189-32-0-0-S11] gvt-po-0-1-4-3-rc03.spo.gvt.net.br (189.59.248.161) 42.7ms
 6  [18881] [NET-189-32-0-0-S11] gvt-te-0-0-0-0-rt01.spo.gvt.net.br (189.59.249.1) 46.1ms
**  [neglected] no reply packets received from TTL 7
 8  [15169] [GOOGLE] 209.85.243.198 45.0ms
 9  [15169] [GOOGLE] 72.14.233.89 49.3ms
10  [15169] [GOOGLE] 64.233.175.58 45.6ms
**  [neglected] no reply packets received from TTLs 11 through 14
15  [15169] [GOOGLE] [target open] bs-in-f104.1e100.net (64.233.163.104):80 49.3ms

3
By: tulio
2011-04-04 03:07:00

What Others Think

Command and al paid work is issued for the turns for the citizens for all people. The turns of the joy and best writing service is ensued for the shares. The theory is marked for the mid of the final mode for the goals for humans.
JonathanBrennan · 7 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: