Ubuntu – Unable to use wget command

wget

I am using Ubuntu 13.10 with proxy servers, which require an User ID and password.

I am unable to run the wget command. It returns:

Resolving sourceforge.net (sourceforge.net)... failed: Name or service not known.
wget: unable to resolve host address ‘sourceforge.net’

What can be done to resolve this?

Best Answer

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

Replace 192.168.1.1 with your Router IP

Edit this file too if not your DNS will override it

# sudo vim /etc/resolvconf/resolv.conf.d/base

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
Related Question