Hello! > We use getaddrinfo() and getnameinfo() extensively, which do not require > res_init() to be called first... > > So, instead of adding more convolutions to configure.ac, I propose to > throw out res_init() and everything related to it :-) - much easier.
res_init seems to be necessary to pick up changes to /etc/resolv.conf mid-process (without some low-level caching like nscd). As of master right now, OpenVPN never recovers when it's started with bogus nameservers in /etc/resolv.conf. The steps I describe in bug report #523 is still valid, even though my description of the implementation of openvpn_getaddrinfo() was wrong.