whois server problem.
bash-2.05$ whois www.google.com
whois: whois.internic.net: host unknown bash-2.05$ whois -h 192.0.34.161 http://www.google.com whois: connect: Connection refused bash-2.05$ whois -h 192.0.34.161 google.com whois: connect: Connection refused bash-2.05$ ping -sa 192.0.34.161 PING 192.0.34.161: 56 data bytes 64 bytes from 192.0.34.161: icmp_seq=0. time=254. ms 64 bytes from 192.0.34.161: icmp_seq=1. time=256. ms 64 bytes from 192.0.34.161: icmp_seq=2. time=265. ms 64 bytes from 192.0.34.161: icmp_seq=3. time=298. ms ^C ----192.0.34.161 PING Statistics---- 4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 254/268/298 bash-2.05$ Then how can i query the server for information of google. Where the error stands?Thanks. |
Code:
whois www.google.com If I 'host whois.internic.net' I get 198.41.0.6 too, so it seems you're trying to connect to the wrong IP address. That doesn't solve the error on the first line; it's some kind of DNS problem so I'm not going to get into that... :) Hope this helps, Andrzej Edit: corrected port typo |
bash-2.05$ whois -h 198.41.0.6 google.com
whois: connect: Connection refused bash-2.05$ bash-2.05$ ping -sa 198.41.0.6 PING 198.41.0.6: 56 data bytes 64 bytes from 198.41.0.6: icmp_seq=0. time=385. ms 64 bytes from 198.41.0.6: icmp_seq=1. time=325. ms 64 bytes from 198.41.0.6: icmp_seq=2. time=309. ms 64 bytes from 198.41.0.6: icmp_seq=3. time=312. ms ^C ----198.41.0.6 PING Statistics---- 4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 309/332/385 bash-2.05$ Connection refused.which looks no internal problem here in my pc.But remotely. |
--Whoops--
Just confirmed that it is. Looks to me like you might have a firewall blocking whois requests. |
OK, hmm... The only thing I can think of is that somehow your 'whois' is trying to connect to another port instead of the default of 43. If I issue
Code:
whois -h 198.41.0.6 -p 43 google.com If not - then I can show that it's not a remote problem at internet.net, and if you can show it's not an internal problem then it must be something in the middle, like a firewall. But let's hope this works first... |
Also, have you considered adding --verbose to your command line arguments to get more detail on what is going on?
|
All times are GMT -5. The time now is 09:21 PM. |