GithubHelp home page GithubHelp logo

winhosts's Introduction

WinHosts

一款简易的hosts替换脚本

git clone https://github.com/Junyangz/WinHosts.git 

双击AutoChangehosts_v3.4.bat运行自动替换hosts批处理...

针对不同网络环境可以自主选择IPv6/IPv4 hosts。


脚本会自动以管理员身份运行,CMD运行后会弹出一个提示,

请点击“是/Y”

按提示选择

1.使用IPv6-hosts

2.使用IPv4-hosts

3.使用网络版IPv6-hosts

4.使用网络版IPv4-hosts

5.恢复初始hosts

6.退出

输入相对应数字并回车执行命令

执行脚本会把当前文件夹下的hosts文件(或者网络下载的hosts文件)替换系统

C:\Windows\System32\drivers\etc\hosts 文件

并使用ipconfig /flushdns命令清除DNS缓存!


winhosts's People

Contributors

junyangz avatar jyzor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar Limin Wang @wlmnzf avatar

Watchers

jerry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.