New icanhaz features: reverse DNS and traceroutes
·184 words·1 min
After adding some upgrades for icanhazip.com, I wanted to go a bit further. Adding reverse DNS (PTR) lookups and traceroutes seemed like a decent idea!
Want to beta test some new features on icanhazptr.com and icanhaztrace.com? Give them a try!
Getting your reverse DNS entry is easy:
$ curl -4 icanhazptr.com ord.icanhazip.com $ curl -6 icanhazptr.com ord.icanhazip.com
Traceroutes are straightforward as well:
$ curl -4 icanhaztrace.com traceroute to 22.214.171.124 (126.96.36.199), 30 hops max, 60 byte packets 1 188.8.131.52 20.031 ms 2 184.108.40.206 1.011 ms 3 220.127.116.11 107.976 ms ... $ curl -6 icanhaztrace.com traceroute to 2001:4801:7818:6:abc5:ba2c:ff10:275f (2001:4801:7818:6:abc5:ba2c:ff10:275f), 30 hops max, 80 byte packets 1 2a01:7e00:ffff:0:8a43:e1ff:fea3:fa7f 2.183 ms 2 2001:4d78:fe01:2:1:3:b90:1 1.330 ms 3 2001:978:2:45::d:1 8.388 ms ...
While this sits in beta, here are some things to keep in mind:
- If a PTR record doesn’t exist for your IP address, your IP address will be returned
- Failing traceroutes will cause your IP address to be returned
- A PTR record will be chosen at random if multiple PTR records are returned
- PTR lookups for traceroutes are currently disabled
Let me know if you find any bugs.