Change in openvpn[master]: dns option: remove support for exclude-domains
A message that is not in the archive (sent off-list or not yet received): gerrit.1677684971000.I7f422add22f3f01e9f47985065782dd67bca46eb@...2715...
Attention is currently required from: flichtenheld, plaisthos.
d12fk has uploaded this change for review. ( http://gerrit.openvpn.net/c/openvpn/+/39?usp=email )
Change subject: dns option: remove support for exclude-domains
......................................................................
dns option: remove support for exclude-domains
No DNS resolver currently supports this and it is not possible to emulate the behavior without the chance of errors. Finding the effective default system DNS server(s) to specify the exclude DNS routes is not trivial and cannot be verified to be correct without resolver internal knowledge. So, it is better to not support this instead of supporting it, but incorrectly.
---
M doc/man-sections/client-options.rst
M doc/man-sections/script-options.rst
M src/openvpn/dns.c
M src/openvpn/dns.h
M src/openvpn/options.c
5 files changed, 7 insertions(+), 45 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/39/6
doc/man-sections/client-options.rst +5 -9
@@ -169,7 +169,7 @@ dns search-domains domain [domain ...] dns server n address addr[:port] [addr[:port] ...] - dns server n resolve-domains|exclude-domains domain [domain ...] + dns server n resolve-domains domain [domain ...] dns server n dnssec yes|optional|no dns server n transport DoH|DoT|plain dns server n sni server-name
@@ -191,14 +191,10 @@ Optionally a port can be appended after a colon. IPv6 addresses need to be enclosed in brackets if a port is appended. - The ``resolve-domains`` and ``exclude-domains`` options take one or - more DNS domains which are explicitly resolved or explicitly not resolved - by a server. Only one of the options can be configured for a server. - ``resolve-domains`` is used to define a split-dns setup, where only - given domains are resolved by a server. ``exclude-domains`` is used to - define domains which will never be resolved by a server (e.g. domains - which can only be resolved locally). Systems which do not support fine - grained DNS domain configuration, will ignore these settings. + The ``resolve-domains`` option takes one or more DNS domains used to define + a split-dns or dns-routing setup, where only the given domains are resolved + by the server. Systems which do not support fine grained DNS domain + configuration, will ignore this setting. The ``dnssec`` option is used to configure validation of DNSSEC records. While the exact semantics may differ for resolvers on different systems,
doc/man-sections/script-options.rst +0 -1
@@ -663,7 +663,6 @@ dns_server_{n}_address_{m} dns_server_{n}_port_{m} dns_server_{n}_resolve_domain_{m} - dns_server_{n}_exclude_domain_{m} dns_server_{n}_dnssec dns_server_{n}_transport dns_server_{n}_sni
src/openvpn/dns.c +2 -11
@@ -402,11 +402,9 @@if (s->domains) { -const char *format = s->domain_type ==DNS_RESOLVE_DOMAINS ? -"dns_server_%d_resolve_domain_%d" :"dns_server_%d_exclude_domain_%d" ;for (j =1 , d = s->domains; d !=NULL ; j++, d = d->next) { -setenv_dns_option (es, format, i, j, d->name); +setenv_dns_option (es,"dns_server_%d_resolve_domain_%d" , i, j, d->name); } }
@@ -484,14 +482,7 @@struct dns_domain *domain = server->domains;if (domain) { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (D_SHOW_PARMS ," resolve domains:" ); - } -else - { -msg (D_SHOW_PARMS ," exclude domains:" ); - } +msg (D_SHOW_PARMS ," resolve domains:" );while (domain) {msg (D_SHOW_PARMS ," %s" , domain->name);
src/openvpn/dns.h +0 -7
@@ -27,12 +27,6 @@#include "buffer.h" #include "env_set.h" -enum dns_domain_type { -DNS_DOMAINS_UNSET , -DNS_RESOLVE_DOMAINS , -DNS_EXCLUDE_DOMAINS -}; -enum dns_security {DNS_SECURITY_UNSET ,DNS_SECURITY_NO ,
@@ -68,7 +62,6 @@size_t addr_count;struct dns_server_addr addr[8 ];struct dns_domain *domains; -enum dns_domain_type domain_type;enum dns_security dnssec;enum dns_server_transport transport;const char *sni;
src/openvpn/options.c +0 -17
@@ -514,7 +514,6 @@" Valid options are :\n" " address <addr[:port]> [addr[:port] ...] : server addresses 4/6\n" " resolve-domains <domain> [domain ...] : split domains\n" -" exclude-domains <domain> [domain ...] : domains not to resolve\n" " dnssec <yes|no|optional> : option to use DNSSEC\n" " type <DoH|DoT> : query server over HTTPS / TLS\n" " sni <domain> : DNS server name indication\n"
@@ -8022,22 +8021,6 @@ }else if (streq (p[3 ],"resolve-domains" )) { -if (server->domain_type ==DNS_EXCLUDE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use resolve-domains and exclude-domains" , priority); - goto err; - } - server->domain_type =DNS_RESOLVE_DOMAINS ; -dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); - } -else if (streq (p[3 ],"exclude-domains" )) - { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use exclude-domains and resolve-domains" , priority); - goto err; - } - server->domain_type =DNS_EXCLUDE_DOMAINS ;dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); }else if (streq (p[3 ],"dnssec" ) && !p[5 ])
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/39?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7f422add22f3f01e9f47985065782dd67bca46eb
Gerrit-Change-Number: 39
Gerrit-PatchSet: 6
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: d12fk, flichtenheld, plaisthos.
stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/39?usp=email )
Change subject: dns option: remove support for exclude-domains
......................................................................
Patch Set 6: Code-Review+2
(2 comments)
Patchset:
PS6:
Looks good to me. I wonder why we decided to add this option initially if no resolvers support it.
File doc/man-sections/client-options.rst:
http://gerrit.openvpn.net/c/openvpn/+/39/comment/c2458c42_e3d89d93 :
PS6, Line 197: configuration, will ignore this setting.
Comma is not needed before "will ignore this setting"
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/39?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7f422add22f3f01e9f47985065782dd67bca46eb
Gerrit-Change-Number: 39
Gerrit-PatchSet: 6
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: d12fk <[email protected]...>
Gerrit-Comment-Date: Thu, 14 Sep 2023 11:37:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 dns option: remove support for exclude-domains
In reply to a message not in the archiveFrom: Heiko Hund <[email protected]...>
No DNS resolver currently supports this and it is not possible to emulate the behavior without the chance of errors. Finding the effective default system DNS server(s) to specify the exclude DNS routes is not trivial and cannot be verified to be correct without resolver internal knowledge. So, it is better to not support this instead of supporting it, but incorrectly.
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/39
This mail reflects revision 6 of this Change. Acked-by according to Gerrit (reflected above):
lstipakov <[email protected]...>
Submitter note:
Manually removed comma in documentation according to
https://gerrit.openvpn.net/c/openvpn/+/39/comment/c2458c42_e3d89d93/
doc/man-sections/client-options.rst +5 -9
@@ -169,7 +169,7 @@ dns search-domains domain [domain ...] dns server n address addr[:port] [addr[:port] ...] - dns server n resolve-domains|exclude-domains domain [domain ...] + dns server n resolve-domains domain [domain ...] dns server n dnssec yes|optional|no dns server n transport DoH|DoT|plain dns server n sni server-name
@@ -191,14 +191,10 @@ Optionally a port can be appended after a colon. IPv6 addresses need to be enclosed in brackets if a port is appended. - The ``resolve-domains`` and ``exclude-domains`` options take one or - more DNS domains which are explicitly resolved or explicitly not resolved - by a server. Only one of the options can be configured for a server. - ``resolve-domains`` is used to define a split-dns setup, where only - given domains are resolved by a server. ``exclude-domains`` is used to - define domains which will never be resolved by a server (e.g. domains - which can only be resolved locally). Systems which do not support fine - grained DNS domain configuration, will ignore these settings. + The ``resolve-domains`` option takes one or more DNS domains used to define + a split-dns or dns-routing setup, where only the given domains are resolved + by the server. Systems which do not support fine grained DNS domain + configuration will ignore this setting. The ``dnssec`` option is used to configure validation of DNSSEC records. While the exact semantics may differ for resolvers on different systems,
doc/man-sections/script-options.rst +0 -1
@@ -663,7 +663,6 @@ dns_server_{n}_address_{m} dns_server_{n}_port_{m} dns_server_{n}_resolve_domain_{m} - dns_server_{n}_exclude_domain_{m} dns_server_{n}_dnssec dns_server_{n}_transport dns_server_{n}_sni
src/openvpn/dns.c +2 -11
@@ -402,11 +402,9 @@if (s->domains) { -const char *format = s->domain_type ==DNS_RESOLVE_DOMAINS ? -"dns_server_%d_resolve_domain_%d" :"dns_server_%d_exclude_domain_%d" ;for (j =1 , d = s->domains; d !=NULL ; j++, d = d->next) { -setenv_dns_option (es, format, i, j, d->name); +setenv_dns_option (es,"dns_server_%d_resolve_domain_%d" , i, j, d->name); } }
@@ -484,14 +482,7 @@struct dns_domain *domain = server->domains;if (domain) { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (D_SHOW_PARMS ," resolve domains:" ); - } -else - { -msg (D_SHOW_PARMS ," exclude domains:" ); - } +msg (D_SHOW_PARMS ," resolve domains:" );while (domain) {msg (D_SHOW_PARMS ," %s" , domain->name);
src/openvpn/dns.h +0 -7
@@ -27,12 +27,6 @@#include "buffer.h" #include "env_set.h" -enum dns_domain_type { -DNS_DOMAINS_UNSET , -DNS_RESOLVE_DOMAINS , -DNS_EXCLUDE_DOMAINS -}; -enum dns_security {DNS_SECURITY_UNSET ,DNS_SECURITY_NO ,
@@ -68,7 +62,6 @@size_t addr_count;struct dns_server_addr addr[8 ];struct dns_domain *domains; -enum dns_domain_type domain_type;enum dns_security dnssec;enum dns_server_transport transport;const char *sni;
src/openvpn/options.c +0 -17
@@ -514,7 +514,6 @@" Valid options are :\n" " address <addr[:port]> [addr[:port] ...] : server addresses 4/6\n" " resolve-domains <domain> [domain ...] : split domains\n" -" exclude-domains <domain> [domain ...] : domains not to resolve\n" " dnssec <yes|no|optional> : option to use DNSSEC\n" " type <DoH|DoT> : query server over HTTPS / TLS\n" " sni <domain> : DNS server name indication\n"
@@ -8022,22 +8021,6 @@ }else if (streq (p[3 ],"resolve-domains" )) { -if (server->domain_type ==DNS_EXCLUDE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use resolve-domains and exclude-domains" , priority); - goto err; - } - server->domain_type =DNS_RESOLVE_DOMAINS ; -dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); - } -else if (streq (p[3 ],"exclude-domains" )) - { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use exclude-domains and resolve-domains" , priority); - goto err; - } - server->domain_type =DNS_EXCLUDE_DOMAINS ;dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); }else if (streq (p[3 ],"dnssec" ) && !p[5 ])
[Openvpn-devel] [PATCH applied] Re: dns option: remove support for exclude-domains
Change makes sense, and doesn't break any of the GH tests :-)
I have applied this to 2.6 as well, as it doesn't really make sense to keep these options, pretending "an implementation might come" when we already know they are going away.
Something strange has happened to the mailing list archive - it pretends that *this* patch e-mail just never arrived there, while the original patch is there - so I've pointed "URL:" there.
Your patch has been applied to the master and release/2.6 branch.
commit b7eea48708ee73a5999f98626fb8d31d8f88ea6f (master) commit b033683bf982200471e53b18600e3a2f541ab3f2 (release/2.6)
Author: Heiko Hund Date: Fri Sep 22 12:43:34 2023 +0200
dns option: remove support for exclude-domains
Signed-off-by: Heiko Hund <[email protected]...>
Acked-by: Lev Stipakov <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27008.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#7) to the change originally created by d12fk. ( http://gerrit.openvpn.net/c/openvpn/+/39?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by stipa
Change subject: dns option: remove support for exclude-domains
......................................................................
dns option: remove support for exclude-domains
No DNS resolver currently supports this and it is not possible to emulate the behavior without the chance of errors. Finding the effective default system DNS server(s) to specify the exclude DNS routes is not trivial and cannot be verified to be correct without resolver internal knowledge. So, it is better to not support this instead of supporting it, but incorrectly.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27008.html
---
M doc/man-sections/client-options.rst
M doc/man-sections/script-options.rst
M src/openvpn/dns.c
M src/openvpn/dns.h
M src/openvpn/options.c
5 files changed, 7 insertions(+), 45 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/39/39/7
doc/man-sections/client-options.rst +5 -9
@@ -169,7 +169,7 @@ dns search-domains domain [domain ...] dns server n address addr[:port] [addr[:port] ...] - dns server n resolve-domains|exclude-domains domain [domain ...] + dns server n resolve-domains domain [domain ...] dns server n dnssec yes|optional|no dns server n transport DoH|DoT|plain dns server n sni server-name
@@ -191,14 +191,10 @@ Optionally a port can be appended after a colon. IPv6 addresses need to be enclosed in brackets if a port is appended. - The ``resolve-domains`` and ``exclude-domains`` options take one or - more DNS domains which are explicitly resolved or explicitly not resolved - by a server. Only one of the options can be configured for a server. - ``resolve-domains`` is used to define a split-dns setup, where only - given domains are resolved by a server. ``exclude-domains`` is used to - define domains which will never be resolved by a server (e.g. domains - which can only be resolved locally). Systems which do not support fine - grained DNS domain configuration, will ignore these settings. + The ``resolve-domains`` option takes one or more DNS domains used to define + a split-dns or dns-routing setup, where only the given domains are resolved + by the server. Systems which do not support fine grained DNS domain + configuration will ignore this setting. The ``dnssec`` option is used to configure validation of DNSSEC records. While the exact semantics may differ for resolvers on different systems,
doc/man-sections/script-options.rst +0 -1
@@ -663,7 +663,6 @@ dns_server_{n}_address_{m} dns_server_{n}_port_{m} dns_server_{n}_resolve_domain_{m} - dns_server_{n}_exclude_domain_{m} dns_server_{n}_dnssec dns_server_{n}_transport dns_server_{n}_sni
src/openvpn/dns.c +2 -11
@@ -400,11 +400,9 @@if (s->domains) { -const char *format = s->domain_type ==DNS_RESOLVE_DOMAINS ? -"dns_server_%d_resolve_domain_%d" :"dns_server_%d_exclude_domain_%d" ;for (j =1 , d = s->domains; d !=NULL ; j++, d = d->next) { -setenv_dns_option (es, format, i, j, d->name); +setenv_dns_option (es,"dns_server_%d_resolve_domain_%d" , i, j, d->name); } }
@@ -482,14 +480,7 @@struct dns_domain *domain = server->domains;if (domain) { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (D_SHOW_PARMS ," resolve domains:" ); - } -else - { -msg (D_SHOW_PARMS ," exclude domains:" ); - } +msg (D_SHOW_PARMS ," resolve domains:" );while (domain) {msg (D_SHOW_PARMS ," %s" , domain->name);
src/openvpn/dns.h +0 -7
@@ -27,12 +27,6 @@#include "buffer.h" #include "env_set.h" -enum dns_domain_type { -DNS_DOMAINS_UNSET , -DNS_RESOLVE_DOMAINS , -DNS_EXCLUDE_DOMAINS -}; -enum dns_security {DNS_SECURITY_UNSET ,DNS_SECURITY_NO ,
@@ -68,7 +62,6 @@size_t addr_count;struct dns_server_addr addr[8 ];struct dns_domain *domains; -enum dns_domain_type domain_type;enum dns_security dnssec;enum dns_server_transport transport;const char *sni;
src/openvpn/options.c +0 -17
@@ -512,7 +512,6 @@" Valid options are :\n" " address <addr[:port]> [addr[:port] ...] : server addresses 4/6\n" " resolve-domains <domain> [domain ...] : split domains\n" -" exclude-domains <domain> [domain ...] : domains not to resolve\n" " dnssec <yes|no|optional> : option to use DNSSEC\n" " type <DoH|DoT> : query server over HTTPS / TLS\n" " sni <domain> : DNS server name indication\n"
@@ -8022,22 +8021,6 @@ }else if (streq (p[3 ],"resolve-domains" )) { -if (server->domain_type ==DNS_EXCLUDE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use resolve-domains and exclude-domains" , priority); - goto err; - } - server->domain_type =DNS_RESOLVE_DOMAINS ; -dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); - } -else if (streq (p[3 ],"exclude-domains" )) - { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use exclude-domains and resolve-domains" , priority); - goto err; - } - server->domain_type =DNS_EXCLUDE_DOMAINS ;dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); }else if (streq (p[3 ],"dnssec" ) && !p[5 ])
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/39?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7f422add22f3f01e9f47985065782dd67bca46eb
Gerrit-Change-Number: 39
Gerrit-PatchSet: 7
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/39?usp=email )
Change subject: dns option: remove support for exclude-domains
......................................................................
dns option: remove support for exclude-domains
No DNS resolver currently supports this and it is not possible to emulate the behavior without the chance of errors. Finding the effective default system DNS server(s) to specify the exclude DNS routes is not trivial and cannot be verified to be correct without resolver internal knowledge. So, it is better to not support this instead of supporting it, but incorrectly.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg27008.html
---
M doc/man-sections/client-options.rst
M doc/man-sections/script-options.rst
M src/openvpn/dns.c
M src/openvpn/dns.h
M src/openvpn/options.c
5 files changed, 7 insertions(+), 45 deletions(-)
doc/man-sections/client-options.rst +5 -9
@@ -169,7 +169,7 @@ dns search-domains domain [domain ...] dns server n address addr[:port] [addr[:port] ...] - dns server n resolve-domains|exclude-domains domain [domain ...] + dns server n resolve-domains domain [domain ...] dns server n dnssec yes|optional|no dns server n transport DoH|DoT|plain dns server n sni server-name
@@ -191,14 +191,10 @@ Optionally a port can be appended after a colon. IPv6 addresses need to be enclosed in brackets if a port is appended. - The ``resolve-domains`` and ``exclude-domains`` options take one or - more DNS domains which are explicitly resolved or explicitly not resolved - by a server. Only one of the options can be configured for a server. - ``resolve-domains`` is used to define a split-dns setup, where only - given domains are resolved by a server. ``exclude-domains`` is used to - define domains which will never be resolved by a server (e.g. domains - which can only be resolved locally). Systems which do not support fine - grained DNS domain configuration, will ignore these settings. + The ``resolve-domains`` option takes one or more DNS domains used to define + a split-dns or dns-routing setup, where only the given domains are resolved + by the server. Systems which do not support fine grained DNS domain + configuration will ignore this setting. The ``dnssec`` option is used to configure validation of DNSSEC records. While the exact semantics may differ for resolvers on different systems,
doc/man-sections/script-options.rst +0 -1
@@ -663,7 +663,6 @@ dns_server_{n}_address_{m} dns_server_{n}_port_{m} dns_server_{n}_resolve_domain_{m} - dns_server_{n}_exclude_domain_{m} dns_server_{n}_dnssec dns_server_{n}_transport dns_server_{n}_sni
src/openvpn/dns.c +2 -11
@@ -400,11 +400,9 @@if (s->domains) { -const char *format = s->domain_type ==DNS_RESOLVE_DOMAINS ? -"dns_server_%d_resolve_domain_%d" :"dns_server_%d_exclude_domain_%d" ;for (j =1 , d = s->domains; d !=NULL ; j++, d = d->next) { -setenv_dns_option (es, format, i, j, d->name); +setenv_dns_option (es,"dns_server_%d_resolve_domain_%d" , i, j, d->name); } }
@@ -482,14 +480,7 @@struct dns_domain *domain = server->domains;if (domain) { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (D_SHOW_PARMS ," resolve domains:" ); - } -else - { -msg (D_SHOW_PARMS ," exclude domains:" ); - } +msg (D_SHOW_PARMS ," resolve domains:" );while (domain) {msg (D_SHOW_PARMS ," %s" , domain->name);
src/openvpn/dns.h +0 -7
@@ -27,12 +27,6 @@#include "buffer.h" #include "env_set.h" -enum dns_domain_type { -DNS_DOMAINS_UNSET , -DNS_RESOLVE_DOMAINS , -DNS_EXCLUDE_DOMAINS -}; -enum dns_security {DNS_SECURITY_UNSET ,DNS_SECURITY_NO ,
@@ -68,7 +62,6 @@size_t addr_count;struct dns_server_addr addr[8 ];struct dns_domain *domains; -enum dns_domain_type domain_type;enum dns_security dnssec;enum dns_server_transport transport;const char *sni;
src/openvpn/options.c +0 -17
@@ -512,7 +512,6 @@" Valid options are :\n" " address <addr[:port]> [addr[:port] ...] : server addresses 4/6\n" " resolve-domains <domain> [domain ...] : split domains\n" -" exclude-domains <domain> [domain ...] : domains not to resolve\n" " dnssec <yes|no|optional> : option to use DNSSEC\n" " type <DoH|DoT> : query server over HTTPS / TLS\n" " sni <domain> : DNS server name indication\n"
@@ -8022,22 +8021,6 @@ }else if (streq (p[3 ],"resolve-domains" )) { -if (server->domain_type ==DNS_EXCLUDE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use resolve-domains and exclude-domains" , priority); - goto err; - } - server->domain_type =DNS_RESOLVE_DOMAINS ; -dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); - } -else if (streq (p[3 ],"exclude-domains" )) - { -if (server->domain_type ==DNS_RESOLVE_DOMAINS ) - { -msg (msglevel,"--dns server %ld: cannot use exclude-domains and resolve-domains" , priority); - goto err; - } - server->domain_type =DNS_EXCLUDE_DOMAINS ;dns_domain_list_append (&server->domains, &p[4 ], &options->dns_options.gc); }else if (streq (p[3 ],"dnssec" ) && !p[5 ])
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/39?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7f422add22f3f01e9f47985065782dd67bca46eb
Gerrit-Change-Number: 39
Gerrit-PatchSet: 7
Gerrit-Owner: d12fk <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-Reviewer: stipa <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged