Skip to content

Flush systemd DNS cache on startup and exit.#634

Merged
brianmay merged 1 commit intosshuttle:masterfrom
skuhl:systemd-dns-flush
May 18, 2021
Merged

Flush systemd DNS cache on startup and exit.#634
brianmay merged 1 commit intosshuttle:masterfrom
skuhl:systemd-dns-flush

Conversation

@skuhl
Copy link
Contributor

@skuhl skuhl commented May 5, 2021

It is possible for DNS requests to go through systemd's DNS resolution
system (which includes a cache) before sshuttle has an opportunity to
intercept the requests. The DNS entries in the cache may become
outdated when sshuttle starts or exits. This patch fixes the problem
by flushing the cache when sshuttle firewall starts and exits.

This implements a suggestion in #554.

It is possible for DNS requests to go through systemd's DNS resolution
system (which includes a cache) before sshuttle has an opportunity to
intercept the requests. The DNS entries in the cache may become
outdated when sshuttle starts or exits. This patch fixes the problem
by flushing the cache when sshuttle firewall starts and exits.
Copy link
Member

@brianmay brianmay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, have been unahppy integrating systemd stuff directly into the core functionality like this. But I can't think of a better solution, so will probably accept, once you respond to the other feeback I provided.

@brianmay brianmay merged commit f376674 into sshuttle:master May 18, 2021
@skuhl skuhl deleted the systemd-dns-flush branch May 24, 2021 18:50
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.

2 participants