直接修改hosts文件:
windows hosts添加本地dns解析的修改方法:
打开hosts文件(一般情况下路径是 C:WindowsSystem32driversetchosts ),在最后面添加下面解析即可:199.27.79.249 cloud-cdn-digitalocean-com.global.ssl.fastly.net
上面这个地址不行了,改为下面这个:151.101.229.194 cloud-cdn-digitalocean-com.global.ssl.fastly.net
linux添加本地dns解析的方法之一也是直接在hosts文件里添加上述解析命令。linux的hosts文件通常路径是/etc/hosts,vi打开添加即可。
以上方法证明有效。