You are not logged in.

#1 2018-08-02 13:59:15

zuntik
Member
Registered: 2017-08-11
Posts: 46

Where are the nameservers when using NetworkManager + Dnsmasq?

Hi, I'm following this guide to configure dnsmasq on NetworkManager. At the moment, the PC is using the nameservers provided by the ISP. I tried to change them in /run/NetworkManager/resolv.conf as suggested in the guide but everytime I restart NetworkManager the contents of that file change to:

# Generated by NetworkManager
nameserver 127.0.0.1

Where are the actual nameservers stored and how can I edit them to the google ones, for example?

Thanks.

Offline

#2 2018-08-02 16:10:05

headkase
Member
Registered: 2011-12-06
Posts: 2,004

Re: Where are the nameservers when using NetworkManager + Dnsmasq?

I'm not familiar with NetworkManager so I have no suggestions there.  However, you mentioned Google's nameservers but there is a better one - a new one - on the block:

https://1.1.1.1

That web-site is maintained by CloudFlare and their goal is to be the fastest nameserver going.  The also keep no records of name lookups, they're never stored on disk, and your name accesses are never kept in memory for longer than 24 hours or less.  They're kept usually just long enough to do the lookup.

Here's a video for an overview of 1.1.1.1:

https://www.youtube.com/watch?v=kqnvrjgyEMc

Offline

#3 2018-08-02 16:38:15

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Where are the nameservers when using NetworkManager + Dnsmasq?

The actual DNS servers can be found in /run/NetworkManager/resolv.conf.

That does not mean you should alter that file to change the DNS servers used by NetworkManager.  Edit the connection IPV4 settings DNS servers and ensure the servers you want to use are listed there.
Or Dnsmasq#More_than_three_nameservers

Offline

Board footer

Powered by FluxBB