Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have installed jwhois on many systems, but can't get it to work. The port 43 is open through the firewall and I can do a telnet to the whois server on port 43, but whenver I run jwhois I get the following error:

[Querying whoisserver]
[Unable to connect to remote host]

Any idea on how to fix this issue?

share|improve this question

2 Answers

up vote 1 down vote accepted

This is Debian Bug 542148.

Not fixed in Ubuntu 10.04 LTS unfortunately.

share|improve this answer
Ahh thanks. That has been bugging me for some time :) – grm Aug 17 '11 at 9:04
This is also noted in the Ubuntu Launchpad for jwhois: Bug 339913. The fix is in Natty, Oneiric, and Precise, but not in Lucid or Maverick. – David Mar 29 '12 at 16:59

For 10.04:

  1. https://launchpad.net/ubuntu/+source/jwhois/4.0-2
  2. Download jwhois_4.0.orig.tar.gz to /usr/local/src.
  3. Extract and apply patch:
    cd /usr/local/src
    tar zxf jwhois_4.0.orig.tar.gz
    cd jwhois*
    wget "https://launchpadlibrarian.net/59543349/jwhois_4.0-2.diff.gz"
    gunzip *.gz
    patch < jwhois_4.0-2.diff
    

Then apply the fix for .com lookups:

  1. Visit http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542148
  2. Edit src/utils.c.
  3. Change line 291 to:
    if (error < 0 || !retval)
    

Compile and install as usual:

./configure --prefix=/usr/local && make && make install

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.