[root@f33 ~]# resolvectl dns ens192 192.168.11.131 202.96.64.68
[root@f33 ~]# resolvectl
Global
LLMNR setting: resolve
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Fallback DNS Servers: 1.1.1.1
8.8.8.8
1.0.0.1
8.8.4.4
2606:4700:4700::1111
2001:4860:4860::8888
2606:4700:4700::1001
2001:4860:4860::8844
Link 2 (ens192)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 202.96.64.68
DNS Servers: 192.168.11.131
202.96.64.68
DNS Domain: ~.
gbca.cn
以上是错误的,
[root@f33 ~]# resolvectl dns ens192 192.168.11.131 202.96.64.68
[root@f33 ~]# resolvectl
Global
LLMNR setting: resolve
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Fallback DNS Servers: 1.1.1.1
8.8.8.8
1.0.0.1
8.8.4.4
2606:4700:4700::1111
2001:4860:4860::8888
2606:4700:4700::1001
2001:4860:4860::8844
Link 2 (ens192)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 192.168.11.131
DNS Servers: 192.168.11.131
202.96.64.68
DNS Domain: ~.
gbca.cn
这个才是正确的.让本地dns服务器成为第一dns地址