You are not logged in.

#1 2025-06-29 12:15:07

RoboMico
Member
Registered: 2025-06-26
Posts: 1
Website

[SOLVED] Broken DNS with NetworkManager

Hi! First time posting here.

Recently I finished my PC setup (ArchLinux, KDE, NetworkManager) and plugged network cable between it and the modem in my house. The default DNS seems to be broken (ping domain results a long wait time before the first line of output; ping IP works fine; almost all apps complain about "Server not found" or "Connection timeout") thus I have to use a different one to be able to surf the Internet normally. However after changing the "Other DNS Servers" in KDE System Settings, the connection details show that 192.168.1.1 is still my "IPv4 Secondary Nameserver" and the name resolving is still broken, even after re-login, restart NetworkManager service, disconnect and reconnect, and reboot PC. I tried dual boot to Windows and network is 100% OK after changing DNS so I assume that my Arch linux is badly configured.

I managed to get a screenshot: https://github.com/RoboMico/RoboMico/issues/1 (i know github is not the best place to upload pictures but anyway it works)

Any solution is appreciated! smile

Update: I did some search online and solved my problem:
1. Ignore the auto dns config:

nmcli c mod enp7s0 ipv4.ignore-auto-dns yes
nmcli c mod enp7s0 ipv6.ignore-auto-dns yes

2. Enable systemd-resolved.service

Last edited by RoboMico (2025-06-29 15:20:00)

Offline

#2 2025-06-29 14:54:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,277

Re: [SOLVED] Broken DNS with NetworkManager

ip a; ip r
resolvectl status
stat /etc/resolv.conf
cat /etc/resolv.conf
dig @223.6.6.6 google.com # bind package
dig @192.168.1.1 google.com
drill @223.6.6.6 google.com # bind package # ldns package
drill @192.168.1.1 google.com

https://wiki.archlinux.org/title/Networ … NS_servers
https://wiki.archlinux.org/title/Systemd-resolved#DNS

Offline

Board footer

Powered by FluxBB