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).

quad 9 ubuntu 17.10

Next, click the cog icon to change settings.

quad 9 dns ubuntu

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.¬†

quad 9 linux

Now toggle the network connection from ON to OFF, then back to ON. Your changes is now in effect.

quad 9 dns network manager

If you click the cog icon again, you can see the DNS server address.

quad 9 dns linux

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.

dns leak test

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!

Rate this tutorial
[Total: 7 Average: 4.7]

Leave a Comment

  • Comments with links are moderated by admin before published.
  • Your email address will not be published.
  • Use <pre> ... </pre> HTML tag to quote the output from your terminal/console.
  • Please use the community (https://community.linuxbabe.com) for questions unrelated to this article.
  • I don't have time to answer every question. Making a donation would incentivize me to spend more time answering questions.

The maximum upload file size: 2 MB. You can upload: image. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here