Skip to content

Instantly share code, notes, and snippets.

@chenshengzhi
Last active February 12, 2016 14:09
Show Gist options
  • Select an option

  • Save chenshengzhi/30e6f85b3bb55450f2c7 to your computer and use it in GitHub Desktop.

Select an option

Save chenshengzhi/30e6f85b3bb55450f2c7 to your computer and use it in GitHub Desktop.
hosts and dns
#!/bin/bash
wget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O ~/hosts
sed -i '' 's/# Modify hosts start/#user define\
\#127.0.0.1 localhost\
#127.0.0.1 localhost\
\
# Modify hosts start/g' ~/hosts
sudo mv ~/hosts /etc/hosts
@chenshengzhi

Copy link
Copy Markdown
Author

dns

218.85.152.99
218.85.157.99
180.76.76.76
223.5.5.5
223.6.6.6
207.97.227.239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment