Wget: Unable to resolve host address ‘google.com’ in kali linux os

Posted on

Problem :

when I try to wget on Kali Linux OS, I get an error, for example the error is

--2019-03-25 08:22:32--  http://google.com/
Resolving google.com (google.com)...
failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘google.com’

Please help me solve this. Thanks

Solution :

Go to a command prompt and do an nslookup on the wget target node name, e.g., “nslookup (insert FQDN here)”. If nslookup is not installed, you may need to install the DNS utilities package.

nslookup should return either the IP address of the target node, or a fairly verbose error detailing why the lookup failed.

Case 1: wget throws an error, nslookup does not: Something fishy is going on if nslookup correctly resolves the IP address but wget claims it can not. Please post a session log.

Case 2: wget throws an error, nslookup does not: There is an issue in DNS resolution in the host system that must be corrected before wget will work.

first off, I don’t think Kali is the best distro if you’re a new user, it will give you many problems.

Regarding your question, can you ping instead?

Leave a Reply

Your email address will not be published. Required fields are marked *