Using the GUI network-manager, I can easily use a custom DNS server instead of the default one. However, the new DNS doesn’t take any effect after clicking “Apply”. (This seems a bug to me.)

Some shell commands used to resolve the issue:

1
2
3
4
5
6
7
> nmcli con show # show all connections

> nmcli con show <con-name> # show settings for a specific connection

> nmcli con up <con-name> # reload dns setting

> cat /etc/resolv.conf # confirm new dns is in use

§references

https://serverfault.com/questions/690559/how-do-i-force-networkmanager-to-update-etc-resolv-conf