wget: unable to resolve host address “xxxxx”
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”
Hi.
This is my first time helping out. I think you should add an entry into the hosts file.
John CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
ping 192.168.80.128
and/or
traceroute 192.168.0.128
Does it work?
wget http://192.168.80.128/whatever
Does it work?
wget yourname/whatever
That apparently doesn’t work.
If the other do, then your problem is that there is no dns entry for 192.168.80.128 on your dns server located at 192.168.80.2
—
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ http://www.melvilletheatre.com
try adding google dns
8.8.8.8
in resolv.conf
CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
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?
I tried to wget the google homepage, and It worked… So confused
Hello again..
you can use the Subnet IP to 192.168.0 and Mask to 255.255.255.0 into the NAT setting of Virtual Network Editor provided by vmware.
CentOS mailing list CentOS@CentOS.org http://lists.CentOS.org/mailman/listinfo/CentOS
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写到: