TIL about a-Shell¹² (via ³) by @nholzschuch, which is an iOS app that provides a local shell on your iOS device that gives you access to a bunch of on-device commands and functionality, including things like nslookup and ping (sadly not traceroute, but I'll take almost anything here). Also, command line file management.
¹ https://github.com/holzschu/a-shell
² https://holzschu.github.io/a-Shell_iOS/
³ https://cosocial.ca/@mce/117547698018631016