> ## Documentation Index
> Fetch the complete documentation index at: https://e-gurl.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing DNS Servers

> How DNS-MNS tests and ranks DNS servers

# Testing DNS Servers

DNS-MNS provides comprehensive testing of DNS servers to find the fastest ones for your connection.

## How Testing Works

When you select **Test Gaming DNS** from the main menu, the tool performs two types of tests on each DNS server:

### 1. Ping Test (ICMP)

The tool sends ICMP packets to each DNS server and measures the round-trip time:

```bash theme={null}
# Internally runs something like:
ping -c 3 -W 2 1.1.1.1
```

* Sends 3 pings per server
* 2-second timeout per ping
* Measures average response time

### 2. DNS Query Test

If `dig` is installed, the tool also measures actual DNS query response time:

```bash theme={null}
# Internally runs something like:
dig @1.1.1.1 google.com +time=2 +tries=1
```

This tests how quickly the DNS server can resolve domain names.

## Scoring Algorithm

DNS-MNS uses a weighted scoring system to rank servers:

| Test              | Weight |
| ----------------- | ------ |
| Ping Time         | 70%    |
| DNS Response Time | 30%    |

The formula:

```
score = (ping_time * 0.7) + (dns_response_time * 0.3)
```

Lower scores are better. Servers are ranked from lowest to highest score.

## DNS Categories

You can choose to test specific categories of DNS servers:

<AccordionGroup>
  <Accordion title="International Gaming DNS">
    Well-known global DNS providers:

    * Cloudflare (1.1.1.1)
    * Google (8.8.8.8)
    * Quad9 (9.9.9.9)
    * OpenDNS (208.67.222.222)
    * AdGuard (94.140.14.14)

    **Best for:** General use, reliable performance worldwide
  </Accordion>

  <Accordion title="Regional/Middle East DNS">
    DNS servers optimized for the Middle East region:

    * Shecan
    * Electro
    * Begzar
    * 50+ Iranian ISP DNS servers

    **Best for:** Users in Iran, bypassing restrictions
  </Accordion>

  <Accordion title="Gaming Optimized DNS">
    DNS servers designed for low-latency gaming:

    * ExitLag
    * WTFast
    * NoPing
    * Haste
    * RadarGame

    **Best for:** Lowest latency for online gaming
  </Accordion>

  <Accordion title="VPN/Privacy DNS">
    Privacy-focused DNS providers:

    * Surfshark DNS
    * NordVPN DNS
    * ProtonVPN DNS

    **Best for:** Privacy-conscious users
  </Accordion>

  <Accordion title="Additional Iranian DNS">
    90+ additional DNS servers that work in Iran

    **Best for:** Backup options when primary servers are slow
  </Accordion>
</AccordionGroup>

## Understanding Results

After testing, results are color-coded:

| Color  | Ping Time | Quality   |
| ------ | --------- | --------- |
| Green  | \< 20ms   | Excellent |
| Yellow | 20-50ms   | Good      |
| Red    | > 50ms    | Fair      |

Example output:

```
TOP 3 DNS SERVERS

#1 Shecan
   Location: Iran
   Primary:   178.22.122.100
   Secondary: 185.51.200.2
   Ping: 15ms (Excellent)
   DNS Response: 23ms

#2 Electro
   Location: Iran
   Primary:   37.152.182.112
   Secondary: 37.152.182.113
   Ping: 18ms (Excellent)
   DNS Response: 28ms
```

## Testing Duration

Test duration depends on:

* **Number of servers** - Testing all 375+ servers takes longer
* **Your connection** - Slower connections take more time
* **Server responsiveness** - Unresponsive servers timeout after 2 seconds

Typical durations:

| Category             | Servers | Duration |
| -------------------- | ------- | -------- |
| International Gaming | \~93    | 1-2 min  |
| Regional/Middle East | \~124   | 2-3 min  |
| Gaming Optimized     | \~37    | 30 sec   |
| All Servers          | 375+    | 5-7 min  |

## Testing Tips

<Tip>
  **Close bandwidth-heavy applications** before testing for more accurate results.
</Tip>

<Note>
  Results may vary based on time of day and network conditions. Consider testing at different times.
</Note>

For the most accurate results:

1. Use a wired connection if possible
2. Close downloads and streaming apps
3. Test during your typical gaming hours
4. Run tests multiple times to confirm results
