Hacker News new | ask | show | jobs
by nomadluap 971 days ago
For one thing, it could delegate to a local service. Granted, the communication to this service is probably still be over a socket interface, but at least as a purely-local connection you would hopefully have some better worst-case performance characteristics.

This is basically what dnsmasq does when you use it as a local DNS cache.

1 comments

Completely agree. Just use systemd-resolved which is the recommended way of doing DNS anyway.
And how do you communicate with systemd-resolved?
dbus is just a protocol that needs something else to actually transfer the data.

Normally, that's a socket in /run/dbus/system_bus_socket

And guess what. A UNIX socket does not use DNS or the damned getaddrinfo() function that's the ire of the article.