You can do just about anything you want with Termux. Properly set up its basicly a full command line for your device that can run programs or do abd things but the setup is quite a bit to get useabilty so unless you already have a working understanding of that I really don’t suggest this route.
Sure I can give you commands to makebyour phone do the thing probably. But now its running in a system you don’t understand or know how to stop.
Ternux is not a toy on a Mission Critical device (and yes your phone is critical to your mission… blow a tire and see how “critical” it is)
If you want to learn termux I suggest you dig around in the closet and drag out a dead device you can play with. That way when you break something the risk is much lower.
I’m gonna give you some defintions. They may help.
DNS (Cloudflare, Google, root nameservers, ect)
The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through ip addresses. DNS translates domain names to IP adresses so browsers can load Internet resources.
VPN (Tailscale or Pengolin)
A virtual private network (VPN) is an overlay network that uses network virtualization to extend a private network across a public network, such as the Internet, via the use of encryption and tunneling protocol. In a VPN, a tunneling protocol is used to transfer network messages from one network host to another.
Smart DNS (NordVPN, SurfShark, ExpressVPN)
Smart DNS is defined as a special type of service that is used to unblock the geo-restricted services and content and accordingly improve the speed of the internet. Smart DNS mainly works by changing the Domain Name System(DNS) settings on the router or user device to redirect DNS requests of users through a server that is placed or located at a different region. Smart DNS helps to stay connected to the networks that have restrictions for accessing such as corporate networks.
So a Smart DNS uses a VPN to connect you to a nameserver so you can look things up from elsewhere
Using a DNS Lookup (AdGuard, PiHole) to Block websites puts a wall between your device and the nameserver so your device can’t look things up.
This is a major issue in the tech world. The naming conventions suck and rarely mean much so things get real confusing real quick. I have litterally had to correct this several times because even I’m really guilty of being lazy with my language now that I half ass understand because saying it all properly is fucking hard.