This is very strange behavior. It seems like the name resolution works only from the second time onwards. I've never seen anything like that before.
In any case, I see that you're using a very old version of Wget. The current version is 1.19.5. Could you please update your version of Wget and try again to see if the problem persists? * VINEETHSIVARAMAN <vineethsivara...@gmail.com> [180510 15:06]: > *[~]$ wget hello google.com <http://google.com> --no-proxy -d* > DEBUG output created by Wget 1.14 on linux-gnu. > > URI encoding = ‘UTF-8’ > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > --2018-05-10 06:28:04-- http://hello/ > Resolving hello (hello)... failed: Name or service not known. > wget: unable to resolve host address ‘hello’ > URI encoding = ‘UTF-8’ > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > --2018-05-10 06:28:04-- http://google.com/ > Resolving google.com (google.com)... 74.125.24.102, 74.125.24.101, > 74.125.24.100, ... > Caching google.com => 74.125.24.102 74.125.24.101 74.125.24.100 > 74.125.24.138 74.125.24.113 74.125.24.139 2404:6800:4003:c03::71 > Connecting to google.com (google.com)|74.125.24.102|:80... ^C > [~]$ wget google.com --no-proxy -d > DEBUG output created by Wget 1.14 on linux-gnu. > > URI encoding = ‘UTF-8’ > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > --2018-05-10 06:28:14-- http://google.com/ > Resolving google.com (google.com)... failed: Name or service not known. > wget: unable to resolve host address ‘google.com’ > ~]$ wget hell google.com --no-proxy -d > DEBUG output created by Wget 1.14 on linux-gnu. > > URI encoding = ‘UTF-8’ > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > --2018-05-10 06:28:21-- http://hell/ > Resolving hell (hell)... failed: Name or service not known. > wget: unable to resolve host address ‘hell’ > URI encoding = ‘UTF-8’ > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > --2018-05-10 06:28:21-- http://google.com/ > Resolving google.com (google.com)... 74.125.24.101, 74.125.24.100, > 74.125.24.138, ... > Caching google.com => 74.125.24.101 74.125.24.100 74.125.24.138 > 74.125.24.113 74.125.24.139 74.125.24.102 2404:6800:4003:c03::71 > Connecting to google.com (google.com)|74.125.24.101|:80... ^C > [ ~]$ > > > On Thu, May 10, 2018 at 3:57 PM VINEETHSIVARAMAN <vineethsivara...@gmail.com> > wrote: > > > Hello Team , > > > > My server is behind a firewall and a proxy, but when i give 2 "wget" in > > command gives me a DNS resolution but not with the single wget ! > > > > > > ************************************************************************************************************* > > > > ************************************************************************************************************* > > > > > > > > > > [~]$ nslookup google.com > > > > Non-authoritative answer: > > Name: google.com > > Address: 74.125.24.102 > > Name: google.com > > Address: 74.125.24.101 > > Name: google.com > > Address: 74.125.24.139 > > Name: google.com > > Address: 74.125.24.113 > > Name: google.com > > Address: 74.125.24.138 > > Name: google.com > > Address: 74.125.24.100 > > > > [~]$ wget google.com --no-proxy -d > > DEBUG output created by Wget 1.14 on linux-gnu. > > > > URI encoding = ‘UTF-8’ > > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > > --2018-05-10 06:24:33-- http://google.com/ > > Resolving google.com (google.com)... failed: Name or service not known. > > wget: unable to resolve host address ‘google.com’ > > [ ~]$ wget wget google.com --no-proxy -d > > DEBUG output created by Wget 1.14 on linux-gnu. > > > > URI encoding = ‘UTF-8’ > > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > > --2018-05-10 06:24:40-- http://wget/ > > Resolving wget (wget)... failed: Name or service not known. > > wget: unable to resolve host address ‘wget’ > > URI encoding = ‘UTF-8’ > > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > > Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8) > > --2018-05-10 06:24:40-- http://google.com/ > > Resolving google.com (google.com)... 74.125.24.101, 74.125.24.139, > > 74.125.24.113, ... > > Caching google.com => 74.125.24.101 74.125.24.139 74.125.24.113 > > 74.125.24.138 74.125.24.100 74.125.24.102 2404:6800:4003:c03::71 > > Connecting to google.com (google.com)|74.125.24.101|:80... ^C > > [ ~]$ > > > > -- Thanking You, Darshit Shah PGP Fingerprint: 7845 120B 07CB D8D6 ECE5 FF2B 2A17 43ED A91A 35B6
signature.asc
Description: PGP signature