/etc/resolv.conf might have IPv6 addresses with scope in it, so this is needed.
extract pure functional logic into pure functions and then layer the scope crap on top properly the formatting code incorrectly didn't do the reverse operation (if_indextoname). fix that with some TODO panics