3 ms·
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
by xerxes901 3y 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.
- alexgartrell 3y agoIME, familiarity with /etc/nsswitch.conf and the rest of the nss stuff is very highly correlated with people who have seen some shit.
- cyberax 3y agoYep, 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/79f487038444646f5bce1f5a18d51cda5f20b268/src/nss-resolve/nss-resolve.c#L598 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)