Skip to content

ssccio/dnscheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnscheck

A command-line tool that checks DNS resolution across multiple public DNS servers in the United States, providing a visual representation similar to dnschecker.org.

Features

  • Checks DNS resolution across 15 major US-based DNS servers
  • Concurrent DNS queries for fast results
  • Visual feedback with ✅ for successful resolution and ❌ for failures
  • Displays results organized by city and state
  • 2-second timeout per DNS query
  • Works with any hostname or domain

Installation

From Source

git clone https://github.com/ssccio/dnscheck.git
cd dnscheck
go build -o dnscheck .

Using Go Install

go install github.com/ssccio/dnscheck@latest

Usage

dnscheck <hostname>

Examples

# Check DNS resolution for google.com
dnscheck google.com

# Check DNS resolution for a subdomain
dnscheck api.github.com

# Check DNS resolution for an IP address
dnscheck 8.8.8.8

Sample Output

Checking DNS resolution for: google.com
===================================================
✅ Berkeley, CA              (Quad9)
✅ Broomfield, CO            (Level3)
✅ Chicago, IL               (AdGuard)
✅ Council Bluffs, IA        (Google Secondary)
✅ Los Angeles, CA           (Cloudflare Secondary)
✅ Los Angeles, CA           (CleanBrowsing)
✅ Manchester, NH            (Oracle Dyn)
✅ Miami, FL                 (Quad9 Secondary)
✅ Monroe, LA                (CenturyLink)
✅ Mountain View, CA         (Google)
✅ New York, NY              (SafeDNS)
✅ Reston, VA                (Verisign)
✅ San Francisco, CA         (Cloudflare)
✅ San Francisco, CA         (OpenDNS)
✅ Seattle, WA               (OpenDNS Secondary)

DNS Servers

The tool queries the following public DNS servers across the United States:

Provider Location IP Address
Cloudflare San Francisco, CA 1.1.1.1
Google Mountain View, CA 8.8.8.8
Quad9 Berkeley, CA 9.9.9.9
OpenDNS San Francisco, CA 208.67.222.222
Cloudflare Secondary Los Angeles, CA 1.0.0.1
Level3 Broomfield, CO 209.244.0.3
Verisign Reston, VA 64.6.64.6
Oracle Dyn Manchester, NH 216.146.35.35
CenturyLink Monroe, LA 205.171.3.65
SafeDNS New York, NY 195.46.39.39
Google Secondary Council Bluffs, IA 8.8.4.4
AdGuard Chicago, IL 94.140.14.14
CleanBrowsing Los Angeles, CA 185.228.168.9
OpenDNS Secondary Seattle, WA 208.67.220.220
Quad9 Secondary Miami, FL 149.112.112.112

Requirements

  • Go 1.21 or higher

License

MIT License - see LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

Created by ssccio

About

Dns checker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages