traceroute should warn when name services are slow
As we've seen in cases like 6211 and 8503, when name services are not working, understanding what's going on in the system can be very confusing. In the case of traceroute, it may appear to the end user that they can't actually reach the end point, when it's actually the opposite – that they reached it just fine. In this case, what we'd like to do is warn once so the user has a hope of understanding what's going on. If this isn't functioning because something else is going on, then we wouldn't end up having any warnings.
Updated by Robert Mustacchi over 3 years ago
To test this we blocked name services from working and ran traceroute:
[root@haswell ~]# traceroute 22.214.171.124 traceroute to 126.96.36.199 (188.8.131.52), 30 hops max, 40 byte packets 1 traceroute: warning: responses received, but name service lookups are taking a while. Use traceroute -n to disable name service lookups. 172.20.0.1 (172.20.0.1) 0.214 ms 0.260 ms 0.178 ms 2 10.34.1.254 (10.34.1.254) 0.537 ms 0.628 ms 0.401 ms 3 184.108.40.206 (220.127.116.11) 0.838 ms 0.911 ms 0.748 ms 4 18.104.22.168 (22.214.171.124) 2.811 ms 2.735 ms 1.956 ms 5 126.96.36.199 (188.8.131.52) 2.024 ms 2.306 ms 2.127 ms 6 184.108.40.206 (220.127.116.11) 2.015 ms 2.180 ms 2.039 ms 7 18.104.22.168 (22.214.171.124) 2.658 ms 126.96.36.199 (188.8.131.52) 2.686 ms 2.753 ms 8 184.108.40.206 (220.127.116.11) 2.827 ms 18.104.22.168 (22.214.171.124) 3.199 ms 126.96.36.199 (188.8.131.52) 3.097 ms 9 ^C
I also ran traceroute without DNS services blocked and everything operated fine. While blocked I also used the -n flag and verified that traceroute worked as expected.
Updated by Electric Monk over 3 years ago
- Status changed from New to Closed
commit afee3dc66d7b1fb4aaedced0814360f4334bc2c0 Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2017-08-08T19:21:49.000Z 8503 snoop seems to delay packets doing DNS resolution 8504 traceroute should warn when name services are slow 8505 netstat should warn when name services are slow 8506 ping name service warnings should only happen once Reviewed by: Jerry Jelinek <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Reviewed by: Yuri Pankov <email@example.com> Approved by: Gordon Ross <firstname.lastname@example.org>