mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-10-05 22:05:46 +01:00
Merge pull request #143 from FadeMind/patch-1
readme_template.md: updateHostsWindows.bat HowTo
This commit is contained in:
+15
-6
@@ -147,11 +147,19 @@ manually flush your DNS cache once the new hosts file is in place.
|
|||||||
|
|
||||||
### Mac OS X
|
### Mac OS X
|
||||||
Open a Terminal and run:
|
Open a Terminal and run:
|
||||||
|
```
|
||||||
`sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder`
|
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
|
||||||
|
```
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
Open a Command Prompt:
|
|
||||||
|
|Run `updateHostsWindows.bat` in Command Prompt in repository dir always after updating main hosts file for easy replacing hosts file in Windows and reload DNS cache.|
|
||||||
|
:---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
|
||||||
|
|WARNING: Don't run this BAT file directly from popup menu. You have been warned.|
|
||||||
|
:---------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Open a Command Prompt in directory where are files from this repository:
|
||||||
|
|
||||||
**Windows XP**: Start -> Run -> `cmd`
|
**Windows XP**: Start -> Run -> `cmd`
|
||||||
|
|
||||||
@@ -161,9 +169,10 @@ Open a Command Prompt:
|
|||||||
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
|
**Windows 8**: Start -> Swipe Up -> All Apps -> Windows System -> right-click Command Prompt ->
|
||||||
"Run as Administrator"
|
"Run as Administrator"
|
||||||
|
|
||||||
and run:
|
and run command:
|
||||||
|
```
|
||||||
`ipconfig /flushdns`
|
updateHostsWindows.bat
|
||||||
|
```
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
Open a Terminal and run with root privileges:
|
Open a Terminal and run with root privileges:
|
||||||
|
|||||||
Reference in New Issue
Block a user