Bug 12251 - Whois broken for IP address queries
Summary: Whois broken for IP address queries
Status: NEW
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: 1.28.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-01 12:22 UTC by fortuna
Modified: 2019-10-01 12:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fortuna 2019-10-01 12:22:12 UTC
Without this code on lines 79 to 91:

    if (!success && !pfx[0]) {
        /*
         * Looking at /etc/jwhois.conf, some whois servers use
         * "domain = DOMAIN", "DOMAIN ID <DOMAIN>"
         * and "domain=DOMAIN_WITHOUT_LAST_COMPONENT"
         * formats, but those are rare.
         * (There are a few even more contrived ones.)
         * We are trying only "domain DOMAIN", the typical one.
         */
        pfx = "domain ";
        bufpos = 0;
        goto again;
    }

whois.c starts working for IP address queries without affecting domain name queries as the user can specify this prefix on the command line.