{"id":21867389,"url":"https://github.com/bdadmehr0/onedns","last_synced_at":"2025-04-14T22:22:50.945Z","repository":{"id":171318167,"uuid":"647729702","full_name":"BDadmehr0/onedns","owner":"BDadmehr0","description":"All DNS in one ","archived":false,"fork":false,"pushed_at":"2025-02-25T00:40:41.000Z","size":1661,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T10:21:22.194Z","etag":null,"topics":["dns","linux","proxy","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BDadmehr0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-31T11:59:27.000Z","updated_at":"2025-03-02T21:03:29.000Z","dependencies_parsed_at":"2024-10-16T21:00:10.062Z","dependency_job_id":"cf62458b-a375-4cf9-a217-22364ce6c525","html_url":"https://github.com/BDadmehr0/onedns","commit_stats":null,"previous_names":["bdadmehr0/dns-403","bdadmehr0/onedns"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDadmehr0%2Fonedns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDadmehr0%2Fonedns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDadmehr0%2Fonedns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDadmehr0%2Fonedns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BDadmehr0","download_url":"https://codeload.github.com/BDadmehr0/onedns/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248969494,"owners_count":21191273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dns","linux","proxy","shell-script"],"created_at":"2024-11-28T05:09:21.859Z","updated_at":"2025-04-14T22:22:50.934Z","avatar_url":"https://github.com/BDadmehr0.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneDNS\n\n\u003e Smart DNS Switcher for Linux with Backup and Restore  \n\u003e Written in pure Bash — minimal, fast, and efficient.\n\n![Version](https://img.shields.io/badge/version-2.0-blue)\n![License](https://img.shields.io/badge/license-GPLv3-green)\n\n## 🚀 About\n\n**OneDNS** is a lightweight command-line tool for managing DNS settings on Linux systems.  \nIt allows you to switch DNS providers with one click, reset to default, and safely restore your original settings from backup.\n\n## 🔧 Features\n\n- ✅ System-wide installation or live usage (no install needed)\n- ✅ Switch between trusted DNS providers (403, Electro, Shecan)\n- ✅ Reset to Google DNS (8.8.8.8)\n- ✅ Automatic backup of original `/etc/resolv.conf`\n- ✅ Easy restore of backup anytime\n- ✅ Clean uninstallation option\n- 🛑 \"Filter check\" feature is present in code (commented out for now)\n\n## 📦 Installation\n\n### Live mode (no installation):\n```bash\nsudo bash onedns.sh\n```\n\n### Install system-wide:\nWhen prompted, select:\n```\n[1] Install (system-wide)\n```\nThen use it from anywhere with:\n```bash\nsudo onedns\n```\n\n## 💻 Usage\n\nYou’ll see a menu like this:\n\n```\n[1] Start DNS Options\n[2] Reset DNS (8.8.8.8)\n[5] About\n[6] Show Current DNS\n[7] Restore Original DNS from Backup\n[9] Uninstall OneDNS\n[00] Exit\n```\n\n### DNS Options:\n\n- **403 Online** → `10.202.10.202, 10.202.10.102`\n- **Electro** → DNS optimized for unlocking YouTube\n- **Shecan** → Reliable Iranian DNS provider\n\n## 🧠 Backup \u0026 Restore\n\nThe script creates a **one-time backup** of `/etc/resolv.conf` when you first change the DNS.  \nTo restore it at any time, select:\n\n```\n[7] Restore Original DNS from Backup\n```\n\n## 🧹 Uninstalling\n\nYou can completely remove OneDNS and its backup using:\n```\nsudo onedns\n# Then select option [9] Uninstall\n```\n\n## 📝 License\n\nThis project is licensed under the **GNU General Public License v3.0**.  \nSee the [LICENSE](./LICENSE) file for details.\n\n\n## 👨‍💻 Author\n\nMade with ❤️ by [@BDadmehr0](https://github.com/BDadmehr0)\n\nIf you find this tool useful, feel free to star 🌟 the repo and share it with others!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdadmehr0%2Fonedns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdadmehr0%2Fonedns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdadmehr0%2Fonedns/lists"}