Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS failure and delays break connections #442

Open
pacien opened this issue Sep 6, 2023 · 1 comment
Open

DNS failure and delays break connections #442

pacien opened this issue Sep 6, 2023 · 1 comment
Labels
bug Issues in which the users gave a clear indication to the causes of the unexpected behaviour

Comments

@pacien
Copy link
Contributor

pacien commented Sep 6, 2023

In case of DNS resolver malfunction (unavailability or slow response),
the delay introduced by DNS queries causes other connections to get closed.

In the worst case, this causes a complete disconnection of the node to its tinc
network, without being able to reconnect (looping with the same issue).

The root issue is that name resolution queries seem to be done synchronously?

A workaround for this is to only use IP addresses in Address fields,
but this is not always possible (for example for hosts with dynamic addresses
relying on dyndns).

tincd: Ready
tincd: Error looking up [REDACTED] port 655: Temporary failure in name resolution
tincd: Error looking up [REDACTED] port 655: Temporary failure in name resolution
tincd: Error looking up [REDACTED] port 655: Temporary failure in name resolution
tincd: Error looking up [REDACTED] port 655: Temporary failure in name resolution
tincd: Error looking up [REDACTED] port 655: Temporary failure in name resolution
tincd: Error looking up [REDACTED] port 655: Temporary failure in name resolution
tincd: Awaking from dead after 90 seconds of sleep
tincd: Forcing connection close after sleep time [REDACTED] ([REDACTED] port 655)
tincd: Forcing connection close after sleep time [REDACTED] ([REDACTED] port 655)
tincd: Forcing connection close after sleep time [REDACTED] ([REDACTED] port 655)

Tinc version 1.1pre18

@splitice
Copy link
Contributor

splitice commented Mar 3, 2024

I have a WIP pr for this.

Stuck on failing ci but I can't view the ci logs to find out why.

@gsliepen gsliepen added the bug Issues in which the users gave a clear indication to the causes of the unexpected behaviour label Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues in which the users gave a clear indication to the causes of the unexpected behaviour
Projects
None yet
Development

No branches or pull requests

3 participants