resolve: enable RES_TRUSTAD towards the 127.0.0.53 stub resolver
authorYmrDtnJu <YmrDtnJu@users.noreply.github.com>
Fri, 5 Jun 2020 13:36:58 +0000 (15:36 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Jul 2020 08:26:32 +0000 (10:26 +0200)
glibc 2.31 strips the AD flag, unless either the application specifies
RES_TRUSTAD or the options in resolv.conf contain trust-ad.

See https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD

(cherry picked from commit a742f9828ea73d9c2c9bafe701c10fe60f058012)

src/resolve/resolv.conf
src/resolve/resolved-resolv-conf.c

index c3079aca1d4279a573ff265931e5447e51248f65..dc5ac05532abceb358567da9a6f778be557d3fc0 100644 (file)
@@ -15,4 +15,4 @@
 # operation for /etc/resolv.conf.
 
 nameserver 127.0.0.53
-options edns0
+options edns0 trust-ad
index f5fc13563daf2b75467ab80c85df6fa2ee321365..1896ce3379c9e45d964f50d66e9ac4c17141f34e 100644 (file)
@@ -325,7 +325,7 @@ static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet
               "# operation for /etc/resolv.conf.\n"
               "\n"
               "nameserver 127.0.0.53\n"
-              "options edns0\n", f);
+              "options edns0 trust-ad\n", f);
 
         if (!ordered_set_isempty(domains))
                 write_resolv_conf_search(domains, f);