3 ms·
many of you complained that there is no lightweight way on Linux to have different resolvers for different domains/zones (eg. one default and one for your VPN o
by bandie91 5y ago
many of you complained that there is no lightweight way on Linux to have different resolvers for different domains/zones (eg. one default and one for your VPN or whatever).
see https://github.com/azukiapp/libnss-resolver https://github.com/azukiapp/libnss-resolver - it's an NSS lib just like libnss_dns or libnss_files, which looks up resolv.conf-style files according to the queried domain suffix.
it's not a deamon.
i integrated it with dhcp client and ifup/down and use it happily for years.
disclaimer: i contributed to libnss_resolver.