Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Flush DNS cache on ubuntu 22.04+
  • Loading branch information
pmeenan committed May 31, 2023
1 parent 6441d4a commit c5982fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/os_util.py
Expand Up @@ -60,6 +60,7 @@ def flush_dns():
subprocess.call(['sudo', 'service', 'dnsmasq', 'restart'])
subprocess.call(['sudo', 'rndc', 'restart'])
subprocess.call(['sudo', 'systemd-resolve', '--flush-caches'])
subprocess.call(['sudo', 'resolvectl', 'flush-caches'])

# pylint: disable=E0611,E0401
def run_elevated(command, args, wait=True):
Expand Down

0 comments on commit c5982fd

Please sign in to comment.