453 Commits

Author SHA1 Message Date
Marco d'Itri
72d5f8bd51 Update the .gh TLD server 2017-12-27 03:25:03 +01:00
Marco d'Itri
4f32ffa479 Update the .sb TLD server 2017-12-27 03:24:46 +01:00
Marco d'Itri
1a90b5433a Update the .ai TLD server 2017-12-27 03:24:00 +01:00
Marco d'Itri
ee86b76114 Update some comments in tld_serv_list 2017-12-27 03:23:48 +01:00
Marco d'Itri
b5d4bb43a8 Remove the .bs TLD server 2017-12-27 03:13:38 +01:00
Marco d'Itri
95c2a51d51 Add the .mr TLD server 2017-12-27 03:13:38 +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
Timo Gurr
8a4023b315 use env var ${PKG_CONFIG} instead of hard coding pkg-config
This allows building in cross environments e.g. using host triplet
prefixed binaries (x86_64-pc-linux-gnu-pkg-config).
2017-12-27 03:09:58 +01:00
Petr Písař
50b57a6fb7 Remove unused variables in get_random_bytes()
If getentropy() is available, GCC warns about unsused variables:

mkpasswd.c: In function ‘get_random_bytes’:
mkpasswd.c:369:13: warning: unused variable ‘bytes_read’ [-Wunused-variable]
     ssize_t bytes_read;
             ^~~~~~~~~~
mkpasswd.c:368:9: warning: unused variable ‘fd’ [-Wunused-variable]
     int fd;
         ^~

This patch fixes it.
2017-12-27 03:09:58 +01:00
Marco d'Itri
888fa4654b Debian changelog for 5.2.19 v5.2.19 2017-12-10 17:17:11 +01:00
Marco d'Itri
31250d3ba6 Switch to libidn2
See e20b8bbab3687aa26294bc3c443b4a43292b7636 for details.
2017-12-10 17:16:37 +01:00
Marco d'Itri
6557a52b3e mkpasswd: use getentropy(2) on recent Linux 2017-12-10 17:14:26 +01:00
Marco d'Itri
182fdaaaaa mkpasswd: refactoring 2017-12-10 17:13:03 +01:00
Marco d'Itri
41387e5837 debian/control: actually depend on debhelper >=9
Since the compat level was raised in
f02595fb4354027306d80df66bb847a6919fe122.
2017-11-21 18:26:16 +01:00
Marco d'Itri
8c8c53fde3 Update TLD servers: id
Same IP, different name.
2017-11-21 18:23:01 +01:00
Marco d'Itri
3771286c90 Remove TLD servers: dj 2017-11-21 18:23:01 +01:00
Marco d'Itri
59eefd076a Update TLD servers: museum 2017-11-21 18:23:01 +01:00
Marco d'Itri
f83de0b223 Use Rules-Requires-Root 2017-11-21 18:22:53 +01:00
Marco d'Itri
cb55571677 delete debian/source/options
xz has been the default for a while.
2017-11-05 11:59:39 +01:00
Marco d'Itri
5dd942bd11 Debian changelog for 5.2.18 v5.2.18 2017-08-22 18:48:50 +02:00
Marco d'Itri
1a32a3266a debian/control: update the policy version 2017-08-22 18:48:35 +02:00
Marco d'Itri
e20b8bbab3 Autodetect libidn/libidn2 support with pkg-config
libidn2 >= 2.0.3 must be used, or else it would silently remove
characters not valid in hostnames like "/" and "_".
For details see https://github.com/rfc1036/whois/issues/50 .

For more information about IDNA2003 vs. IDNA2008 and TR46 see:
http://nmav.gnutls.org/2017/04/the-mess-with-internationalized-domain.html
http://unicode.org/faq/idn.html
https://fedoraproject.org/wiki/Changes/IDNA2008
2017-08-22 18:35:12 +02:00
Andreas Stieger
a786e83add fix FSF address in mkpasswd.c 2017-08-22 16:59:53 +02: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
4f374d16b0 whois.1: document the default for Verisign queries 2017-08-16 04:13:05 +02:00
Marco d'Itri
f77fe271a4 whois.1: remove the paragraph about whois.networksolutions.com
Since it has not been the default server for gTLD queries in a very
long time.
2017-08-16 04:11:46 +02:00
Marco d'Itri
7b25ae652a whois.1: remove the commented and deprecated options -F and -V 2017-08-16 03:59:18 +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
6e23999a24 Debian changelog for 5.2.17 v5.2.17 2017-07-27 17:09:05 +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
Marco d'Itri
ba9500eb9d whois.1: fix typo
Closes: #866742
2017-07-27 15:32:03 +02:00
Marco d'Itri
00059e0fce New TLD servers: xn--2scrj9c and more (India)
Also:
xn--3hcrj9c
xn--45br5cyl
xn--h2breg3eve
xn--h2brj9c8c
xn--mgbbh1a
xn--mgbgu82a
xn--rvc1e0am3e
2017-07-27 15:19:23 +02:00
Marco d'Itri
199241749a Update the list of new gTLDs 2017-07-27 14:59:13 +02:00
Marco d'Itri
71f7787643 Debian changelog for 5.2.16 v5.2.16 2017-06-12 12:21:19 +02:00
Marco d'Itri
357d000a70 Update the list of new gTLDs 2017-06-12 12:20:57 +02:00
Marco d'Itri
c2af83c907 Update TLD servers: do
Non-ASCII characters are mangled as "?", so no obvious encoding.
2017-06-12 12:20:25 +02:00
Petr Písař
3566a2c4ca Fix misspellings in IPv4 formatting string
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-03-13 01:23:17 +01:00
Marco d'Itri
d3e6fb0eaf Update TLD servers: kg
Same IP, different name.
2017-03-13 01:20:43 +01:00
Marco d'Itri
ea7ba79cd9 Debian changelog for 5.2.15 v5.2.15 2017-02-27 01:01:31 +01:00
Marco d'Itri
9557f8bbad Update the charset for whois.nic.kz 2017-02-27 01:00:39 +01:00
Marco d'Itri
8ed6d73095 Implement support for libidn2
Contributed by Tim Rühsen.
Closes #49 from Github.
2017-02-27 00:32:43 +01:00
Marco d'Itri
cf61394ded Unconditionally use AI_IDN
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-27 00:27:06 +01:00
Marco d'Itri
fb823a251a Annotate more functions with NORETURN
Contributed by Sami Kerola.
Closes #48 from Github.
2017-02-26 23:33:01 +01:00
Marco d'Itri
5e33209e13 Fix minor compiler warnings
Fix a lot of minor compiler warnings with no practical effect.
Contributed by Sami Kerola.
2017-02-26 23:12:47 +01:00
Marco d'Itri
a4815eb370 BSD portability fixes 2017-02-26 14:13:27 +01:00
Marco d'Itri
4ac83a5f49 mkpasswd: fix compile time error with HAVE_ARC4RANDOM_BUF
Patch from MacPorts.
2017-02-26 04:29:11 +01:00
Marco d'Itri
b1cf371706 Do not use arc4random_buf on OS X v10.6 or erlier
Because it had not been implemented yet.

Patch from MacPorts.
2017-02-26 03:23:51 +01:00
Marco d'Itri
df1c963a3e Update the list of new gTLDs 2017-02-26 03:23:08 +01:00
Marco d'Itri
5393501b0b Update TLD servers: xn--mgbai9azgqp6j
Not yet in use.
2017-02-26 03:22:38 +01:00