Fix tailscale smartdns in resolve.conf

This commit is contained in:
itdoginfo
2025-04-03 17:27:13 +03:00
parent c752c46abf
commit 76c5baf1e2
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ start_service() {
printf "\033[31;1mDetected https-dns-proxy. Disable or uninstall it for correct functionality.\033[0m\n"
fi
if ! grep -q "search lan" "$resolv_conf" || ! grep -q "nameserver 127.0.0.1" "$resolv_conf"; then
if ! grep -q "search lan" "$resolv_conf" || ! grep -q "nameserver 127.0.0.1" "$resolv_conf" || ! grep -q "search tail" "$resolv_conf"; then
echo "/etc/resolv.conf does not contain 'search lan' or 'nameserver 127.0.0.1' entries"
fi

View File

@@ -68,7 +68,7 @@ start() {
log "[critical] Detected https-dns-proxy. Disable or uninstall it for correct functionality."
fi
if ! grep -q "search lan" "$resolv_conf" || ! grep -q "nameserver 127.0.0.1" "$resolv_conf"; then
if ! grep -q "search lan" "$resolv_conf" || ! grep -q "nameserver 127.0.0.1" "$resolv_conf" || ! grep -q "search tail" "$resolv_conf"; then
log "[critical] /etc/resolv.conf does not contain 'search lan' or 'nameserver 127.0.0.1' entries"
fi