Created
September 14, 2012 16:09
-
-
Save miend/3722915 to your computer and use it in GitHub Desktop.
Flush DNS cache, release and renew network IP address
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#if OSX | |
sudo dscacheutil -flushcache | |
sudo ipconfig set en0 BOOTP | |
sudo ipconfig set en0 DHCP | |
sudo ipconfig set en1 BOOTP | |
sudo ipconfig set en1 DHCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment