{"id":31626405,"url":"https://github.com/haiueom/win-dns","last_synced_at":"2025-10-06T19:51:53.297Z","repository":{"id":314513676,"uuid":"1055630785","full_name":"haiueom/win-dns","owner":"haiueom","description":"A user-friendly PowerShell script to quickly view and switch DNS settings on your active network adapters.","archived":false,"fork":false,"pushed_at":"2025-09-12T21:37:20.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-12T23:46:16.646Z","etag":null,"topics":["powershell","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/haiueom.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-12T14:53:49.000Z","updated_at":"2025-09-12T21:38:02.000Z","dependencies_parsed_at":"2025-09-16T12:03:48.585Z","dependency_job_id":null,"html_url":"https://github.com/haiueom/win-dns","commit_stats":null,"previous_names":["haiueom/win-dns"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/haiueom/win-dns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haiueom%2Fwin-dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haiueom%2Fwin-dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haiueom%2Fwin-dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haiueom%2Fwin-dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haiueom","download_url":"https://codeload.github.com/haiueom/win-dns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haiueom%2Fwin-dns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278671749,"owners_count":26025743,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["powershell","powershell-script"],"created_at":"2025-10-06T19:51:52.465Z","updated_at":"2025-10-06T19:51:53.290Z","avatar_url":"https://github.com/haiueom.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# win-dns\nA user-friendly PowerShell script to quickly view and switch DNS settings on your active network adapters. Easily change to popular public DNS providers or revert to your network's automatic (DHCP) settings through a simple, interactive menu.\n\n## Requirements\n- Operating System: Windows 10 / 11\n- PowerShell: PowerShell 5.1 or later\n- Permissions: Administrator privileges are required.\n\n## Usage\n\nJust download `main.ps1` and run it as administrator, and then enter the number corresponding to your desired provider and press Enter.\n\nWhen you run the script, you will see a menu similar to this:\n```text\n🔎 Current DNS Settings:\n  ∙ Wi-Fi (Interface Intel(R) Wi-Fi 6 AX201 160MHz)\n    IPv4: 1.1.1.1, 1.0.0.1\n    IPv6: 2606:4700:4700::1111, 2606:4700:4700::1001\n\n🌐 Select a new DNS provider:\n  1. Google (8.8.8.8, 8.8.4.4)\n  2. Cloudflare (1.1.1.1, 1.0.0.1)\n  3. OpenDNS (208.67.222.222, 208.67.220.220)\n  4. Quad9 (9.9.9.9, 149.112.112.112)\n  5. CleanBrowsing (185.228.168.9, 185.228.169.9)\n  6. Reset to Automatic (DHCP)\n\nEnter your choice [1-6]:\n```\n\n## Configuration\nYou can easily customize the list of DNS providers by editing the `$dnsProviders` variable near the top of the script.\n\nTo add a new provider, simply add a new `[PSCustomObject]` to the array, following the existing format.\n```powershell\n$dnsProviders = @(\n    # ... existing providers ...\n\n    # Add your new provider here\n    [PSCustomObject]@{ Name = \"My Custom DNS\"; IPv4 = @(\"1.2.3.4\", \"5.6.7.8\"); IPv6 = @(\"::1\") }\n)\n```\n- Name: The display name for the provider in the menu.\n- IPv4: An array of one or two IPv4 server addresses.\n- IPv6: An array of one or two IPv6 server addresses.\n\nLeave the array empty (@()) if there are no IPv4/IPv6 addresses.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaiueom%2Fwin-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaiueom%2Fwin-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaiueom%2Fwin-dns/lists"}