A
A
Alisa Sokolova2021-02-19 15:15:57
Domain Name System
Alisa Sokolova, 2021-02-19 15:15:57

Why is DNS not enabled when changing via NetworkManager in Ubuntu?

Why is DNS not enabled when changing via NetworkManager in Ubuntu?

I register for Wi-Fi through NetworkManager a trace. options:

  1. IPv4 next DNS: 1.1.1.1, 1.0.0.1
  2. IPv6 next. DNS: 2606:4700:4700::1111, 2606:4700:4700::1001


I check through https://whoer.net/ru and see that the DNS is Russian, although in fact it should be American.

Source: losst.ru

And also followed the instructions from cloudflare

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alisa Sokolova, 2021-02-21
@Alisa_Sokolova

I eventually figured out how to solve this problem:
1. I change DNS connections for iPV4 and iPV6 through NetworkManager in the WI-FI settings.
2. I reboot the PC through the terminal

reboot

3. Through the terminal I clean the cache of the system
sudo systemd-resolve --flush-caches
clear cache command
sudo systemd-resolve --statistics
command to check the result of clearing the cache (current cache size should be 0)
And only then https://whoer.net/ru shows the DNS change.

A
Alexey Dmitriev, 2021-02-19
@SignFinder

whoever shows the browser's DNS, to check the system use the nslookup command

F
fara_ib, 2021-02-19
@fara_ib

Did you want to hide DNS queries? then here is https://artkus.com/DNS-over-TLS.html though the list of servers there must be replaced, probably already outdated.

F
Fenrir89, 2021-02-21
@Fenrir89

It was probably enough
systemctl reload NetworkManager
Maybe it's also to clear the dns cache
systemctl restart NetworkManager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question