LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   whois server problem. (https://www.linuxquestions.org/questions/linux-newbie-8/whois-server-problem-406903/)

bruse 01-23-2006 07:47 AM

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.

Dtsazza 01-23-2006 08:10 AM

Code:

whois www.google.com
works fine for me. It looks like you might have a problem resolving internic.net (have you tried 'ping internic.net')? Trying 'whois -h $(host internic.net) google.com' might work - I get 198.41.0.6 as 'host internic.net', and looking at your address it seems you've picked up the hostname for www.internic.net, which apparently doesn't have port 43 listening for whois queries.

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

bruse 01-23-2006 08:25 AM

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.

Matir 01-23-2006 08:43 AM

--Whoops--

Just confirmed that it is. Looks to me like you might have a firewall blocking whois requests.

Dtsazza 01-23-2006 08:49 AM

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
I get my whois lookup, so try explicitly specifying port 43 to see if that helps.

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...

Matir 01-23-2006 08:51 AM

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 04:42 PM.