Bug 392681

Summary: jwhois doesn't allways work with certain servers when IPv4 is in use
Product: [Fedora] Fedora Reporter: Lubomir Kundrak <lkundrak>
Component: jwhoisAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 8Keywords: EasyFix, Patch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-21 12:08:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix for the jwhois IPv4 connect issue none

Description Lubomir Kundrak 2007-11-20 16:41:48 UTC
Description of problem:

In case the WHOIS server has both A and AAAA/A6 DNS records (such as the default
one, whois.ripe.net) and IPv6 connection is not available, jwhois will fail to
connect due to broken logic of iterating through available addresses.  

Version-Release number of selected component (if applicable):

jwhois-4.0-3.fc8

How reproducible:

Always

Steps to Reproduce:
1. $ whois netbsd.sk
  
Actual results:

[Querying whois.ripe.net]
[Unable to connect to remote host]

Expected results:

[Querying whois.ripe.net]
[whois.ripe.net]
% This is the RIPE Whois query server #2.
% The objects are in RPSL format.
%
% Rights restricted by copyright.
% See http://www.ripe.net/db/copyright.html

% The object shown below is NOT in the RIPE database.
% It has been obtained by querying a remote server:
% (whois.sk-nic.sk) at port 43.
% To see the object stored in the RIPE database
% use the -R flag in your query
%
%REFERRAL START
%
% whois.sk-nic.sk - whois server for TLD .sk
%


Domain-name         netbsd.sk
Admin-id            MICH-0738
Admin-name          Michal Fabry
Admin-legal-form    zivnost
Admin-address       Nobelova 46, Bratislava 83102
Admin-telephone     0904851151, , 0904851151
Admin-email         michal.fabry
Tech-id             MICH-0738
Tech-name           Michal Fabry
Tech-address        Nobelova 46, Bratislava 83102
Tech-telephone      0904851151, , 0904851151
Tech-email          michal.fabry
dns_name            ns1.figisoft.sk
dns_name            ns2.figisoft.sk
Last-update         2007-04-17
Valid-date          2008-04-29
Domain-status       DOM_OK

%%REFERRAL END

Additional info:

The fix is attached.
Is there any good reason the package does not have cvsextras commits enabled?

Comment 1 Lubomir Kundrak 2007-11-20 16:41:48 UTC
Created attachment 265091 [details]
Fix for the jwhois IPv4 connect issue