Skip to content

disable dns cache flush #1169

Closed
Closed

Description

@ileGITimo

Is there a way to disable sshuttle's attempt to flush the DNS cache?

Maybe my systemd or NetworkManager is misconfigured. I run named on the machine where I use sshutle, have systemd-resolved disabled/masked,NM has dns=none, and manually manage adding remote hosts to /etc/hosts. When I start sshuttle I always get these warnings:

Failed to flush caches: Could not activate remote peer 'org.freedesktop.resolve1': activation request failed: unknown unit
fw: Received non-zero return code 1 when flushing DNS resolver cache.

Everything works, it is just slightly annoying.

Activity

  1. abhinavrastogi2627 commented on Oct 24, 2026

    @abhinavrastogi2627
    Contributor

    I am working on an explicit option to skip systemd DNS cache flushing at startup and shutdown, keeping the default behavior unchanged. I will cover option propagation into the firewall helper and both lifecycle flush points with mocked regression tests. I found no existing PR for this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions