Help with systemd configuration

Hi!

I’m still new here,
how can i change the configuration of systemd-resolved service? I want to setup my own DNS but I need to do

# for fedora
sudo sed -r -i.orig 's/#?DNSStubListener=yes/DNSStubListener=no/g' /etc/systemd/resolved.conf

but sadly I don’t know how to translate this command to clear linux, can someone help?

Here’s one way to do it.

mkdir /etc/systemd/resolved.conf.d
echo DNSStubListener=no >> /etc/systemd/resolved.conf.d/dns.conf

mine looks like this

i@clr/etc/systemd/resolved.conf.d $ cat dns_servers.conf 
[Resolve]
DNS=1.1.1.1 1.0.0.1
FallbackDNS=8.8.8.8 8.8.4.4
Domains=~.
#LLMNR=no
#MulticastDNS=no
DNSSEC=yes
DNSOverTLS=yes
#Cache=yes
#DNSStubListener=yes

I copy this from a fedora guide too.