Changing DNS is one of the most frequently recommended settings and one of the least frequently explained in full. The process differs on every device, and some bury it fairly deep.

Before starting, one thing shapes the outcome: where you change it.

Router first, devices second

Changed onApplies toTravels with you?
RouterEvery device in the houseNo
Phone or laptopThat device onlyYes

Changing it on the router covers devices that have no DNS settings of their own, smart televisions, games consoles, security cameras, and smart plugs. It's the most comprehensive approach for home use.

Changing it on a device helps in the opposite situation: when you're on office Wi-Fi, café Wi-Fi, or mobile data. The setting goes wherever the device goes.

Both can be used together without conflict. A device's own setting always wins over the one handed out by the router.

Commonly used addresses

ProviderPrimarySecondary
Cloudflare1.1.1.11.0.0.1
Google8.8.8.88.8.4.4
Quad99.9.9.9149.112.112.112

All three are free and have run for years without significant outages. The speed difference between them is usually imperceptible from Indonesia; what distinguishes them more is their logging policy and whether filtering is built in. They're compared in the guide to public DNS and privacy.

Don't use random DNS addresses from forums or adverts. Whoever runs a resolver can see every site name you look up, and can answer with the wrong address. Use a provider whose identity is clear and whose policy you can read.

Changing it on the router

Open the router's settings page

Usually at 192.168.1.1 or 192.168.0.1 in a browser. If you've forgotten the admin password, the recovery steps are in the guide to resetting a router.

Find the WAN, Internet, or DHCP Server menu

Its location differs by brand. You're looking for fields called Primary DNS and Secondary DNS, often alongside an automatic option that must be switched off first.

Fill both fields, save, restart

Enter the primary and secondary addresses. Once saved, restart the router so devices pick up the new setting when they reconnect.

Some provider-supplied routers lock these fields. If yours is locked, the only routes are setting it on each device, or using your own router behind it, the arrangement is covered in the guide to modem, router, and ONT.

On ONTs commonly installed in Indonesia

DeviceUsual addressWhere the DNS fields usually are
ZTE (F609, F670L, and similar)192.168.1.1Network or Local Network menu, then LAN, then DHCP Server
Huawei (HG8245 series and similar)Often 192.168.100.1LAN menu, DHCP Server settings section
Your own router behind the ONTSee the router's stickerInternet, WAN, or DHCP menu

Menu names vary between firmware versions. The more common obstacle is the account: the one printed on the ONT sticker is often only a regular user account, which can't change DHCP settings. The full admin password is held by the provider. Don't try password combinations from the internet one by one. If the fields can't be changed, just set DNS on each device. Logging into the ONT's page is covered in the guide to logging in to 192.168.1.1.

Android

Android offers two approaches, and the first is considerably better.

Private DNS applies across every network at once, including mobile data, and its requests are encrypted. Open Settings › Network & internet › Private DNS, choose "Private DNS provider hostname", then enter your chosen provider's hostname, not a numeric address. Cloudflare uses one.one.one.one, Google uses dns.google, Quad9 uses dns.quad9.net.

On Samsung phones, which are widely used here, the location differs: Settings › Connections › More connection settings › Private DNS. On some One UI versions the name varies slightly. The feature has been available since Android 9.

Through Wi-Fi settings applies to one network only. Long-press the network name, choose Modify network, open the advanced options, change IP settings to Static, then fill in the DNS fields. This approach also requires entering an IP address manually, which often creates new problems, discussed in the guide to local IPs and DHCP.

iPhone and iPad

Open Settings › Wi-Fi, tap the (i) icon beside the network name, scroll to Configure DNS, and switch from Automatic to Manual. Remove the existing addresses, then add your chosen ones.

Worth knowing: this applies only to that network, and not when using mobile data. To apply it everywhere, iOS needs a configuration profile from the DNS provider.

Windows

Open adapter settings

Settings › Network & internet › select the active Wi-Fi or Ethernet › Edit next to DNS server assignment.

Switch to Manual

Turn on IPv4, enter the preferred and alternate DNS. Leave IPv6 as it is if you're unsure.

