Systemd-resolved etc/systemd/resolved.conf not found

I used to set dns over tls with systemd resolved
Which used to be in etc/systemd/resolved.conf
But now i find this is not there rather it is in usr/lib/systemd

You are expected to put overrides in to change from the default config.
See man resolved.conf for details that shows the drop in folders, in this case its /etc/systemd/resolved.conf.d/*.conf that you need to use.

This is a change, for the better, that all config files in Fedora are undergoing.
This allows for the defaults to be updated as needed.

@fedora:/etc/systemd$ ls
network  system  system.control  user

Did you have a question?
Please stop assuming other people know what you are thinking.

First of all we need to know your environment. We use tags, so we see what you use, please complete them when making a request.

As @barryascott mentioned we can not always see what the issue is about if you just copy n paste without any comment.

Take in consideration that Fedora Linux will change some paths. See the announcement:

This is completed with F43/44 I guess.

Sorry i last install fedora 38 after 34 and now 40
I use next dns for dot in my system as dns over tls provider
I am on gnome as i used to edit the file.
/Etc/systemd/resolved.conf
And add my conf and after a restart it works.
But i find it does not on my new install
I couldn’t find the resolved.conf file

You just need to make the directory, and put your overrides in it.
sudo mkdir /etc/systemd/resolved.conf.d/

1 Like

Can i edit
usr/lib/systemd/resolved.conf directly

You can but you shouldn’t.

Any edits you do there will be overwritten during updates.

Ok
Hence what you

I was just following the instructions by them

So
sudo mkdir /etc/systemd/resolved.conf.d/
And then add the settings to a new file there presumably called nextdns.conf or something similar that ends in .conf

They use it as
Etc/systemd/resolved.conf
If i change it to
etc/systemd/resolved.conf.d/resolved.conf or nextdns.conf
Will it work.

That should work.

I am following the instruction one.
Btw what i find is my old devices after update it still have that file
/Etc/systemd/resolved.conf

It will but only specify the settings you want to change.
You should not be copying all setting for example.
So if only one setting needs changing from default then only set that one.