You are not logged in.
Hey folks, I'm using NetworkManager with systemd-resolved and systemd-resolvconf.
When Using VPN I wanted to Setup specific rules to route certain Domains to certain DNS.
I was able to do it using `resolvectl` but I'm unsure on how to make the change permanent. Can someone help please?
I basically added the domains '~.' to enp3s0 and '~mydomain.com' '~example.com' to VPN.
❯ resolvectl status
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 9.9.9.9#dns.quad9.net 8.8.8.8#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2620:fe::9#dns.quad9.net 2001:4860:4860::8888#dns.google
Link 2 (docker0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 3 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 212.166.211.1
DNS Servers: 212.166.211.1 212.166.132.96
DNS Domain: ~.
Link 4 (wlp4s0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 5 (VPN)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.40.0.2
DNS Servers: 10.40.0.2
DNS Domain: ~mydomain.com ~example.comOffline