]> git.ipfire.org Git - thirdparty/openvpn.git/commit
add support for --dns option
authorHeiko Hund <heiko@ist.eigentlich.net>
Wed, 23 Mar 2022 14:34:52 +0000 (15:34 +0100)
committerGert Doering <gert@greenie.muc.de>
Tue, 29 Mar 2022 13:40:32 +0000 (15:40 +0200)
commitb3e0d95dcfd0de2a5fe6545fed8f46e0dd35784d
treec9f855cf505b13387fc08f564062f5b83957e5b3
parent47671d6d6814eadb3dd5e742ebc40c6f21038224
add support for --dns option

As a first step towards DNS configuration in openvpn and a unified way
to push DNS related settings to clients in v2 and v3, this commit adds
support for parsing the new --dns option. Later commits will add support
for setting up DNS on different platforms.

For now, --dns and DNS related --dhcp-option can be used together for
smoother transition. Settings from --dns will override ones --dhcp-option
where applicable.

For detailed information about the option consult the documentation in
this commit.

Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220323143452.1100446-1-heiko@ist.eigentlich.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg23997.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
13 files changed:
doc/man-sections/client-options.rst
doc/man-sections/script-options.rst
doc/man-sections/server-options.rst
src/openvpn/Makefile.am
src/openvpn/dns.c [new file with mode: 0644]
src/openvpn/dns.h [new file with mode: 0644]
src/openvpn/openvpn.vcxproj
src/openvpn/openvpn.vcxproj.filters
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/push.c
src/openvpn/socket.c
src/openvpn/socket.h