Change DNS on Android while using data or Wi-Fi


Changing DNS on Android is simple if you know how to do it. On Windows, you can just set your DNS, and the DHCP server handles your IP address. On Android, however, you need to configure every part of your IP to use a different DNS server on Wi-Fi settings. You also need a third party application to change your DNS when you are using mobile data. As you connect directly to your network provider, you have no control or configuration to change on your Android devices. So here’s a short on how you can change your DNS settings with a click of a button.

For Mobile Data and Wi-Fi:

For configuring a different DNS address for your mobile data, you have to create a local VPN on your device. You can accomplish this by using apps like Blokada and Adguard. As VPNs are allowed to have their own DNS server configuration, you can opt to change the DNS when you are using mobile data.

Using Blokada to change DNS for Mobile data
Using Blokada to change DNS for Mobile data


change DNS Android
Add a custom DNS on Android for mobile data

For Blokada:

  1. Open up Blokada
  2. Tap the DNS section
  3. Choose a pre-listed DNS or add your own server with the ‘+’ floating bar
  4. Turn on the Blokada VPN

Now you’re set to use a custom DNS server with your data package. Additionally, you can block all the ads and trackers with blokada which will save your data as well.

The method of using Blokada to change DNS server works for Wi-Fi as well, but you need an additional app running at all times which uses your battery. Changing Android settings does need some configuration on your end and additional steps than using a local VPN app like blokada but has less impact on battery. Blokada is free and open-source, so you can choose whatever method fits your needs.

Changing DNS for Wi-Fi with Android Settings

Changing DNS using Android settings for Tablet
Changing DNS using Android settings for Tablet. Android 4.4

There are numerous tutorials on this so I’ll keep this short. You have to

  1. Go to your Wi-Fi network list. (Take a note of your gateway IP. g. or
  2. Tap and hold the Wi-Fi network you are connected to
  3. Choose “Modify ”
  4. On the pop-up window, tap on “Advanced Options” drop-down
  5. Under “IP Settings”, choose “Static” instead of DHCP.
  6. Based on your gateway IP, configure your device to use any IP in the range of 2-254. g., if the gateway IP is, you can set it anyone number from –
  7. Set the network subnet to 24, which reflects the allowed number of devices on the network
  8. And then change the DNS to the one you want.
Previous articleInstalling Pihole Adblock on Linux Mint with Steps
Next articleUse persistent DNS over Wifi & Data networks on Android