LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-23-2006, 07:47 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
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.
 
Old 01-23-2006, 08:10 AM   #2
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
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

Last edited by Dtsazza; 01-23-2006 at 08:44 AM.
 
Old 01-23-2006, 08:25 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
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.
 
Old 01-23-2006, 08:43 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
--Whoops--

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

Last edited by Matir; 01-23-2006 at 08:46 AM.
 
Old 01-23-2006, 08:49 AM   #5
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
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...
 
Old 01-23-2006, 08:51 AM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
Also, have you considered adding --verbose to your command line arguments to get more detail on what is going on?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I create a whois server? abefroman Linux - Software 4 10-25-2005 08:42 PM
whois problem. bruse Linux - Networking 11 08-25-2005 08:33 AM
whois problem bruse Linux - Networking 7 07-04-2005 08:20 AM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
Where is 'whois' RomanG Mandriva 3 03-20-2005 02:29 PM


All times are GMT -5. The time now is 05:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration