How do you propose that DNS resolution precede without opening a socket?
This looks insane and not what strace(1) tells me
Could you give me more details ?
I thought it was just a general libc thing. Isn't there a spec on this somewhere?
This is basically what dnsmasq does when you use it as a local DNS cache.
Normally, that's a socket in /run/dbus/system_bus_socket