Skip to content

Commit

Permalink
resolve: enable RES_TRUSTAD towards the 127.0.0.53 stub resolver
Browse files Browse the repository at this point in the history
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
  • Loading branch information
YmrDtnJu authored and DaanDeMeyer committed Jun 6, 2020
1 parent 9141594 commit a742f98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resolve/resolv.conf
Expand Up @@ -15,4 +15,4 @@
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0
options edns0 trust-ad
2 changes: 1 addition & 1 deletion src/resolve/resolved-resolv-conf.c
Expand Up @@ -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);
Expand Down

0 comments on commit a742f98

Please sign in to comment.