Marco d'Itri
f5d4f95d76
Remove some leftovers of 6bone referral handling
...
The rest was removed in commit 3364fe47f2bc408c1faa2e3209448320cb928423.
2025-10-13 03:18:08 +02:00
Marco d'Itri
3364fe47f2
Remove referral handling for whois.6bone.net
...
6bone has been shut down 20 years ago and this specific referrals format
does not appear to be used anywhere else.
2025-08-02 00:52:12 +02:00
Marco d'Itri
f31128ed0d
Make sure to avoid trivial referral loops
...
In theory loops should not happen for domains, because recursion is
enabled only for the server names listed in server_referral_handlers[],
but better be safe than sorry.
2025-05-06 00:37:23 +02:00
Marco d'Itri
e30931d958
Use the last ReferralServer field found
...
Because we want to follow the referral for the most specific record
returned.
Closes GitHub #185 .
2025-05-05 23:41:19 +02:00
Marco d'Itri
b36474fc77
Refactoring
2025-05-05 02:38:03 +02:00
Marco d'Itri
e19e5d9f4f
Refactoring
2025-05-05 02:38:03 +02:00
Marco d'Itri
6ec5b9dd48
Implement following the APNIC pseudo-referrals
...
Closes GitHub #95
2025-05-05 02:38:03 +02:00
Marco d'Itri
8f5ef792d8
Refactoring
2025-05-05 02:38:03 +02:00
Marco d'Itri
b903b3679b
Refactoring
2025-05-05 02:38:02 +02:00
Marco d'Itri
5211801fe0
Refactoring
2025-05-05 02:38:02 +02:00
Marco d'Itri
c6f7ae9162
Fix some irrelevant memory leaks
2025-05-05 02:38:02 +02:00
Marco d'Itri
4a5357548d
Refactoring
2025-05-05 02:38:02 +02:00
Marco d'Itri
1a148ff7e4
Refactoring
2025-05-05 02:38:02 +02:00
Marco d'Itri
52c9e13eef
Refactoring
2025-05-05 02:38:02 +02:00
Marco d'Itri
b989176918
Accept bare hostnames for ARIN's ReferralServer field
...
Some networks have just a bare hostname with no protocol scheme
component.
2025-05-05 02:38:02 +02:00
Marco d'Itri
420fff7ee6
Do not mangle RADB queries with IDN processing
2025-05-04 00:41:16 +02:00
Marco d'Itri
2c20d77516
Always check the values returned by fdopen(3)
2024-06-18 01:00:57 +02:00
Marco d'Itri
918755c7c2
Prevent a segmentation fault with --no-recursion
2024-04-01 20:13:12 +02:00
ashamedbit
254d87165e
Fix memory leak in whois.c
2024-02-24 17:04:05 +01:00
Marco d'Itri
8079ab6f52
Remove the copyright years from the sources files
2023-12-10 12:08:46 +01:00
Mike Frysinger
63f2a9abde
Switch the documentation URLs to https
2023-11-16 22:47:16 +01:00
Marco d'Itri
bd1c31c597
Use __attribute__((unused))
2023-11-08 11:38:27 +01:00
Marco d'Itri
18145364ab
Refactoring
...
Merge the as and as32 data structures, since it is highly unlikely
that using short ints will save any memory.
2023-11-08 11:38:27 +01:00
Marco d'Itri
23302dbd1d
Do not add again the /e argument to Japanese queries
...
The /e argument should not be added if it has already been provided by
the user.
Closes : #1050171
2023-10-08 13:07:21 +02:00
Marco d'Itri
adb4af2ddc
Refactor the code which detects the ASN names
2023-10-08 13:06:32 +02:00
Marco d'Itri
bedd34e3fe
Refactoring
2023-10-08 13:05:49 +02:00
Marco d'Itri
96173f3630
Remove support for the as32 dot notation
...
It has been deprecated long ago and is not used anymore.
2023-10-08 13:05:49 +02:00
Marco d'Itri
2b45a9e386
Update the .dk TLD server
...
Same server, different domain.
2023-10-08 13:05:49 +02:00
Petr Menšík
6761f80395
Add SPDX license identifiers to code files
...
Change manual pages word to recognize it by licensecheck tool.
2023-07-22 17:38:06 +02:00
Marco d'Itri
ab184c22ca
Properly truncate some strings
2022-12-28 20:43:45 +01:00
Yoichiro Takahashi
fe3e14e372
Fix detection of Japanese locales using $LC_MESSAGES
...
This has been broken since it was implemented in version 5.0.0.
2022-02-23 00:39:28 +01:00
Marco d'Itri
db2f94d5ff
whois: implement --no-recursion
2022-01-03 18:08:54 +01:00
a1346054
03425185b0
Fix some spelling mistakes
2022-01-03 15:45:26 +01:00
Marco d'Itri
6520b68285
Update the copyright year
2021-02-16 01:53:41 +01:00
Marco d'Itri
751c9cc397
Support CIDR queries to whois.arin.net
...
This is a behaviour change: in this case the client used to use the
parameters for non-CIDR queries, so the server would return nothing.
Now an exact match for the provided ip/length query is requested.
If the query is not an exact match then this is also different from the
default behaviour of the server, which is to return a non-verbose
summary of all less specific networks.
2020-10-03 14:29:16 +02:00
Marco d'Itri
3a5bcdcc7e
Generalize the support for Afilias-style referrals
2019-12-31 02:57:51 +01:00
Marco d'Itri
b49ba5ecc0
Implement -I to use referrals from whois.iana.org
...
Closes : #774603
2019-06-28 01:38:17 +02:00
Marco d'Itri
a0c0bf7144
Split the help messages in multiple strings
...
To help translators.
2019-06-24 05:07:43 +02:00
Marco d'Itri
830c3e3a7c
Update the copyright year everywhere
2019-06-23 15:40:12 +02:00
kovalkov
a84db90864
Remove duplicate "Using server" line when a config file is used
2019-03-28 00:17:39 +01:00
Marco d'Itri
42f6fab4cf
Fix a use after free in convert_in6arpa()
...
Looks like I forgot a free() call after changing the API.
Reported by Coverity Scan.
2018-05-22 04:33:34 +02:00
Marco d'Itri
7735818026
include sys/time.h for select(2) on BSDs
2018-02-20 01:36:04 +01:00
Marco d'Itri
a9f59fdd52
Update the copyright years
2018-01-13 01:15:48 +01:00
Marco d'Itri
8a6ce04adb
Implement querying ip6.arpa domains
...
The program will query the whois server of the appropriate RIR when
provided with an *.ip6.arpa IPv6 reverse DNS domain.
2018-01-13 01:14:27 +01:00
Marco d'Itri
cb0c7062ab
Fix the formatting
2018-01-08 03:00:06 +01:00
Marco d'Itri
4be183d651
Remove the inet_pton(3)-based parser
...
It has never worked and never will.
2017-12-27 03:09:58 +01:00
Marco d'Itri
9777e2aa77
Do not request domain results for name server queries
...
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-22 16:52:56 +02:00
Marco d'Itri
46faeee41e
Disable recursion for queries like "nameserver name.example.com"
...
Or else the program would return an error because no registrar
whois server is returned by the registry.
2017-08-22 16:50:32 +02:00
Marco d'Itri
85c7b302a3
Initialize the target of strcat
...
Was not detected until now, but immediately crashes with a recent libc.
2017-08-15 21:18:21 +02:00
Marco d'Itri
89d2aef158
Fix referrals for .com, .net, .jobs, .bz, .cc and .tv
...
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-07-27 16:55:20 +02:00