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

feat: cache dns result for one session #166

Merged
merged 1 commit into from
Jun 11, 2022
Merged

feat: cache dns result for one session #166

merged 1 commit into from
Jun 11, 2022

Conversation

rapiz1
Copy link
Owner

@rapiz1 rapiz1 commented Jun 10, 2022

Cache the rathole server IP address in the client for one session, which is, a control channel starting up and shutting down. This only affects the client. The server will not cache any DNS queries ( and it shouldn't ).

Resolves #151

@rapiz1 rapiz1 marked this pull request as ready for review June 11, 2022 03:39
@rapiz1 rapiz1 merged commit 1f2fc5b into main Jun 11, 2022
@rapiz1 rapiz1 deleted the cache-dns branch June 11, 2022 03:39
@hak0
Copy link

hak0 commented Aug 7, 2022

Does that mean that once the connection is established, the client will always use the initial IP address? Recently I received [Errno 101] Network is unreachable when connecting to my DDNS server after days, and I wonder whether this is the expected behavior.

@rapiz1
Copy link
Owner Author

rapiz1 commented Aug 7, 2022 via email

@hak0
Copy link

hak0 commented Aug 7, 2022

I see. So it is my client's systemwide DNS resolution that caused the problem, not the rathole. Thanks!

@captainnx
Copy link

如果服务器的域名解析时常会变化呢?家里的公网ip都是动态的

@rapiz1
Copy link
Owner Author

rapiz1 commented Aug 18, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DNS query of server adress every second
3 participants