The Domain Name System (DNS) translates human-readable web addresses (such as digitash.com) into numerical IP addresses. By default, Ubuntu obtains its DNS server addresses automatically from your local internet service provider (ISP) via DHCP. However, ISP DNS servers are often slow, prone to periodic outages, and may log browsing queries. Switching to fast, privacy-focused third-party public DNS resolvers through Ubuntu’s graphical user interface speeds up domain resolution and enhances connection security without using terminal commands.
Changing DNS Servers for Wi-Fi Connections in Ubuntu
To configure custom DNS resolvers for a wireless network in Ubuntu 22.04 LTS or Ubuntu 24.04 LTS:
- Open the Settings application from the application grid or the quick settings menu in the top-right corner.
- In the left sidebar, click on Wi-Fi.
- Find your currently connected wireless network and click the gear icon next to its name.
- In the network details dialogue box, click on the IPv4 tab at the top.
- Locate the DNS section. By default, the toggle switch labelled Automatic is turned on.
- Click the Automatic toggle to switch it to Off.
- In the text field beneath the toggle, enter your desired primary and secondary DNS server IP addresses separated by a comma. For example:
1.1.1.1, 1.0.0.1(Cloudflare) or8.8.8.8, 8.8.4.4(Google DNS). - Click the green Apply button in the top-right corner of the dialogue box.
- Disconnect and reconnect to your Wi-Fi network (or toggle Wi-Fi off and on) to apply the new DNS resolvers.
Changing DNS Servers for Wired Ethernet Connections
If your computer connects to your router via a physical Ethernet cable, configure DNS through the Network panel:
- Open Settings and click on Network in the left pane.
- Under the Wired section, click the gear icon next to your active connection.
- Select the IPv4 tab.
- Switch the Automatic toggle next to DNS to Off.
- Enter your preferred DNS server addresses separated by commas.
- Click Apply.
- Toggle the wired connection off and on using the slider switch to refresh your network lease.
Popular Fast and Secure Public DNS Resolvers
Choose a reliable public DNS provider tailored to your browsing priorities:
| Provider | Primary IPv4 | Secondary IPv4 | Primary Benefit |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Industry-leading resolution speeds and strict privacy (no IP logging). |
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | Exceptional global uptime, redundancy, and resilience against DDoS attacks. |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Integrated threat intelligence that automatically blocks malicious phishing domains. |
| Cloudflare Family | 1.1.1.3 | 1.0.0.3 | Built-in parental control filtering that blocks malware and adult content. |
Verifying Active DNS Resolvers in Ubuntu
To confirm that your Ubuntu desktop is successfully querying your new DNS servers, you can inspect connection details directly in the GUI:
- Open Settings and navigate to Wi-Fi or Network.
- Click the gear icon next to your active network.
- On the primary Details tab, check the DNS field to confirm your custom IP addresses appear in the active connection summary.
Configuring fast third-party DNS resolvers provides a snappier web browsing experience and reinforces your online privacy across all desktop applications in Ubuntu.