Fighting spyware and adware with personal home DNS.

How do you feel if I say about 30 % of your internet traffic is either adware or spyware? Do you know your devices collect information even when you are asleep?

Yes every touch on your smartphone, every mouse click and every word said to your voice assistant

on’t be afraid. With your own DNS, you can control every packet of data that leaves your house.

All you need, a Linux computer that runs all-day every-day. for this you can choose one of the following:
1. Raspberry-Pi or similar single board computer running any Linux distribution.
2. Old laptop running any Linux distribution which won't bother running 24/7.
3. Any Cloud instance with Linux.

In this article, I opted to go with Amazon EC2 free instance. Yes, you read it correct FREE!!! Checkout:

Let's train our Penguin [Linux computer] to become our privacy guard

I am considering by this point you have a working instance of a Linux in any hardware.
All you need is to have shell access to your Linux machine. Or you can search ‘how to ssh to Linux machine’ if you don't know.
This depends on what machine you have and which Linux distribution you install, so it is not practical for me to demonstrate in the scope of this article.

Let's install the packages/software we need.
Open your remote/local terminal run the following command

This curl command automates installation for you
You will be notified with IPs to connect on a successful installation

Visit this public/ private IP depending upon whether its a local machine or cloud and follow the on-screen instructions to finish the setup.

You will be greeted with this simple interface

ay! your custom DNS is now up and running. Your Wi-Fi router should talk to your DNS server. Depending on your router vendor and model this might look different. But in a nutshell, you should modify your DHCP configuration to use your DNS server IP.

Configure only Primary DNS your router will automatically find alternate DNS in case your DNS doesn't respond

A router reboot may be required to flush DNS and use new DNS configuration.

Tada.! Your adguard DNS is already filtering spam and adware

What's next?

Now you have control over domains which your devices communicate.
Futher you can configure your DNS server with more filters, for more secure and private home network.
For general reference you can read:

Time to enjoy the true beauty of your internet

Former Java developer, active Angular developer, Data-Science Student and Azure Certified cloud application developer.