Description of problem: Trying to lookup a domain near the allowed maximum of 63 characters and additionally giving options fails with RHEL5, RHEL6 & Fedora 14 Version-Release number of selected component (if applicable): jwhois-3.2.3-8 jwhois-4.0-18 jwhois-4.0-23 Steps to Reproduce: $ whois -h whois.denic.de 123456789012345678901234567890123456789012345678901234567890123.de [Querying whois.denic.de] [whois.denic.de] % Copyright (c) 2010 by DENIC % Version: 2.0 [...] => works as expected whois -h whois.denic.de -- -T dn 123456789012345678901234567890123456789012345678901234567890123.de [IDN encoding of '-T dn 123456789012345678901234567890123456789012345678901234567890123.de' failed with error code 5] => fails substracting 6 characters (for "-T dn "): $ whois -h whois.denic.de -- -T dn 123456789012345678901234567890123456789012345678901234567.de [Querying whois.denic.de] [whois.denic.de] % Error: 55000000007 Request not clearly specified => syntax error, okay - but query was sent to whois-server successfully.
According to /etc/jwhois.conf, "-C UTF-8 -T dn,ace" is going to be passed to the WHOIS server. I feel you should disable that part of your configuration, before firing your whois request...
disabling query-format - line in jwhois.conf (didn't knew such a file existed *oops*) doesn't change anything.
[IDN encoding of '-T dn 123456789012345678901234567890123456789012345678901234567890123.de' failed with error code 5] The fail is caused by libidn function idna_to_ascii_lz, error code 5 means "Output would be too large or too small". I think whois shouldn't pass RIPE options to that function, it's a bug. Can be workarounded with giving RIPE options through jwhois.conf .
Created attachment 484466 [details] proposed patch Sorry for confusion in previous comment, I meant of course general whois server options, not just RIPE extended options... I attached proposed patch which should fix the issue and there'll be update available soon in the testing. Please let me know if it works as expected.
jwhois-4.0-24.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/jwhois-4.0-24.fc14
jwhois-4.0-26.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/jwhois-4.0-26.fc15
jwhois-4.0-24.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
jwhois-4.0-26.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
Guys, I discussed the patch with Jonas Oberg and there's one question - the patch presumes, that queried address is last jwhois argument... What do you think - is it safe? Can we be sure that the last jwhois argument is always the queried address?
I don't recall a case where the address isn't the last jwhois argument. And sorry for that trouble, I didn't think about that issue when I wrote the IDN support for jwhois something like 6 years ago. By the way...your patch needs one tiny fix, because of a mistake: -printf("[IDN encoding of '%s' failed with error code %d]\n", qstring, rc); +printf("[IDN encoding of '%s' failed with error code %d]\n", argv[optind], rc);
(In reply to comment #10) > I don't recall a case where the address isn't the last jwhois argument. > And > sorry for that trouble, I didn't think about that issue when I wrote the IDN > support for jwhois something like 6 years ago. > > > By the way...your patch needs one tiny fix, because of a mistake: > > > > -printf("[IDN encoding of '%s' failed with error code %d]\n", qstring, rc); > > +printf("[IDN encoding of '%s' failed with error code %d]\n", argv[optind], > rc); Thank you Robert for information and patch mistake notification - I'll fix it.
jwhois-4.0-28.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/jwhois-4.0-28.fc15
jwhois-4.0-25.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/jwhois-4.0-25.fc14
Package jwhois-4.0-28.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing jwhois-4.0-28.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/jwhois-4.0-28.fc15 then log in and leave karma (feedback).
jwhois-4.0-25.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
jwhois-4.0-28.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.