What Is the Best DNS for Pakistan?
In short: the best DNS for Pakistan is the one that answers fastest and most reliably on your own connection. For most people that is Cloudflare (1.1.1.1), Google (8.8.8.8) or Quad9 (9.9.9.9). All three are free. Try each one, measure it with the simple test below, and keep the winner. If you want malware filtering, choose Quad9 or Cloudflare 1.1.1.2.
DNS is the internet's phone book. When you type a website name, your phone or computer asks a DNS resolver for that site's IP address. By default your ISP (PTCL, Nayatel, StormFiber, Jazz, Zong, Telenor and others) gives you its own resolver. A public DNS service replaces that resolver with one run by another company.
- No single winner for everyone: the fastest resolver depends on your ISP, your city and the route your traffic takes, so a result from Lahore on fibre may not match Karachi on 4G.
- DNS does not raise your internet speed: it only changes how quickly a site's name turns into an address. Downloads and video quality stay the same.
- It is free and easy to undo: you can switch back to your ISP's DNS at any time by choosing "Automatic" again.
Which Public DNS Servers Can I Use in Pakistan?
These are the main free public resolvers. The addresses below are published by each provider. Use both the primary and the secondary address so your device has a backup.
| Provider | IPv4 addresses | Filtering | Android Private DNS hostname |
|---|---|---|---|
| Cloudflare | 1.1.1.1 and 1.0.0.1 | None | one.one.one.one |
| Cloudflare (malware blocking) | 1.1.1.2 and 1.0.0.2 | Blocks known malware sites | security.cloudflare-dns.com |
| Cloudflare for Families | 1.1.1.3 and 1.0.0.3 | Blocks malware and adult content | family.cloudflare-dns.com |
| Google Public DNS | 8.8.8.8 and 8.8.4.4 | None | dns.google |
| Quad9 | 9.9.9.9 and 149.112.112.112 | Blocks known malicious domains | dns.quad9.net |
Should I Change My ISP's DNS at All?
Not always. Your ISP's resolver is often close to you on the network, so it can be quick. Change it when you see one of these signs:
- Websites take a second or two before they even start loading, while speed tests look fine.
- You see ERR_NAME_NOT_RESOLVED or "DNS_PROBE_FINISHED_NXDOMAIN" for sites that open on mobile data. Our ERR_NAME_NOT_RESOLVED guide covers the full fix.
- A website moved to new hosting and your network keeps opening the old server long after other people see the new one.
- You want malware or adult-content filtering for the whole house without installing apps.
How Do I Change DNS on Windows 10 and 11?
You need to be signed in as an administrator.
Windows 11
- Open Settings → Network & internet and click Wi-Fi or Ethernet.
- Click your connection (on Wi-Fi, open Hardware properties).
- Next to DNS server assignment, click Edit and choose Manual.
- Turn on IPv4 and enter the preferred DNS (for example
1.1.1.1) and alternate DNS (1.0.0.1). - Click Save, then run
ipconfig /flushdnsin Command Prompt.
Windows 10
- Open Control Panel → Network and Sharing Center → Change adapter settings.
- Right-click your Wi-Fi or Ethernet adapter and choose Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Choose Use the following DNS server addresses and enter the two addresses.
- Click OK, then run
ipconfig /flushdns.
How Do I Change DNS on Android and iPhone?
Phones handle DNS differently, and the setting on Android also works on mobile data.
Android (Private DNS)
On Android 9 and newer, open Settings → Network & internet (on Samsung: Connections → More connection settings) and tap Private DNS. Choose Private DNS provider hostname and type a hostname from the table, such as one.one.one.one or dns.google. This field takes a hostname, not an IP address. It applies on Wi-Fi and on Jazz, Zong, Telenor or Ufone data, and it encrypts your DNS lookups.
iPhone and iPad
Open Settings → Wi-Fi, tap the (i) next to your network, tap Configure DNS, choose Manual, delete the old servers and add 1.1.1.1 and 1.0.0.1 (or the Google or Quad9 pair). This applies only to that Wi-Fi network. For mobile data, iOS needs a DNS app or profile from the provider, such as Cloudflare's free 1.1.1.1 app.
How Do I Change DNS on My Router (PTCL, StormFiber, Nayatel)?
Changing DNS on the router covers every phone, laptop and smart TV on your Wi-Fi at once.
- Open the router's admin page in a browser. The address is printed on the sticker under the router, usually
192.168.1.1or192.168.0.1. - Sign in with the admin username and password from the sticker (or the one your ISP's technician set).
- Look for DNS under LAN, DHCP, WAN or Internet settings. The menu name differs by router model.
- Enter the primary and secondary DNS addresses, save, and restart the router.
- Reconnect your devices so they pick up the new setting.
Some ISP-supplied routers lock the DNS field. If you cannot change it there, set DNS on each device instead, or ask your ISP's helpline.
How Can I Test Which DNS Is Fastest on My Connection?
Do not trust a list of speeds from someone else's network. Measure your own in five minutes.
Windows (PowerShell)
Run this once for each resolver and compare the TotalMilliseconds value:
Measure-Command { Resolve-DnsName example.com -Server 1.1.1.1 -DnsOnly }
Replace 1.1.1.1 with 8.8.8.8, 9.9.9.9 and your ISP's DNS. Test five or six different websites, because a name the resolver has already cached returns faster than a new one.
macOS or Linux
Run dig @1.1.1.1 example.com and read the Query time line at the bottom. Repeat with @8.8.8.8 and @9.9.9.9.
A free benchmark tool
On Windows, GRC's free DNS Benchmark tool tests many resolvers at once from your own connection and ranks them for you.
Does Changing DNS Affect My Own Website?
No. Changing the DNS resolver on your phone or router only changes how you look up websites. It does not make your website faster or slower for visitors.
Your website's DNS is controlled by your domain's nameservers and DNS records (A, CNAME, MX), which you set at your registrar or hosting account. That is a different setting. Our DNS records guide explains nameservers and each record, and our .pk domain DNS guide shows how to point a .pk domain to hosting.
After you move a site to new hosting, some resolvers show the new IP sooner than others, because each one keeps old answers for the time set in the record (TTL). A public DNS service will not make the change appear everywhere sooner. You can check from many locations with a tool like dnschecker.org.
On Alif Host shared hosting (from PKR 300/month), you manage your domain's records yourself in cPanel Zone Editor, and our team can help on WhatsApp at +92 313 2946143 (technical team 11 AM to 8 PM PKT).
Is Public DNS Safe and Private?
Cloudflare, Google and Quad9 are large, well-known services and each publishes a privacy policy explaining what it logs and for how long. Read the policy of the one you choose. Two points to keep in mind:
- Encrypted DNS hides lookups from your network, not from the resolver: Android Private DNS and Chrome's Secure DNS setting (Settings → Privacy and security → Security → Use secure DNS) encrypt the lookup, but the provider still sees it.
- DNS is not a VPN: it does not hide which sites you visit from your ISP in every case, and it is not a tool for getting around websites blocked in Pakistan. This guide is about speed and reliability.


