Nicolás Reynolds
2015-Feb-02 18:32 UTC
Tincd fails to resolve domain names before it is started name resolution becomes available.
William Kennington <william at wkennington.com> writes:> Agreed. > On Feb 1, 2015 4:21 AM, "Etienne Dechamps" <etienne at edechamps.fr> wrote: > >> Considering how cheap that operation seems to be, would it make sense >> to call res_init() every time tinc retries a metaconnection? It's not >> doing that very often anyway... and it would solve the OP's problem.+1 we were running a networkmanager dispatcher[^1] for cases like this :) [^1]: https://github.com/fauno/librevpn/blob/develop/lib/skel/50_tincd -- :> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 584 bytes Desc: not available URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150202/50101d14/attachment.sig>
Florian Klink
2015-Feb-09 09:57 UTC
Tincd fails to resolve domain names before it is started name resolution becomes available.
Am 02.02.2015 um 19:32 schrieb Nicol?s Reynolds:> William Kennington <william-5Om/gJxqp8Dx9BLsLxWUfA at public.gmane.org> writes: > >> Agreed. >> On Feb 1, 2015 4:21 AM, "Etienne Dechamps" <etienne-ypMCQUleWbRvynnTyRI/EA at public.gmane.org> wrote: >> >>> Considering how cheap that operation seems to be, would it make sense >>> to call res_init() every time tinc retries a metaconnection? It's not >>> doing that very often anyway... and it would solve the OP's problem. > > +1 we were running a networkmanager dispatcher[^1] for cases like this :) > > > [^1]: https://github.com/fauno/librevpn/blob/develop/lib/skel/50_tincdI have some hosts which converted to systemd-networkd (which doesn't support hooks by now), and most of the time, tinc simply won't come up after bootup (or won't be able to reconnect when the network is changed), which is really ugly. Having a local dns in front is somewhat hacky, I'd really love if tinc would simply reload /etc/resolv.conf each time a new metaconnection is made. Florian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: OpenPGP digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150209/14c5b26b/attachment.sig>
Guus Sliepen
2015-Feb-09 14:42 UTC
Tincd fails to resolve domain names before it is started name resolution becomes available.
On Mon, Feb 09, 2015 at 10:57:05AM +0100, Florian Klink wrote:> I have some hosts which converted to systemd-networkd (which doesn't > support hooks by now), and most of the time, tinc simply won't come up > after bootup (or won't be able to reconnect when the network is > changed), which is really ugly. > > Having a local dns in front is somewhat hacky, I'd really love if tinc > would simply reload /etc/resolv.conf each time a new metaconnection is made.It's fixed in git now; res_init() is explicitly called before every call to getaddrinfo(). I hope some day the glibc maintainers will see the light that /etc/resolv.conf is not a static file. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150209/ec318804/attachment.sig>