On Thu, May 01, 2014 at 12:48:47PM +0530, L V Gandhi wrote: > I have name resolution problem in my debian virtual machine. > In my host operating system name resolution is ok. > Even in debian, ping works. But wget says resolution error as follows. > lvgandhi@lvgacersqueeze:~$ ping -c4 [1]www.nse-india.com > PING [2]a1499.b.akamai.net (125.56.199.91) 56(84) bytes of data. > 64 bytes from [3]www.nse-india.com (125.56.199.91): icmp_req=1 ttl=53 > time=7.10 ms > 64 bytes from [4]www.nse-india.com (125.56.199.91): icmp_req=2 ttl=53 > time=4.97 ms > 64 bytes from [5]www.nse-india.com (125.56.199.91): icmp_req=3 ttl=53 > time=6.54 ms > 64 bytes from [6]www.nse-india.com (125.56.199.91): icmp_req=4 ttl=53 > time=7.82 ms > > --- [7]a1499.b.akamai.net ping statistics --- > 4 packets transmitted, 4 received, 0% packet loss, time 3007ms > rtt min/avg/max/mdev = 4.976/6.610/7.822/1.050 ms > lvgandhi@lvgacersqueeze:~$ wget -v > [8]http://www.nse-india.com/archives/equities/bhavcopy/pr/PR300414.zip > --2014-05-01 12:45:01-- > [9]http://www.nse-india.com/archives/equities/bhavcopy/pr/PR300414.zip > Resolving www.nse-india.com... failed: Name or service not known. > wget: unable to resolve host address `[10]www.nse-india.com' > lvgandhi@lvgacersqueeze:~$ > What todo, so that wget can do find and download from that site?
Check your /etc/resolv.conf and/or /etc/hosts. Check that "dig www.nse-india.com" returns an address. Also, perhaps, check if wget is using a proxy (it might be that the proxy server is the one unable to resolve). > -- > L V Gandhi > > References > > Visible links > 1. http://www.nse-india.com/ > 2. http://a1499.b.akamai.net/ > 3. http://www.nse-india.com/ > 4. http://www.nse-india.com/ > 5. http://www.nse-india.com/ > 6. http://www.nse-india.com/ > 7. http://a1499.b.akamai.net/ > 8. http://www.nse-india.com/archives/equities/bhavcopy/pr/PR300414.zip > 9. http://www.nse-india.com/archives/equities/bhavcopy/pr/PR300414.zip > 10. http://www.nse-india.com/
signature.asc
Description: Digital signature