首页 > 代码库 > Error prompt:“wget: unable to resolve host address”---Solution
Error prompt:“wget: unable to resolve host address”---Solution
//Situation
System prompts that:"wget: unable to resolve host address".
//Analysis
Unable to resolve host address means the problem of DNS(Domain Name System).
//Solution
To fix the problem, the configuration file "resolv.conf" should be modified as follow steps:
1. Get the root permission: su -i
2. Open the file with vi editor: vi /etc/resolv.conf
3. Press "i" into edit mode, and modify the content by:
nameserver 8.8.8.8 #google‘s DNS
nameserver 8.8.4.4 #google‘s DNS(backup)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。