wget: unable to resolve host address “xxxxx”

Home » CentOS » wget: unable to resolve host address “xxxxx”
CentOS 12 Comments

Hi all,

I find that in my CentOS, which is installed in vmware, I can use yum to install software from Internet, and I can also ping websites, but I
cannot download stuff using wget. I receive error msg unable to resolve host address

12 thoughts on - wget: unable to resolve host address “xxxxx”

  • And what does that do?

    (Sent from iPhone, so please accept my apologies in advance for any spelling or grammatical errors.)

  • His IP is in private address space; google nameservers won’t help. The correct answer is to fix his local DNS config.

  • But how? Could you be more specific?
    I am using NAT to connect my virtual machine to the Internet.

    于2014年7月30日 22:39:04,Devin Reade写到:

  • What is the exact commend you are using that is not working?

    192.168.80.128 is not a normal address, it is what is called an Internal address. See this link concerning 192.168 branch:

    http://en.wikipedia.org/wiki/Private_network

    You would need SOMETHING to relate a name to that address, either in a host file or someone would need to add the name to your DNS.

    Thanks, Johnny Hughes

  • is that a valid DNS server that knows how to look up the address you’re trying to wget from? the wget command you’re running, is it from a host on your local NAT network, or from a host on the public internet?

  • We need more information off you. What kind of vmware? What host platform?
    What CentOS? What is your exact ‘wget’ command & failure message?

    It may be a vmware problem in which case you may need to ask there. However
    (iirc) vmnet0 (bridged), vmnet1 (host-only) and vmnet8 (nat) are common psuedo network devices installed. Nat should work out of the box but note is effectively using whatever DNS is configured for the host.

    However, the fact other tools work, would, in the first instance, imply a problem with ‘wget’ usage.

  • I am using CentOS 6.5, Vmware 10.0.3

    It’s working now. I have no idea why, since I didn’t change anything.

    于2014年8月1日 19:06:03,Guy Harrison写到: