How to Set up Quad 9 DNS on Ubuntu Desktop
You may probably know the recently launched Quad 9 public DNS service, which is the product of collaboration between IBM, Packet Clearing House (PCH) and Global Cyber Alliance (GCA). It comes with security benefits in that known malicious domain names will be blocked, which is great for end users. Quad 9 website provides instructions for Windows and Mac users, but no Linux instructions is available. So in this tutorial we will see how to set up Quad9 DNS on Ubuntu, which is a beginner-friendly Linux distribution.
Quad 9 explains how DNS works and its security feature.
Of course, if you can change DNS server in your router, then you don’t need to do it on your computer, but my cheap router doesn’t support changing DNS in its web control panel.
How to Set up Quad 9 DNS on Ubuntu
On Ubuntu desktop, click the triangle at the upper-right corner, then select Wired Connected (or Wireless Connected) > Wired Settings ( or Wireless Settings).
Next, click the cog icon to change settings.
After that, click IPv4 tab (or IPv6 tab if you use IPv6). Toggle Automatic to OFF because we don’t want to obtain DNS server information from router. Then enter the IP address of Quad 9 DNS server in the DNS field. There are two IP addresses separated by comma (9.9.9.9,149.112.112.112). The first one is primary DNS server, the second one is backup DNS server. Then click Apply.
Now toggle the network connection from ON to OFF, then back to ON. Your changes is now in effect.
If you click the cog icon again, you can see the DNS server address.
DNS Test
How do you know you are actually using Quad 9 DNS service? Go to dnsleaktest.com. Start the test by clicking Extended Test button and wait for the result. The following screenshot shows my test result.
Note that Quad 9 uses a technique called anycast to route you DNS queries to the nearest DNS server operated by PCH. So you are not likely to see 9.9.9.9 or 149.112.112.112 in the test result, instead you will see DNS servers owned by pch.net, which indicates that you are using Quad 9 DNS service.
Wrapping Up
That’s it! I hope this tutorial helped you set up Quad 9 DNS on Ubuntu desktop. As always, if you found this post useful, then subscribe to our free newsletter.
Do you want to encrypt your DNS traffic to prevent your ISP from spying? You can use DNS over TLS to achieve that.
Thanks for visiting!