chiark / gitweb /
resolve: rename PrivateDNS to DNSOverTLS
authorIwan Timmer <irtimmer@gmail.com>
Wed, 13 Jun 2018 18:26:24 +0000 (20:26 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS

NEWS
meson.build
meson_options.txt
shell-completion/bash/resolvectl

diff --git a/NEWS b/NEWS
index 44ae6de03d389bf20826d70eb86d6b3edd33a68e..2ff6246028650f0146d5ea4aa8693c8a1e69c06f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -53,8 +53,8 @@ CHANGES WITH 239 in spe:
           configuration settings to change the resolution explicitly.
 
         * The elogind-resolve tool has been renamed to resolvectl (it also
-        * elogind-resolved now supports DNS-over-TLS ("PrivateDNS"). It's still
-          turned off by default, use PrivateDNS=opportunistic to turn it on in
+        * elogind-resolved now supports DNS-over-TLS. It's still
+          turned off by default, use DNSOverTLS=opportunistic to turn it on in
           resolved.conf. We intend to make this the default as soon as couple
           of additional techniques for optimizing the initial latency caused by
           establishing a TLS/TCP connection are implemented.
index b7326427b549bcc66460b00d217dc4c93a1b9cc1..46a4d05d6de10ee7823102087786b98d36d6b69f 100644 (file)
@@ -1300,17 +1300,17 @@ conf.set10('HAVE_DBUS', have)
 #          'DNSSEC_' + default_dnssec.underscorify().to_upper())
 # substs.set('DEFAULT_DNSSEC_MODE', default_dnssec)
 # 
-# default_private_dns = get_option('default-private-dns')
+# default_dns_over_tls = get_option('default-dns-over-tls')
 # if fuzzer_build
-#         default_private_dns = 'no'
+#         default_dns_over_tls = 'no'
 # endif
-# if default_private_dns != 'no' and conf.get('HAVE_GNUTLS') == 0
-#         message('default-private-dns cannot be set to strict or opportunistic when gnutls is disabled. Setting default-private-dns to no.')
-#         default_private_dns = 'no'
+# if default_dns_over_tls != 'no' and conf.get('HAVE_GNUTLS') == 0
+#         message('default-dns-over-tls cannot be set to strict or opportunistic when gnutls is disabled. Setting default-dns-over-tls to no.')
+#         default_dns_over_tls = 'no'
 # endif
-# conf.set('DEFAULT_PRIVATE_DNS_MODE',
-#          'PRIVATE_DNS_' + default_private_dns.underscorify().to_upper())
-# substs.set('DEFAULT_PRIVATE_DNS_MODE', default_private_dns)
+# conf.set('DEFAULT_DNS_OVER_TLS_MODE',
+#          'DNS_OVER_TLS_' + default_dns_over_tls.underscorify().to_upper())
+# substs.set('DEFAULT_DNS_OVER_TLS_MODE', default_dns_over_tls)
 # 
 # want_importd = get_option('importd')
 # if want_importd != 'false'
@@ -1945,6 +1945,7 @@ executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
+executable('elogind-user-runtime-dir',
 executable('elogind-user-runtime-dir',
            user_runtime_dir_sources,
            include_directories : includes,
@@ -3215,7 +3216,7 @@ status = [
 #         'symbolic gateway hostnames:        @0@'.format(', '.join(gateway_hostnames)),
 # 
 #         'default DNSSEC mode:               @0@'.format(default_dnssec),
-#         'default private DNS mode:          @0@'.format(default_private_dns),
+#         'default DNS-over-TLS mode:         @0@'.format(default_dns_over_tls),
 #         'default cgroup hierarchy:          @0@'.format(default_hierarchy),
 #endif // 0
         'default KillUserProcesses setting: @0@'.format(kill_user_processes)]
index 6fe7cf3da5ddd6fcc3c39adea346bc0f4db1e1f3..d8160d983c21dce9bdfb9de0b559b1496887b65f 100644 (file)
@@ -247,8 +247,8 @@ option('gshadow', type : 'boolean',
 #        description : 'default DNSSEC mode',
 #        choices : ['yes', 'allow-downgrade', 'no'],
 #        value : 'allow-downgrade')
-# option('default-private-dns', type : 'combo',
-#        description : 'default private DNS mode',
+# option('default-dns-over-tls', type : 'combo',
+#        description : 'default DNS-over-TLS mode',
 #        choices : ['opportunistic', 'no'],
 #        value : 'no')
 # option('dns-servers', type : 'string',
index dcacb1269d7ad89c8946aa93c3c25e480da55710..97e83d2bdae08f5a601769df4b61b2b475cce8bd 100644 (file)
@@ -48,14 +48,14 @@ _resolvectl() {
                      [LINK]='revert dns domain nta'
                   [RESOLVE]='llmnr mdns'
                    [DNSSEC]='dnssec'
-               [PRIVATEDNS]='privatedns'
+               [DNSOVERTLS]='dnsovertls'
                [STANDALONE]='statistics reset-statistics flush-caches reset-server-features'
         )
         local -A ARGS=(
                    [FAMILY]='tcp udp sctp'
                   [RESOLVE]='yes no resolve'
                    [DNSSEC]='yes no allow-downgrade'
-               [PRIVATEDNS]='no opportunistic'
+               [DNSOVERTLS]='no opportunistic'
         )
         local interfaces=$( __get_interfaces )
 
@@ -111,7 +111,7 @@ _resolvectl() {
                         comps=""
                 fi
 
-        elif __contains_word "$verb" ${VERBS[LINK]} ${VERBS[RESOLVE]} ${VERBS[DNSSEC]} ${VERBS[PRIVATEDNS]}; then
+        elif __contains_word "$verb" ${VERBS[LINK]} ${VERBS[RESOLVE]} ${VERBS[DNSSEC]} ${VERBS[DNSOVERTLS]}; then
                 for ((i++; i < COMP_CWORD; i++)); do
                         if __contains_word "${COMP_WORDS[i]}" $interfaces &&
                          ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
@@ -155,10 +155,10 @@ _resolvectl() {
                                 comps=''
                         fi
 
-                elif __contains_word "$verb" ${VERBS[PRIVATEDNS]}; then
+                elif __contains_word "$verb" ${VERBS[DNSOVERTLS]}; then
                         name=
                         for ((i++; i < COMP_CWORD; i++)); do
-                                if __contains_word "${COMP_WORDS[i]}" ${ARGS[PRIVATEDNS]} &&
+                                if __contains_word "${COMP_WORDS[i]}" ${ARGS[DNSOVERTLS]} &&
                                  ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then
                                         name=${COMP_WORDS[i]}
                                         break;
@@ -166,7 +166,7 @@ _resolvectl() {
                         done
 
                         if [[ -z $name ]]; then
-                                comps=${ARGS[PRIVATEDNS]}
+                                comps=${ARGS[DNSOVERTLS]}
                         else
                                 comps=''
                         fi