I’m travelling in Europe with a notebook using NetworkManager, connecting through various wi-fi sources. I want to force the use of Cloudflare (1.1.1.1) as my DNS. How do I do that? Thanks in advance.
Followed your instructions and rebooted. I had a connection. Then did a traceroute
`ion-fujitsu:/home/ion # traceroute www.nytimes.com
traceroute to www.nytimes.com (146.75.117.164), 30 hops max, 60 byte packets
1 speedport.ip (192.168.1.1) 2.579 ms 2.345 ms 2.215 ms
2 80.106.125.100 (80.106.125.100) 8.759 ms 8.633 ms 8.508 ms
3 79.128.242.194 (79.128.242.194) 12.382 ms 12.260 ms 12.129 ms
4 62.75.3.73 (62.75.3.73) 13.497 ms 13.374 ms 13.251 ms
5 62.75.14.134 (62.75.14.134) 41.966 ms 62.75.27.73 (62.75.27.73) 41.845 ms 41.714 ms
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
ion-fujitsu:/home/ion #`
I don’t see Clouflare’s address anywhere. So how do I test that it is being used?
Of course not. It is not a traceroute to Cloudflare. And that is not what you asked for.
With NetworkManager you would need to configure every access point separately. So edit /etc/sysconfig/network/config and set
NETCONFIG_DNS_POLICY="STATIC"
NETCONFIG_DNS_STATIC_SERVERS="1.1.1.1"
Or simply remove symlink /etc/resolv.conf and create file /etc/resolv.conf with whatever DNS servers you need.
It appears that I have not understood how traceroute works. I thought that it showed every connection from my computer to the final destination address and that at some point it would show a connection to the DNS that determined the I.P. address of the destination. So then how do I determine which DNS is actually being used? Not what I have configured on my computer.
Correct. Well, not quite. It will show the route it found. There might be alternative routes.
No, that is not what traceroute does. It does not show all the administrative tasks it has to do to full fill your request.
E.g.
nslookup forums.opensuse.org
or any other host, even if it does not exist at all:
henk@boven:~> nslookup ba.bo.bun
Server: 195.121.1.34
Address: 195.121.1.34#53
** server can't find ba.bo.bun: NXDOMAIN
henk@boven:~>
Thank you Henk. Your response is exactly what I need.
Under method 1, it says to edit this file: /etc/NetworkManager/NetworkManager.conf
That file doesn’t exist on my system. Is this a documentation error?
No. This file exist on Leap 15.4. Do you use wicked maybe?
I use Tumbleweed with KDE and network manager.
Ah, I see this post is for Leap 15.4 and not TW but the documentation link doesn’t specify which version of openSUSE.
No. This file does not need to exist - it is an optional configuration file.
Besides, as I already said earlier, if user is permanently roaming between different public AP, then each new AP will require manual configuration. And if user always wants to have the same static DNS server it is much easier to configure it once and for all future connections - in netconfig - than to disable netconfig and configure it every time for every new connection.
Please do not add to a thread when you do not have a contribution to the original problem of the OP. Or when you do not have the exact same problem as the OP (and that includes same software versions.). Else start a new thread of your own to avoid confusion.
Being clueless you may want to go with NetworkManager default connections and use the network applet in the system tray for configuring DNS.
Thanks, exactly what I needed as well.