macOS xterm-256color zsh 118 views

Quick network diagnostic tests to verify DNS server locations and routing paths from Iran.

Initial verification commands:

  • curl: gets public IP to confirm location
  • dig: queries Google’s resolver for geolocation data
  • ifconfig: shows local network interface details
  • netstat: displays current routing table

Main DNS testing commands:

  • mtr: traces network path with packet loss stats to each DNS server
  • dig: queries ASN info to identify server ownership
  • curl: fetches Cloudflare trace data showing datacenter location
  • nslookup: performs reverse DNS lookups
  • ping: measures basic connectivity and response times
  • traceroute: maps full routing path to destination servers

Testing these DNS servers: 1.1.1.1, 8.8.8.8, 8.8.4.4, 4.2.2.2, 4.2.2.4 Results show all servers route through European datacenters, not Iran.

More recordings by Zamani