NetworkManager always sets my DNS server in /etc/resolv.conf to be even though my router address is Manually setting it to the latter works, but is overwritten constantly with wrong info. I can't tell where NetworkManager gets this incorrect info. This is true for both wired and wifi connections.

Some more info: Connecting through wireguard works because resolvconf overwrites resolv.conf with a working nameserver (

Environment: Manjaro Linux KDE default settings.

  • 3
    NetworkManager didn't invent this value. Couldn't it be that your router was, you changed its settings to but forgot to change all of its DHCP server settings to match this? In such case the resolution is on the router, not on Linux.
    – A.B
    Commented May 3, 2022 at 6:50
  • Ok. Thanks for that feedback. This seems likely to be the problem. I'm not sure where to set the DHCP server settings on my router, so I changed the router IP to and that solved all my problems. Thanks for your input.
    – gomerj
    Commented May 4, 2022 at 5:26

1 Answer 1


it looks that it comes from you router. check /var/lib/NetworkManager/dhclient*/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .