DNS (domain name service) is like the phonebook for the internet. When you type "www.google.com" in your browser, computers behind the scenes use that information to find Google's servers and send you there. Google's servers (and other websites) are actually hosted using what's called IP addresses, which are formatted as numbers separated by dots, e.g. 192.168.1.1.
Fortunately, because of the magic of DNS, we can use what's called a "DNS resolver" to easily and safely route any internet traffic from any devices within your network, and block inappropriate sites as well as malware, without having to set up site block lists, whitelists, etc.
Here's how.
There are many "family" DNS resolvers available. Personally, I like CloudFlare's "1.1.1.1 for Families". The DNS servers you want to use are:
Primary DNS: 1.1.1.3
Secondary DNS: 1.0.0.3
You can learn more about CloudFlare's DNS for families here.
Your Wifi router typically includes the ability to configure DNS settings. First, you'll need to log in to your router. If you've never done it before, be aware that login process can vary based on the router. You'll also need to know your router's local IP address or name. Here are a few articles which can help:
https://www.pcmag.com/how-to/how-to-access-your-wi-fi-routers-settings
https://race.com/blog/how-to-access-router-settings/
Alternatively, you may be able to log in to your router using a mobile app. Many providers include apps nowadays, so take a look at the brand of your router (ASUS, Netgear, etc.) and then check the app store for an app.
The DNS settings can typically be found under the "WAN" settings your router's configuration. The location of the WAN settings will vary, and I've included a few screenshots below to help you navigate.
The last step in the process is to update the DNS settings to use the DNS resolver. Again, this will vary based on your router. I've included an example from my ASUS router below.
Make sure to enter the primary server in the first box, and secondary server in the second. When you're done, save your settings, and then reboot your router. To make sure that it worked, try accessing an inappropriate site. You should get a "site can't be reached" message like the one below.
That's it!
Now, if it didn't work, or you can't get any site to load at all, don't sweat! Just go back to your router settings and disable the option for manual DNS or select the option for "default DNS", and then reboot your router. I promise nothing will be permanently broken :)
I hope this was helpful. Please feel to reach out if you need help!