For my Ubuntu 22.04 server, after following
https://serverok.in/systemd-resolved
I created my
/etc/systemd/resolved.conf.d/dns_servers.conf
which only contains:
[Resolve]
DNS=192.168.0.254 9.9.9.9 8.8.4.4
So I am obtaining:
joseccz@wvmus2204:~$ resolvectl status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
DNS Servers: 192.168.0.254 9.9.9.9 8.8.8.8 8.8.4.4
Link 2 (eth0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 192.168.0.1
DNS Domain: pepedomain
How can I do to have the next line at the Global part:
DNS Domain: dc1.cn.lan
and for eth0:
Link 2 (eth0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
DNS Servers: 192.168.0.254 9.9.9.9 8.8.8.8 8.8.4.4
DNS Domain: dc1.cn.lan
Also, why I can not see +DefaulRoute in the Global->Protocols section?
Thanks in advance