Update pihole-v5-install.sh

free port 53
This commit is contained in:
tteckster 2023-01-27 22:09:23 -05:00 committed by GitHub
parent 13ece7ef08
commit e075b4954a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,9 @@ $STD apt-get install -y ntp
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Pi-hole" 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/ mkdir -p /etc/pihole/
cat <<EOF >/etc/pihole/setupVars.conf cat <<EOF >/etc/pihole/setupVars.conf
PIHOLE_INTERFACE=eth0 PIHOLE_INTERFACE=eth0