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

lft -NAS
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 (
 1  [AS?] [NULL] 0.2ms
 2  [18881] [NET-189-32-0-0-S11] ( 5.3ms
 3  [18881] [NET-189-32-0-0-S11] ( 5.2ms
 4  [18881] [NET-189-32-0-0-S11] ( 29.1ms
 5  [18881] [NET-189-32-0-0-S11] ( 42.7ms
 6  [18881] [NET-189-32-0-0-S11] ( 46.1ms
**  [neglected] no reply packets received from TTL 7
 8  [15169] [GOOGLE] 45.0ms
 9  [15169] [GOOGLE] 49.3ms
10  [15169] [GOOGLE] 45.6ms
**  [neglected] no reply packets received from TTLs 11 through 14
15  [15169] [GOOGLE] [target open] ( 49.3ms

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 · 60 weeks and 6 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? 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.


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: