This commit is contained in:
Girish Ramakrishnan
2025-11-27 18:17:22 +01:00
parent f380a6f8cf
commit 51f5f0b82d

View File

@@ -581,10 +581,10 @@ function unbound_forward_dns() {
info "To remove the forwarding, please delete $conf_file and 'systemctl restart unbound'"
case "$2" in
case "$1" in
google) ns_list="8.8.8.8,4.4.4.4";; # https://developers.google.com/speed/public-dns
cloudflare) ns_list="1.1.1.1,1.0.0.1";; # https://developers.cloudflare.com/1.1.1.1/ip-addresses/
*) ns_list="$2";;
*) ns_list="$1";;
esac
forward_addrs=$(echo "$ns_list" | tr ',' '\n' | sed 's/^/ forward-addr: /')
@@ -597,7 +597,7 @@ EOF
systemctl restart unbound
success "Forwarded all DNS requests to Google (8.8.8.8) & Cloudflare DNS (1.1.1.1)"
success "Forwarded all DNS requests to ${ns_list}"
}
function disable_dnssec() {