Change DNS Server KDE?

Below is my settings, but my dns is the same when i check online, rather than the google dns i’ve specified. Any suggestions?

How are you checking?
When you check are you using WiFi or wired connection?

What does the command resolvectl status report?

Using Wifi connection

spaceboy@ultramarine /home/spaceboy > resolvectl status
Global
Protocols: LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.4 8.8.8.8 fd31:1624:1c01:2467:ea00:6ff:fe40:d

Link 2 (enp3s0)
Current Scopes: none
Protocols: -DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 8 (wlp0s16f0u1)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
Protocols: +DefaultRoute LLMNR=resolve -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.4 8.8.8.8 fd31:1624:1c01:2467:ea00:6ff:fe40:d

What’s DOH? How do I check whether I’m using Google’s DNS for sure.

I just used What Is My DNS Server? Check Your DNS Server Address

Is this accurate?

DNS over HTTPS, as configurable in Firefox, for example.

1 Like

No it is not accurate.

There are several places where you can set the DNS.
So you can have a DNS set in the network setting used by any application and a DNS set in Firefox that is used only by Firefox.

That is usually the case if you set Firefox for the DoH.

In my case I have Cloudflare as general DNS and NextDNS in Firefox.

If I test with “resolvectl status” I get the Cloudflare address of course because that is the “general” DNS.

In the above post you read:
“Link 8 (wlp0s16f0u1)” - (the connection in use)
“Current DNS Server: 8.8.8.8”

BTW, if you don’t set any DNS in the network settings usually you get the DNS that is set in the modem/router settings (that usually is the internet service provider DNS).

Will 8.8.8.4, 8.8.8.8 work in Firefox. I’s not very clear in Firefox how more than one dns server should be specified, i.e what separator should be used.

There is no need to set a DNS in Firefox unless you want it being different from the “general” one you set in the network settings.
Given the above output you are already using 8.8.8.8 on the active connection and it works for any application including Firefox.

Current DNS Server: 8.8.8.8
DNS Servers: 8.8.8.4 8.8.8.8 fd31:1624:1c01:2467:ea00:6ff:fe40:d

It uses 8.8.8.8 because the first address is wrong, Google DNS is:
8.8.8.8
8.8.4.4
When you insert those IP addresses in the network settings, they must be separated by a comma like “8.8.8.8,8.8.4.4”. They are two or more because in case the first fails, the second is used and so on.

In case you want to set Firefox to use an “encrypted” DNS, or DNS over HTTPS, you can use one of the two provided DNS services (cloudflare and nextdns) or you can input some other DNS service, whose address would be something like:

https://dns.quad9.net/dns-query

Which is Quad9 DoH.
Note it is not set with the IP address but with an HTTPS address.
Google DoH should be “https://dns.google/dns-query” but I am not sure of it.