0

With systemd-resolved, where does DOMAINS in search come from?

/etc/systemd/resolved.conf

[Resolve]
DNS=1.1.1.1
Domains=lan

/etc/resolv.conf

nameserver 127.0.0.53
search lan DOMAINS <----

lan is correctly populated, but there is an extra DOMAINS ?

nehz
  • 101

1 Answers1

2

The format for /etc/resolv.conf (note there is no "d" in the filename) is documented in this previously asked question

You should not directly edit this file. Follow the instructions in the link above.

  • I am wondering where the DOMAINS in the generated file comes from. I am not editing /etcresolv.conf directly – nehz Jun 04 '22 at 10:14