# wget http://www.webmin.com/jcameron-key.asc --2019-02-26 23:56:22-- http://www.webmin.com/jcameron-key.asc Resolving www.webmin.com (www.webmin.com)... failed: Name or service not known. wget: unable to resolve host address 'www.webmin.com'

webminをダウンロードしようとwgetを実行するとエラーが出てダウンロードできない

名前解決ができていない??

解決策

[![](https://web.archive.org/web/20200924154130im_/https://s0.wordpress.com/mshots/v1/https%3A%2F%2Faskubuntu.com%2Fquestions%2F425484%2Funable- to-use-wget- command?w=160&h=90)![](https://web.archive.org/web/20200924154130im_/https://s0.wordpress.com/mshots/v1/https%3A%2F%2Faskubuntu.com%2Fquestions%2F425484%2Funable- to-use-wget-command?w=160&h=90)Unable to use wget command - Ask Ubuntuaskubuntu.com](https://web.archive.org/web/20200924154130/https://askubuntu.com/questions/425484/unable- to-use-wget-command “Unable to use wget command - Ask Ubuntu”)

Edit your Resolv conf using

# sudo vim /etc/resolv.conf

Then Enter the below

nameserver 192.168.1.1
nameserver 8.8.8.8
nameserver 4.4.4.4

~~~~~

Then Restart your Server Using

# sudo /etc/init.d/networking restart

/etc/resolv.confnの中にネームサーバーの情報を書き込んで再起動で解決しました!

# vim /etc/resolv.conf 
nameserver 192.168.1.1 
nameserver 8.8.8.8 
nameserver 4.4.4.4

再起動するとOK