Re:The Sisyphean Task of DNS Client Config on Linux
by lmz on Friday April 16, 2021 @08:14PM
(#26840450)
This just adds more complexity to a universally used user space library. And also breaks when some programs don't use the same resolver. Just implement your own dns server that does it for you (or reuse dnsmasq).
If you're at that point, rather than preload, why not simply add the code to glibc and contribute it back? Has there been some resistance from the maintainers already?
It would seem like it should be doable to add it on in a safe way, e.g. something that would work for both: `nameserver 192.168.0.1`
and ``` nameserver 192.168.0.1 nameserver 10.10.10.1 .internal .private .etc ```
Even if there's hesitance in accepting a change to the `nameserver` options, you easily make this an option, e.g.: `options tld-nameserver:.internal:<addr>`