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

Don’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: https://aws.amazon.com/free/

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

Yay! 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:
https://github.com/topics/adguard-blocklist

Time to enjoy the true beauty of your internet

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bypassing IP Based Rate-Limit

CAN QUANTUM COMPUTERS BREAK ENCRYPTION?

Article about the use of Quantum Computers breaking encryption by Code TECHNIQ

Cookies… not an internet snack

Biometrically verified — ensuring you’re a 1 of 1 rare artifact

Do I Need a Stronger Password

Checking Password Strength

BugBountyHunter.com future plans

{UPDATE} Hunter Legend Hack Free Resources Generator

Digital Democracy 1–3 January

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pradeep Kancharla

Pradeep Kancharla

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

More from Medium

To Stack Or Not To Stack

My very first photography project

OWASP Top 10 — TryHackMe | Injections

Skipfish — Penetration Testing tool in Kali Linux — kidnapshadow