alfredopalhares / openvpn-update-resolv-conf

Script that updates DNS settings are pushed by the OpenVPN server
458 stars 130 forks source link

DNS6 support #39

Open mike4420 opened 2 weeks ago

mike4420 commented 2 weeks ago

Please add support for DNS6 entries:

43c43
<           if [ "$part2" = "DNS" -o "$part2" = "DNS6" ] ; then
---
>           if [ "$part2" = "DNS" ] ; then

Thanks, Mike

alfredopalhares commented 2 weeks ago

Not sure If I follow can you care to explain ?

mike4420 commented 2 weeks ago

openvpn server can push dhcp-option DNS6, in which case the openvpn-update-resolv-conf script will ignore it, since it expects "DNS" string only.

Overview of changes in 2.4

Support for providing IPv6 DNS servers

    A new DHCP sub-option DNS6 is added alongside with the already existing DNS sub-option. This is used to provide DNS resolvers available over IPv6. This may be pushed to clients where `` --up`` scripts and --plugin can act upon it through the foreign_option_<n> environment variables.

    Support for the Windows client picking up this new sub-option is added, however IPv6 DNS resolvers need to be configured via netsh which requires administrator privileges unless the new interactive services on Windows is being used. If the interactive service is used, this service will execute netsh in the background with the proper privileges.