Browse Source

Update pihole-v5-install.sh

free port 53
tteckster 2 years ago
parent
commit
e075b4954a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      install/pihole-v5-install.sh

+ 3 - 0
install/pihole-v5-install.sh

@@ -93,6 +93,9 @@ $STD apt-get install -y ntp
 msg_ok "Installed Dependencies"
 
 msg_info "Installing Pi-hole"
+systemctl stop systemd-resolved
+echo "DNSStubListener=no" >>/etc/systemd/resolved.conf
+ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
 mkdir -p /etc/pihole/
 cat <<EOF >/etc/pihole/setupVars.conf
 PIHOLE_INTERFACE=eth0