Not to mention they link to libc.. All rust code does last I checked…
But even then, your code is calling out to kernel functions which are probably written in C or assembly, and therefore "dangerous."
Rust code safety is overhyped frequently, but reducing an attack surface is still an improvement over not doing so.
Well, good thing that nobody sane is saying that then.
Also, DNS resolution isn't part of the C standard, it's a POSIX interface I think.