或者像今天一样,解不出域名。。。
如果不想折腾 dnsmasq,可以用这个简单方法:
sudo mdkir /etc/resolver
sudo bash -c 'echo nameserver 114.114.114.114 > /etc/resolver/v2ex.com'
再或者:
# for Apple
sudo bash -c 'echo nameserver 114.114.114.114 > /etc/resolver/apple.com'
sudo bash -c 'echo nameserver 114.114.114.114 > /etc/resolver/apple.com.cn'
# for 网易云音乐
sudo bash -c 'echo nameserver 114.114.114.114 > /etc/resolver/163.com'
sudo bash -c 'echo nameserver 114.114.114.114 > /etc/resolver/126.net'
# for http://www.google.cn/maps
sudo bash -c 'echo nameserver 114.114.114.114 > /etc/resolver/google.cn'
See Also: man 5 resolver
1
Livid MOD 非常感谢!
|
2
Livid MOD |
4
Livid MOD |
5
nikolai 2015-05-16 01:21:48 +08:00
mkdir -> mdkir ←_←
|