In our previous post, we setup a Pi-hole DNS server to block ads on our local network.
Although the Pi-hole is awesome, unfortunately it only works on our local network, and thus we don’t get the same benefits of ad blocking when we leaving the network.
Today, I’ll show you how you can setup NextDNS on your mobile or laptop devices for whenever you need ad blocking on the go.
Overview
NextDNS is a cloud-based, privacy-focused DNS service that allows users to block ads, trackers, and malware across all their devices.
It was founded in May 2019 by two French founders, Romain Cointepas and Olivier Poitrey.
It works by intercepting DNS queries made by devices on the network and routing them to NextDNS servers (similar to Pi-hole), which then filter and block unwanted content based on various criteria such as malware, phishing, and adult content.
It utilizes DNS over HTTPS (DoH), DNS over TLS (DoT), DNS over QUIC (DoQ) and more, which also provide a level of security for your DNS queries.
You can define rules for filtering on a per device basis on the setup dashboard.
NextDNS utilize their own custom DNS servers which you can find on under the Endpoints
tab on the Setup Page.
You can learn more about the company here.
Setup
Try It Now
To get started with NextDNS, you can follow their try it now link which you can use to get started immediately, although to take full advantage of the service and be able to customize it, you’ll need to create an account.
Note: If you use the try it now
link, the account will expire in 7 days and is only accessible from the browser you initially set it up from. You’ll need to sign in in order to keep your customizations.
Once you sign up, you’ll be taken to the dashboard, where you can manage your settings and configure your DNS preferences.
Windows
To configure NextDNS on a Windows machine, follow these steps:
NextDNS App for Windows (Recommended)
- Download the installer here.
- After installing, right-click on NextDNS icon in the Systray, then open the Settings. Set
<your-nextdns-config-id>
as Configuration ID. - Right-click on NextDNS icon in the Systray, then click on Enable.
Manual Configuration
- Open the Start menu and type “Control Panel.” Click on the Control Panel app to open it.
- Click on “Network and Internet” and then “Network and Sharing Center.”
- Click on “Change adapter settings.”
- Right-click on your network adapter and select “Properties.”
- Click on “Internet Protocol Version 4 (TCP/IPv4)” and then click “Properties.”
- Click on “Use the following DNS server addresses” and enter the IP address of the NextDNS server you want to use. You can find the latest IP addresses in the NextDNS dashboard under
Setup Guide
. - Click “OK” to save your changes.
macOS
Configuration Profile (Recommended)
macOS Big Sur or higher
Use the Apple Configuration Profile Generator available at apple.nextdns.io.
App Store
- Install our official app from the Mac App Store.
- Click on
Preferences
in the app status bar menu and go to theConfiguration
tab. - Check
Use Custom Configuration
and enter<your-nextdns-config-id>
as Configuration ID. - Enable NextDNS.
Manual Configuration
To configure NextDNS on a macOS machine, follow these steps:
- Click on the Apple menu and select “System Preferences.”
- Click on “Network.”
- Select your network connection and click “Advanced.”
- Click on the “DNS” tab.
- Click on the “+” button to add a new DNS server.
- Enter the IP address of the NextDNS server you want to use. You can find the latest IP addresses in the NextDNS dashboard under
Setup Guide
. - Click “OK” to save your changes.
iOS / iPadOS
Configuration Profile (Recommended)
iOS 14 or higher
Use the Apple Configuration Profile Generator available at apple.nextdns.io.
- Download the configuration profile.
- Open the Settings app.
- Tap
Profile Downloaded
. - Tap Install in the upper-right corner, and follow the onscreen instructions.
App Store
- Install the official app from the App Store.
- Open the app then go to Settings and toggle “Use Custom Configuration”. Enter
<your-nextdns-id>
as Configuration ID. - Enable NextDNS.
Android
Private DNS (Recommended)
Android 9 or higher
- Go to Settings → Network & internet → Advanced → Private DNS.
- Select the Private DNS provider hostname option.
- Enter
<your-nextdns-config-id>.dns.nextdns.io
and hit Save.
App Store
NextDNS App for Android
- Install the official app from the Play Store.
- In the NextDNS app, enter
<your-nextdns-config-id>
in Settings → Configuration ID, then connect.
Linux
systemd-resolved (Recommended)
Use the following in /etc/systemd/resolved.conf
:
Note: Make sure to replace <nextdns-id-here>
with your Configuration ID.
|
|
NextDNS Command-Line Client
- Run the following command:
sh -c "$(curl -sL https://nextdns.io/install)
- Follow the instructions. Head over to our open-source repository at https://github.com/nextdns/nextdns/wiki for manual installation instructions.
Identify Your Devices
Follow the instructions below to identify your devices in Analytics
and Logs
.
NS-over-TLS/QUIC
Prepend the name to the provided domain (the name should only contain a-z, A-Z, 0-9 and -). Use – for spaces.
For “John Router”, you would use John--Router-<nextdns-config-id>.dns.nextdns.io
as your DNS-over-TLS endpoint.
DNS-over-HTTPS
Append the name to the provided URL (the name should be URL encoded).
For “John’s Firefox”, you would use https://dns.nextdns.io/<nextdns-config-id>/John's%20Firefox
as your DNS-over-HTTPS endpoint.
Apps
Enable Send Device Name
in the app settings.
Note
Keep in mind that the above setup is only a guideline as of 03-2023
.
The information may become outdated or changed. Always consult with the latest official documentation from NextDNS on their site, Setup Guide, and their Help Center.
Conclusion
NextDNS is a powerful DNS service that offers a range of privacy-focused features to protect your devices from ads, trackers, and malware. By following the steps above, you can easily configure NextDNS on your devices and start enjoying a safer, more secure online experience.