diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index ddc1d40..07a4185 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -121,6 +121,11 @@ fi # Setup unbound sudo dnf install unbound -y unpriv curl https://raw.githubusercontent.com/TommyTran732/Fedora-CoreOS-Ignition/main/etc/unbound/unbound.conf | sudo tee /etc/unbound/unbound.conf +sudo sed -i 's; ip-transparent: yes;# ip-transparent: yes;g' /etc/unbound/unbound.conf +sudo sed -i 's; interface: 127.0.0.1;# interface: 127.0.0.1;g' /etc/unbound/unbound.conf +sudo sed -i 's; interface: ::1;# interface: ::1;g' /etc/unbound/unbound.conf +sudo sed -i 's; interface: 242.242.0.1;# interface: 242.242.0.1;g' /etc/unbound/unbound.conf +sudo sed -i 's; access-control: 242.242.0.0/16 allow;# access-control: 242.242.0.0/16 allow;g' /etc/unbound/unbound.conf sudo chmod 644 /etc/unbound/unbound.conf sudo mkdir /etc/systemd/system/unbound.service.d unpriv curl https://raw.githubusercontent.com/TommyTran732/Fedora-CoreOS-Ignition/main/etc/systemd/system/unbound.service.d/override.conf | sudo tee /etc/systemd/system/unbound.service.d/override.conf diff --git a/RHEL-9.sh b/RHEL-9.sh index 0a15ba0..9bedacf 100644 --- a/RHEL-9.sh +++ b/RHEL-9.sh @@ -128,10 +128,11 @@ echo 'server: prefetch: yes prefetch-key: yes - ip-transparent: yes - interface: 127.0.0.1 - interface: 242.242.0.1 - access-control: 242.242.0.0/16 allow +# ip-transparent: yes +# interface: 127.0.0.1 +# interface: ::1 +# interface: 242.242.0.1 +# access-control: 242.242.0.0/16 allow forward-zone: name: "." diff --git a/Ubuntu-24.04-Server.sh b/Ubuntu-24.04-Server.sh index 6cd3963..70d85ba 100644 --- a/Ubuntu-24.04-Server.sh +++ b/Ubuntu-24.04-Server.sh @@ -164,10 +164,11 @@ echo 'server: prefetch: yes prefetch-key: yes - ip-transparent: yes - interface: 127.0.0.1 - interface: 242.242.0.1 - access-control: 242.242.0.0/16 allow +# ip-transparent: yes +# interface: 127.0.0.1 +# interface: ::1 +# interface: 242.242.0.1 +# access-control: 242.242.0.0/16 allow forward-zone: name: "."