↗ How to Replace Local DNS in Ubuntu
· 3 min read

In modern Ubuntu distributions (20.04, 22.04, 24.04), domain name resolution is handled by systemd-resolved. A common issue occurs when you configure a public DNS (such as Cloudflare's 1.1.1.1), yet the system continues to use the local router's DNS (192.168.x.x) obtained via DHCP.
