]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 6 Jun 2020 08:40:45 +0000 (10:40 +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

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 97aee7abc816ba756e83bad37212c9bac92f02a4..c6f48d6d8856ed7b5333fa0667c01602ad69b881 100644 (file)
@@ -307,7 +307,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);