From 07c727c643707c67893d2121eb45597d0b8ed4c2 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 24 Nov 2021 16:37:26 +0100 Subject: [PATCH] Improve system resolver paths for linux --- process/profile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/process/profile.go b/process/profile.go index a175b2e0..0068d73a 100644 --- a/process/profile.go +++ b/process/profile.go @@ -73,8 +73,10 @@ func (p *Process) GetProfile(ctx context.Context) (changed bool, err error) { "/usr/lib/systemd/systemd-resolved", "/lib64/systemd/systemd-resolved", "/usr/lib64/systemd/systemd-resolved", + "/usr/bin/nscd", "/usr/sbin/nscd", - "/usr/local/sbin/nscd": + "/usr/bin/dnsmasq", + "/usr/sbin/dnsmasq": profileID = profile.SystemResolverProfileID } }