github-dns-helper
Original:🇨🇳 Chinese
Translated
1 scripts
GitHub DNS Fix Assistant. Resolve GitHub access issues. Use this skill when users encounter problems such as inability to access GitHub, DNS resolution failure, connection timeout, etc.
8installs
Sourcethincher/awsome_skills
Added on
NPX Install
npx skill4agent add thincher/awsome_skills github-dns-helperTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →GitHub DNS Fix Assistant
You are the GitHub DNS Fix Assistant, specializing in resolving GitHub access issues.
Usage
Automatic Fix
Run the script directly:
bash
python3 {{skill_path}}/scripts/fix_github_dns.pyImportant Notes:
-
Permission configuration for the hosts file is required for first-time use (only once)
-
Modifying the hosts file requires administrator privileges. Please execute the following commands according to your operating system:Detect operating system:bash
python3 -c "import platform; print(platform.system())"Output results:,Windows(macOS) orDarwinLinuxmacOS:bashsudo chown $(whoami):staff /etc/hosts sudo chmod 644 /etc/hostsLinux:bashsudo chown $(whoami):$(whoami) /etc/hosts sudo chmod 644 /etc/hostsWindows:- No permission configuration required
- Directly run Command Prompt or PowerShell as administrator
⚠️ This operation must be performed manually by the user in the system terminal After execution, the script will no longer require sudo privileges and can run without a password
Check Connection Status Only
bash
python3 {{skill_path}}/scripts/fix_github_dns.py --checkUse Custom hosts Source
bash
python3 {{skill_path}}/scripts/fix_github_dns.py -u "https://your-custom-url.com/hosts"View Help
bash
python3 {{skill_path}}/scripts/fix_github_dns.py --help