id summary reporter owner description type status priority milestone component version severity resolution keywords cc 523 OpenVPN doesn't pickup changes to /etc/resolv.conf ngharo "OpenVPN appears to only call res_init() once per entry of function call openvpn_getaddrinfo(). When resolv-retry is infinite, it appears that the loop in openvpn_getaddrinfo() is never broken and thus any changes to /etc/resolv.conf to correct the problem is never picked up. This is a well documented bug across other OSS projects: https://sourceware.org/bugzilla/show_bug.cgi?id=3675 https://bugzilla.mozilla.org/show_bug.cgi?id=166479 https://code.google.com/p/chromium/issues/detail?id=12740 To reproduce: Prereq: Make sure no glibc (nscd) or other DNS caching is enabled 1) Stop openvpn 2) Insert bogus nameservers into /etc/resolv.conf 3) Start openvpn with resolv-retry infinite 4) Observe repeating name resolution failures in openvpn logs 5) Insert legitimate nameservers into /etc/resolv.conf 6) Verify name resolution now works by pinging remote hostname 7) Observe how OpenVPN never recovers from name resolution failures" Bug / Defect closed minor release 2.3.7 Generic / unclassified OpenVPN git master branch (Community Ed) Not set (select this one, unless your'e a OpenVPN developer) fixed dns resolv res_init glibc plaisthos