diff --git a/src/resolve/resolv.conf b/src/resolve/resolv.conf index ffc460dbf29..c3079aca1d4 100644 --- a/src/resolve/resolv.conf +++ b/src/resolve/resolv.conf @@ -15,3 +15,4 @@ # operation for /etc/resolv.conf. nameserver 127.0.0.53 +options edns0 diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index ad47d13d238..5fcd59d8767 100644 --- a/src/resolve/resolved-resolv-conf.c +++ b/src/resolve/resolved-resolv-conf.c @@ -321,7 +321,8 @@ static int write_stub_resolv_conf_contents(FILE *f, OrderedSet *dns, OrderedSet "# See man:systemd-resolved.service(8) for details about the supported modes of\n" "# operation for /etc/resolv.conf.\n" "\n" - "nameserver 127.0.0.53\n", f); + "nameserver 127.0.0.53\n" + "options edns0\n", f); if (!ordered_set_isempty(domains)) write_resolv_conf_search(domains, f);