Hacker News new | ask | show | jobs
by xerxes901 981 days ago
This is essentially what systemd-resolved with the nss-resolve NSS module is right? It’s possible to use /etc/nsswitch.conf to entirely disable the built-in DNS resolution in glibc if you want.
2 comments

IME, familiarity with /etc/nsswitch.conf and the rest of the nss stuff is very highly correlated with people who have seen some shit.
Yep, it's close. But you still depend on the unholy mess that is nsswitch.conf

It's still a bit worrying, with manual JSON parsing: https://github.com/systemd/systemd/blob/79f487038444646f5bce... But at least it's just ~600 lines of fairly straightforward code.

You also can get most of it with nscd.

(Sigh, I wish BUS1 guys pushed their project to completion)