将域名映射为ip地址
时间:2021-06-04 18:06:23
收藏:0
阅读:19
windows将域名解析成IP地址
修改host文件
路径在 C:\Windows\System32\drivers\etc\host
linux将域名解析成IP地址
使用root用户修改resolv.conf文件
vi /etc/resolv.conf
然后输入:
nameserver 22.10.19.68
然后保存退出即可,不行的话重启服务器试试。
原文:https://www.cnblogs.com/EricShen/p/14850347.html
评论(0)