do not capture local systemd dns traffic to localhost, as it's the systemd dns proxy itself. We only need to capture the remote servers.

This commit is contained in:
William Frank
2022-02-01 20:00:57 -05:00
parent c912559d02
commit 16b1401194

View File

@ -89,7 +89,8 @@ def resolvconf_nameservers(systemd_resolved):
# second file will fail. # second file will fail.
files = ['/etc/resolv.conf'] files = ['/etc/resolv.conf']
if systemd_resolved: if systemd_resolved:
files += ['/run/systemd/resolve/resolv.conf'] # If it's systemd based system - do not capture the stub service. Only remote servers
files = ['/run/systemd/resolve/resolv.conf']
nsservers = [] nsservers = []
for f in files: for f in files: