You are not logged in.

#1 2022-04-10 10:58:02

04tm34l
Member
Registered: 2021-04-22
Posts: 32

[SOLVED] Generating resolv.conf using NetworkManager with dnsmasq

Sorry, this is written in machine translation.

Today I updated my Arch Linux for the first time in 3 months. After that I rebooted and it was no longer resolving DNS.
I was using NetworkManager and resolving DNS using dnsmasq.
Actually, I could have solved this problem by rewriting /etc/resolv.conf directly or using systemd-resolved, but I use network hotspots and would like to be able to resolve DNS using dnsmasq somehow.
At this time, restarting NetworkManager will generate an empty resolv.conf. The same problem probably occurs at startup.

I need your help.

Last edited by 04tm34l (2022-04-10 13:51:31)

Offline

#2 2022-04-10 12:15:35

-thc
Member
Registered: 2017-03-15
Posts: 496

Re: [SOLVED] Generating resolv.conf using NetworkManager with dnsmasq

Retrace the steps outlined in the Wiki.

Make sure dnsmasq is still installed, unconfigured, systemd-deactivated and can be run by NetworkManager.

Offline

#3 2022-04-10 13:26:57

04tm34l
Member
Registered: 2021-04-22
Posts: 32

Re: [SOLVED] Generating resolv.conf using NetworkManager with dnsmasq

When I retraced the fix, there was a change in /etc/resolv.conf. However, it is not a fundamental solution, and after restarting NetworkManager or the system, /etc/resolv.conf is empty again and DNS resolution is no longer possible.

Offline

#4 2022-04-10 13:29:31

-thc
Member
Registered: 2017-03-15
Posts: 496

Re: [SOLVED] Generating resolv.conf using NetworkManager with dnsmasq

O.K. - can you verify via

sudo ss -l -u -n -p

that dnsmasq is running and listening on 127.0.0.1:53?

Last edited by -thc (2022-04-10 13:29:49)

Offline

#5 2022-04-10 13:50:42

04tm34l
Member
Registered: 2021-04-22
Posts: 32

Re: [SOLVED] Generating resolv.conf using NetworkManager with dnsmasq

I am sorry.
I ran the command and dnsmasq was working correctly.
The problem was that my network provider seems to make it impossible to use any DNS. I solved the problem by making sure I use the DNS resolver provided by my provider.
Thanks.

Offline

Board footer

Powered by FluxBB