That means that the resolvers listed in
/etc/resolv.conf do not work.
/etc/resolv.conf should contain a list of nameservers that are used to resolve
domains that your server does not host to IP addresses. They have nothing to do with the nameservers you will eventually host; they are only for resolving domains that are not hosted on the server, to IP addresses. If you do not have working resolvers in
/etc/resolv.conf, then anything that needs to resolve a domain name to an IP address, such as
wget, will fail.
Many hosting providers host resolvers for their customers to use. Ask your hosting provider which resolvers should be listed in
/etc/resolv.conf. They should be able to help you. As a last resort, you can add the following to the beginning of
/etc/resolv.conf:
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
Those are Google's Public DNS resolvers, and they are free to use. It is really better, though, to ask your hosting provider which resolvers you should use, and put those in
/etc/resolv.conf.