Skip to content

GitHub Hosts

Query GitHub domain DNS records and generate hosts file

About This Tool

GitHub Hosts helps you query github domain dns records and generate hosts file. Common searches include DNS lookup, DNS query, GitHub Hosts, making it useful for quick browser-based processing and immediate results.

Common Use Cases

  • GitHub Hosts:Debug common issues in APIs, logs, and scripts
  • GitHub Hosts:Create parameters for development and testing
  • GitHub Hosts:Verify configuration before deployment or scheduled jobs

Practical Tips

  • Test with a small example before applying the result in production
  • Use this as a helper, not as a replacement for production validation

Features

  • Auto-query DNS records for 40 GitHub domains
  • IP resolution results on page load
  • A record query support
  • One-click copy all results
  • DNS over HTTPS for anti-pollution

How to Use

  1. 1Open page to auto-query all domains
  2. 2View IP resolution for each domain
  3. 3Click copy to export results

FAQ

Which domains are queried?

Automatically queries 40 GitHub-related domains including github.com, api.github.com, avatars.githubusercontent.com, etc.

What DNS service is used?

DNSPod (Tencent) public DNS over HTTPS (DoH) is used, which is harder to pollute than standard DNS.

Why query these domains?

To help detect if GitHub-related domains are affected by DNS pollution, ensuring normal access to GitHub services.

How to use in SwitchHosts?

Add a remote hosts source in SwitchHosts, URL: https://tools.ason.top/api/dns/github-hosts, enable auto-update to automatically get GitHub domain IPs.

How do I apply hosts changes immediately?

On Windows run ipconfig /flushdns in an admin terminal; on macOS run sudo dscacheutil -flushcache. Use an incognito window to verify.

Where is the hosts file?

Windows: C:WindowsSystem32driversetchosts. macOS/Linux: /etc/hosts. Admin privileges are required to edit it.

Related Tools

Longzhong Dialect

All tools process data locally in your browser. Nothing is uploaded to any server.