Clear the old cache

Open Command Prompt and run ipconfig /flushdns. Without this, already-cached names keep using the old answers until they expire.

macOS

System Settings › Network › select the active connection › Details › DNS tab. Press the add button, enter the addresses one at a time, then save.

To clear the cache, run sudo dscacheutil -flushcache in Terminal.

Confirming the change took effect

Don't stop after saving, some devices silently ignore the setting.

  • Quickest way: open a DNS test page such as Cloudflare's 1.1.1.1/help. It shows which resolver is actually answering your requests, and whether encrypted DNS is active.
  • On Windows: run nslookup giakreasi.com. The Server line at the top shows the resolver in use.
  • On macOS or Linux: dig giakreasi.com, and check the SERVER line near the bottom of the output.

If the old address still appears, something else is most likely overriding it, an active VPN, a profile from work, or Android's Private DNS winning over the per-network setting.

Why results in Indonesia often aren't what you expect

There's one thing guides from abroad rarely explain. Many internet providers in Indonesia intercept ordinary DNS requests, which travel over port 53, and answer them with their own resolver. This is part of how site blocking based on Komdigi's TrustPositif list is carried out.

The result is confusing. You enter 8.8.8.8, and nslookup even shows 8.8.8.8 on the Server line, yet the answer actually comes from the provider's resolver. The command only shows where the request was sent, not who answered it. A test page such as 1.1.1.1/help is more honest about this.

MethodCan it be intercepted en route?Examples
Ordinary DNS (numeric address)YesDNS fields on a router, Windows, or iPhone
Encrypted DNS (DoT or DoH)Much harderAndroid Private DNS, secure DNS in Chrome or Firefox

So if your goal is privacy, or your provider's resolver is often slow to answer, choose an encrypted method. One thing to understand: changing DNS doesn't change the status of sites blocked by the government. Blocking isn't done through DNS alone, and the rules still apply whatever resolver you use. The explanation is in the guide to why sites are blocked.

Choosing to suit your household

  • A home with children: Cloudflare has a family filtering variant, 1.1.1.3 and 1.0.0.3, or the hostname family.cloudflare-dns.com for Private DNS. Set it on the router so the TV and the children's tablets are filtered too, then add parental controls on the router.
  • Someone who moves between a boarding room and cafés: Private DNS on the phone and encrypted DNS in the laptop's browser are enough. The settings travel with you.
  • A small office with an internal server or printer: leave DNS automatic on office devices, and change it only on the router if genuinely needed.

If something breaks

SymptomCause and action
Café Wi-Fi login page won't appearTurn off private DNS briefly, log in, turn it back on
Internal office sites won't openRevert to automatic while on the office network
Every site fails to openA typo in the address; check it or revert to automatic
Some apps still use the old DNSNormal, some apps carry their own resolver

The first row is the most common, and isn't a sign anything is broken. Public Wi-Fi login pages work precisely by intercepting DNS requests, how that works is explained in the captive portal guide.

To undo everything, select the automatic option again in each menu you changed. Nothing is left behind on the system, because nothing was installed in the first place.

If your reason for changing DNS is to fix a slow connection, it's worth reading what DNS is and how it works first, the closing section explains what changes and what doesn't.

Frequently asked questions

Is it better to change DNS on the router or on each device?

On the router, because one change covers every device including televisions and consoles that have no settings of their own. Changing it on a device is a useful complement, since the setting travels with you onto other networks.

Is changing DNS risky?

No, as long as you use a widely known provider. What to avoid are random DNS addresses from forums or adverts, because whoever runs them can see every site name you look up and could point you somewhere wrong.

Why doesn't the café Wi-Fi login page appear after changing DNS?

Because that page relies on DNS redirection to display. Private DNS bypasses that mechanism. Turn it off temporarily, complete the login, then turn it back on.

How do I undo it?

In each menu you changed, select the automatic option again, it's called DHCP, Automatic, or "Obtain DNS server address automatically" depending on the device. Nothing needs installing or removing.