Skip to content

Commit 20c0561

Browse files
authored
Create traceroute-whois
1 parent 0c68170 commit 20c0561

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

traceroute-whois

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# traceroute to endpoint using regular icmp traceroute, then pull OriginAS and NetName from whois from each hop
2+
#
3+
[root@fedora-lab ~]# traceroute -n google.com > trace.txt; for i in $(awk '{print$2}' trace.txt | grep -v '\*' | grep -v 'to'); do echo $i; whois $i | grep OriginAS; whois $i | grep NetName; done
4+
68.183.64.254
5+
OriginAS:
6+
NetName: DO-13
7+
138.197.250.170
8+
OriginAS:
9+
NetName: DIGITALOCEAN-16
10+
209.85.175.196
11+
OriginAS:
12+
NetName: GOOGLE
13+
108.170.252.1
14+
OriginAS: AS15169
15+
NetName: GOOGLE
16+
74.125.37.125
17+
OriginAS:
18+
NetName: GOOGLE
19+
172.217.18.14
20+
OriginAS: AS15169
21+
NetName: GOOGLE
22+
[root@fedora-lab ~]#

0 commit comments

Comments
 (0)