Setting up custom DNS in NetworkManager

Solution:
Create file in /etc/NetworkManager/conf.d/dns-servers.conf , like

[global-dns-domain-*]
servers=::1,1.1.1.1

For more info, read this.

Hello, my problem seems related to a recent topic of similar title.
When, in ipv4 settings of my wifi connection, I change method to ‘automatic (dhcp) addresses only’ and add addresses 1.1.1.1 and 1.0.0.1, the ‘save’ button does not become active, indicating red the ‘netmask’ column.
(NetworkManager is not shown in the main gui -only ‘advanced network configuration’- and running it from commandline has no visible results; though pacman -Q confirms the version.)
Is there more to setting up 1.1.1.1 than in their setup guide or is it about the NetworkManager (or am I losing it)?
Many thanks

On KDE setting the DNS in the NetworkManager applet doesn’t change it. Try setting the DNS then restart with

sudo systemctl restart NetworkManager

the newly applied changes should be loaded.

Thanks, this helped to check the immediate effect of setting a global dns in networkmanager.

Solution:
Create file in /etc/NetworkManager/conf.d/dns-servers.conf , like

[global-dns-domain-*]
servers=::1,1.1.1.1

For more info, read this.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.