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?
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/
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
Visit this public/ private IP depending upon whether its a local machine or cloud and follow the on-screen instructions to finish the setup.
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.
A router reboot may be required to flush DNS and use new DNS configuration.
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: