]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Added support for DHCP option 119 (dns search suffix list) for Windows.
authorJan Just Keijser <jan.just.keijser@gmail.com>
Tue, 14 Jul 2020 09:39:10 +0000 (11:39 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 14 Jul 2020 12:46:41 +0000 (14:46 +0200)
commit78359a0478da64e18d49b13ea2e09def2b89f4a6
treecabaf03469781db97fb3d11a5f29f5f627720881
parent0c8c50ca93392e1d0534ac35637899e0017863b9
Added support for DHCP option 119 (dns search suffix list) for Windows.

As of Windows 10 1809 Windows finally supports this so it makes sense
to add support to OpenVPN as well.

Multiple options can be specified at the same time, with one search
domain per line (in the config, or pushed from server):

  dhcp-option DOMAIN-SEARCH my.company.domain
  dhcp-option DOMAIN-SEARCH some.example.domain

OpenVPN will (on windows) concatenate them all together into a single
"option 119" for the tapv9 DHCP server.  Max length is 254 in total.

DNS label compression is not used - it's complicated, and Windows does
not need it.  See RFC 3397 for more details.

This only works with the tun/tap driver, not with wintun.

On non-windows platforms, these settings are exported in the environment
towards --up scripts (or to the management interface), and need to be
picked up there.

Signed-off-by: Jan Just Keijser <jan.just.keijser@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <c404dd17-e0db-ce61-0d79-864a5736f2d0@nikhef.nl>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20349.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/options.c
src/openvpn/tun.c
src/openvpn/tun.h