summaryrefslogtreecommitdiff
path: root/whois.c
AgeCommit message (Collapse)AuthorFilesLines
2019-06-28Implement -I to use referrals from whois.iana.orgMarco d'Itri1-1/+53
Closes: #774603
2019-06-24Split the help messages in multiple stringsMarco d'Itri1-0/+14
To help translators.
2019-06-23Update the copyright year everywhereMarco d'Itri1-1/+1
2019-03-28Remove duplicate "Using server" line when a config file is usedkovalkov1-4/+1
2018-05-22Fix a use after free in convert_in6arpa()Marco d'Itri1-1/+0
Looks like I forgot a free() call after changing the API. Reported by Coverity Scan.
2018-02-20include sys/time.h for select(2) on BSDsMarco d'Itri1-0/+1
2018-01-13Update the copyright yearsMarco d'Itri1-1/+1
2018-01-13Implement querying ip6.arpa domainsMarco d'Itri1-0/+69
The program will query the whois server of the appropriate RIR when provided with an *.ip6.arpa IPv6 reverse DNS domain.
2018-01-08Fix the formattingMarco d'Itri1-6/+9
2017-12-27Remove the inet_pton(3)-based parserMarco d'Itri1-37/+0
It has never worked and never will.
2017-08-22Do not request domain results for name server queriesMarco d'Itri1-1/+7
If there is more than one dot in the query string then it can only be a name server, so do not restrict the results to domains only.
2017-08-22Disable recursion for queries like "nameserver name.example.com"Marco d'Itri1-0/+4
Or else the program would return an error because no registrar whois server is returned by the registry.
2017-08-15Initialize the target of strcatMarco d'Itri1-0/+1
Was not detected until now, but immediately crashes with a recent libc.
2017-07-27Fix referrals for .com, .net, .jobs, .bz, .cc and .tvMarco d'Itri1-3/+2
ICANN mandated that the referral whois server field had to be renamed, hence breaking all whois clients: https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-en Closes #56 from Github.
2017-03-13Fix misspellings in IPv4 formatting stringPetr Písař1-2/+2
Querying 6to4 address failed on malformed IPv4 address: $ ./whois 2002:5ab2:d182::1 Querying for the IPv4 endpoint 90d.178d.209d.130d of a 6to4 IPv6 address. This patch fixes it.
2017-02-27Implement support for libidn2Marco d'Itri1-4/+16
Contributed by Tim Rühsen. Closes #49 from Github.
2017-02-27Unconditionally use AI_IDNMarco d'Itri1-2/+0
AI_IDN is not provided by libidn: it is a feature of glibc. If not available on other platforms then it will be defined to 0 in utils.h.
2017-02-26Annotate more functions with NORETURNMarco d'Itri1-3/+3
Contributed by Sami Kerola. Closes #48 from Github.
2017-02-26Fix minor compiler warningsMarco d'Itri1-5/+6
Fix a lot of minor compiler warnings with no practical effect. Contributed by Sami Kerola.
2016-10-30Use "domain" instead of "=" for default verisign-grs queriesMarco d'Itri1-3/+5
To ignore the name server names spam.
2016-03-29Query whois.iana.org for IDN TLDs tooMarco d'Itri1-2/+4
2015-12-08Support american fuzzy lopMarco d'Itri1-0/+21
When built with AFL_MODE set to true, whois will use the first line of standard input as command line parameters and the rest as network input.
2015-08-30Fix the --select-types and --sources long optionsMarco d'Itri1-2/+2
This bug was found by the awesome american fuzzy lop!
2015-03-23Support hiding multiple disclaimers blocksMarco d'Itri1-2/+2
Correctly detecting the disclaimers of some registrars required splitting the CRSNIC/Verisign detection strings in two parts. This code makes the program start looking again for new blocks to hide after the end of the first one.
2015-01-25Ignore empty referral stringsMarco d'Itri1-0/+3
Some registrars return an empty field for the referral server.
2015-01-25Fix referrals handling for some verisign-grs.com serversMarco d'Itri1-3/+4
Verisign has changed for no apparent reason the label for the whois server field of the cc, tv and jobs TLDs whois servers.
2014-11-06Fix the code that removes trailing dotsMarco d'Itri1-4/+9
And make it easier to understand as well.
2014-10-16Rename domcmp() in endstrcaseeq() and rewrite itMarco d'Itri1-12/+18
Rewrite it to use the same code of in_domain().
2014-10-16Ask whois.iana.org about TLDsMarco d'Itri1-0/+9
Recognize as a TLD any string without dots present in tld_serv_list and new_gtlds_list.
2014-10-16Convert tld_serv_list to in_domain()Marco d'Itri1-1/+1
2014-10-16Split nic_handles_list off tld_serv_listMarco d'Itri1-0/+6
To be able to use in_domain() for tld_serv_list
2014-10-15Convert queryformat() to in_domain()Marco d'Itri1-2/+2
2014-10-15Convert convert_inaddr() to in_domain()Marco d'Itri1-3/+3
2014-10-15Convert is_new_gtld() to in_domain()Marco d'Itri1-2/+2
2014-10-15Add in_domain() to check if the argument is a subdomainMarco d'Itri1-0/+26
2014-10-15Fix 1 and 2 octects in-addr.arpa queriesMarco d'Itri1-0/+4
Queries like 85.in-addr.arpa and 94.85.in-addr.arpa were directed to the wrong server.
2014-09-13Default to whois.ripe.net when using long flagsMarco d'Itri1-2/+2
2014-09-13Implement support for the long RIPE flagsMarco d'Itri1-2/+68
2014-09-13Move longopts into main()Marco d'Itri1-11/+13
2014-09-13Use the first referral of Afilias GRS resultsMarco d'Itri1-0/+5
Defensive programming: this is never supposed to happen, but if more than one attribute were returned by the registry then the memory allocated to referral_server would be leaked.
2014-09-13make is_new_gtld() return the TLDMarco d'Itri1-13/+6
2014-05-26Support hiding disclaimers until the end of the outputMarco d'Itri1-4/+9
2014-05-02Use whois.nic.$TLD for the "new" gTLDsMarco d'Itri1-0/+32
The "new" gTLDs are contractually required by ICANN to provide port 43 whois service on this standard domain.
2014-02-07Extract the version number from the changelogMarco d'Itri1-0/+1
2013-12-26Free memory in handle_query()Petr Písař1-24/+29
Make the server variable always hold a dynamically allocated string and clean up the related const statements. Signed-off-by: Petr Písař <ppisar@redhat.com>
2013-12-26strtol() returns signed long intPetr Písař1-2/+2
Assiging strol() return value to unsigned int makes subsequent comparison to < 0 pointless. Signed-off-by: Petr Písař <ppisar@redhat.com>
2013-12-26Do not hide legal disclaimer with whois -VPetr Písař1-0/+1
There was missing break in the 'V' option case. Signed-off-by: Petr Písař <ppisar@redhat.com>
2013-04-10Undocument the -F RIPE optionMarco d'Itri1-1/+0
It is deprecated, does not always work correctly and nobody should ever use it anymore.
2013-04-10Handle --help as successPetr Písař1-8/+10
whois --help output should go to standard output, and exit code should be zero.
2013-04-10Remove -S optionPetr Písař1-1/+1
RIPE-like `-S' option is not documented nor supported by RIPE.