Source Link: https://github.com/JohnFawkes/DNSSwitch
Magisk module is attached in this post.
Search in magisk repo for DNS Switch (under Download in magisk manager) and install it.
Open Termux or Terminal Emulator, type command su and type dns_switch
enter the DNS server that you want
reboot your device and enjoy safe browsing
220.127.116.11 / 18.104.22.168
CleanBrowsing Adult Filter
22.214.171.124 / 126.96.36.199 Blocks access to all adult sites. Sites like Reddit are allowed. Google and Bing are set to Safe Mode
CleanBrowsing Family Filter
188.8.131.52 / 184.108.40.206 Blocks access to all adult sites (including sites like reddit). Google, Bing and YouTube are set to Safe Mode.
220.127.116.11 / 18.104.22.168
22.214.171.124 / 126.96.36.199
188.8.131.52 / 184.108.40.206
220.127.116.11 / 18.104.22.168
22.214.171.124 / 126.96.36.199
188.8.131.52 / 184.108.40.206
Norton Connectsafe - Security
220.127.116.11 / 18.104.22.168
Norton Connectsafe - Security + Pornography
22.214.171.124 / 126.96.36.199
Norton Connectsafe - Security + Pornography + Other
188.8.131.52 / 184.108.40.206
220.127.116.11 / 18.104.22.168
22.214.171.124 / 126.96.36.199 Anycast servers of the OpenNIC project. For faster speeds use a server located closer to you.
188.8.131.52 / 184.108.40.206
220.127.116.11 / 18.104.22.168
22.214.171.124 / 126.96.36.199 Non-Public (paid) DNS server anti-porn filtering [safedns.com]
188.8.131.52 / 184.108.40.206 Non-public DNS server for kodi. Visit unblockr.net for more information
220.127.116.11 / 18.104.22.168 Non-public DNS server for kodi. Visit unblockr.net for more information
22.214.171.124 / 126.96.36.199
188.8.131.52 / 184.108.40.206