Add IPv6 for self-hosted DNS Resolver

This commit is contained in:
Henry N 2020-03-31 00:43:04 +02:00 committed by GitHub
parent 44105eb060
commit 192fdb156c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -760,6 +760,9 @@ ifconfig-pool-persist ipp.txt" >> /etc/openvpn/server.conf
;;
2)
echo 'push "dhcp-option DNS 10.8.0.1"' >> /etc/openvpn/server.conf
if [[ "$IPV6_SUPPORT" == 'y' ]]; then
echo 'push "dhcp-option DNS fd42:42:42:42::1"' >> /etc/openvpn/server.conf
fi
;;
3) # Cloudflare
echo 'push "dhcp-option DNS 1.0.0.1"' >> /etc/openvpn/server.conf