You are not logged in.

#1 2021-10-03 18:45:16

arupy
Member
Registered: 2021-05-26
Posts: 6

[SOLVED] NetworkManager - Change Global DNS Resolver

I set up my DNS to point to pihole, but I must have configured some global setting and now I am unable to use any other network.

This is what my /etc/resolv.conf looks like. I am unable to edit the file directly (write-protected). I looked at NetworkManager's documentation but I could only find information on configuring dns on a per-network basis.

> cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.0.192
nameserver 192.168.0.24

I would greatly appreciate all help in this matter.

Last edited by arupy (2021-10-03 18:57:27)

Offline

#2 2021-10-03 18:59:09

arupy
Member
Registered: 2021-05-26
Posts: 6

Re: [SOLVED] NetworkManager - Change Global DNS Resolver

I solved it myself.

I created the /etc/NetworkManager/conf.d/90-dns-none.conf file with the following contents:

[main]
dns=none

This stops NetworkManager from managing the resolver file. I then simply edited the file and it worked.

Offline

Board footer

Powered by FluxBB