I can’t seem to get this to work. I can open /etc/systemd/resolved.conf, but it’s empty. There was a recommendation made (see below) in a different thread, but I don’t quite get the file path mentioned:
Sorry, I forgot NetworkManager is using systemd-resolved anyways. You were right to create /etc/systemd/resolved.conf or /etc/systemd/resolved.conf.d/*.conf . It doesn’t exist by default because of Clear Linux’s stateless design. Just follow the resolv.conf syntax and it will work (i.e.
[Resolve]
Domains=
and systemctl restart systemd-resolved afterwards
When I try to use the suggested path:
udo nano /etc/systemd/resloved.conf.d/.conf
zsh: no matches found: /etc/systemd/resloved.conf.d/.conf
I enabled view hidden files, but in systemd the only thing I see is a single folder called system. In there is a single folder called multi-user.target.wants
Create the /etc/systemd/resolved.conf.d/ directory if it doesn’t exist. Then create the file XXX.conf if it doesn’t exist, where XXX is any filename of your choice. Then you can edit it.