Compare commits

..

No commits in common. "next" and "v5.5.12" have entirely different histories.

48 changed files with 898 additions and 1886 deletions

View File

@ -1,18 +0,0 @@
name: Publish a Github release
on:
push:
branches:
- master
tags:
- "v*.*"
jobs:
release:
runs-on: debian-latest
permissions:
contents: write
steps:
- name: Release
uses: softprops/action-gh-release@v1

View File

@ -2,7 +2,7 @@
Version 2, June 1991 Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
<https://fsf.org/> 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed. of this license document, but changing it is not allowed.
@ -304,7 +304,8 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License along You should have received a copy of the GNU General Public License along
with this program; if not, see <https://www.gnu.org/licenses/>. with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
@ -328,8 +329,8 @@ necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker. `Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Moe Ghoul>, 1 April 1989 <signature of Ty Coon>, 1 April 1989
Moe Ghoul, President of Vice Ty Coon, President of Vice
This General Public License does not permit incorporating your program into This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may proprietary programs. If your program is a subroutine library, you may

View File

@ -1,4 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-or-later
prefix = /usr prefix = /usr
ifdef DESTDIR ifdef DESTDIR
@ -72,8 +71,6 @@ endif
CPPFLAGS += $(DEFS) $(INCLUDES) CPPFLAGS += $(DEFS) $(INCLUDES)
BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null || echo /etc/bash_completion.d)
############################################################################## ##############################################################################
all: Makefile.depend whois mkpasswd pos all: Makefile.depend whois mkpasswd pos
@ -94,6 +91,9 @@ version.h: debian/changelog make_version_h.pl
as_del.h: as_del_list make_as_del.pl as_del.h: as_del_list make_as_del.pl
$(PERL) make_as_del.pl < $< > $@ $(PERL) make_as_del.pl < $< > $@
as32_del.h: as32_del_list make_as32_del.pl
$(PERL) make_as32_del.pl < $< > $@
ip_del.h: ip_del_list make_ip_del.pl ip_del.h: ip_del_list make_ip_del.pl
$(PERL) make_ip_del.pl < $< > $@ $(PERL) make_ip_del.pl < $< > $@
@ -121,7 +121,7 @@ afl-run:
nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois
############################################################################## ##############################################################################
install: install-whois install-mkpasswd install-pos install-bashcomp install: install-whois install-mkpasswd install-pos
install-whois: whois install-whois: whois
$(INSTALL) -d $(BASEDIR)$(prefix)/bin/ $(INSTALL) -d $(BASEDIR)$(prefix)/bin/
@ -140,18 +140,12 @@ install-mkpasswd: mkpasswd
install-pos: install-pos:
cd po && $(MAKE) install cd po && $(MAKE) install
install-bashcomp:
$(INSTALL) -d $(BASEDIR)$(BASHCOMPDIR)
$(INSTALL) -m 0644 mkpasswd.bash $(BASEDIR)$(BASHCOMPDIR)/mkpasswd
$(INSTALL) -m 0644 whois.bash $(BASEDIR)$(BASHCOMPDIR)/whois
distclean: clean distclean: clean
rm -f version.h po/whois.pot rm -f version.h po/whois.pot
clean: clean:
rm -f Makefile.depend as_del.h ip_del.h ip6_del.h \ rm -f Makefile.depend as_del.h as32_del.h ip_del.h ip6_del.h \
nic_handles.h new_gtlds.h tld_serv.h servers_charset.h \ new_gtlds.h tld_serv.h servers_charset.h *.o whois mkpasswd
*.o whois mkpasswd
rm -f po/*.mo rm -f po/*.mo
pos: pos:

11
README
View File

@ -13,13 +13,14 @@ program, which can be used to encrypt a password with crypt(3).
The canonical distribution point for releases of the program is The canonical distribution point for releases of the program is
https://ftp.debian.org/debian/pool/main/w/whois/ . http://ftp.debian.org/debian/pool/main/w/whois/ .
Useful information sources: Useful information sources:
- https://www.ripe.net/ripe/docs/current-ripe-documents/ripe-database-documents - http://www.ripe.net/ripe/docs/current-ripe-documents/ripe-database-documents
- https://www.iana.org/domains/root/db/ - http://www.iana.org/domains/root/db/
- https://www.icann.org/en/resources/idn/fast-track/string-evaluation-completion - http://www.icann.org/en/resources/idn/fast-track/string-evaluation-completion
- https://www.aftld.org/ - http://www.aftld.org/
Marco d'Itri <md@linux.it> Marco d'Itri <md@linux.it>

19
as32_del_list Normal file
View File

@ -0,0 +1,19 @@
# http://www.iana.org/assignments/as-numbers
# actually I listed here also the unallocated space reserved for each RIR
131077 131086 whois.nic.ad.jp
131092 131101 whois.nic.or.kr
131152 131161 whois.nic.ad.jp
131791 131890 whois.nic.or.kr
131893 131992 whois.nic.ad.jp
2.0 2.65535 apnic
3.0 3.65535 ripe
4.0 4.65535 lacnic
5.0 5.65535 afrinic
6.0 6.65535 arin
# private ASN block
4200000000 4294967294 ripe

View File

@ -1,4 +1,4 @@
# https://www.iana.org/assignments/as-numbers # http://www.iana.org/assignments/as-numbers
248 251 ripe 248 251 ripe
306 371 whois.nic.mil 306 371 whois.nic.mil
@ -95,19 +95,3 @@
# documentation and private ASN block # documentation and private ASN block
64496 65534 ripe 64496 65534 ripe
131077 131086 whois.nic.ad.jp
131092 131101 whois.nic.or.kr
131152 131161 whois.nic.ad.jp
131791 131890 whois.nic.or.kr
131893 131992 whois.nic.ad.jp
# actually I listed here also the unallocated space reserved for each RIR
2.0 2.65535 apnic
3.0 3.65535 ripe
4.0 4.65535 lacnic
5.0 5.65535 afrinic
6.0 6.65535 arin
# private ASN block
4200000000 4294967294 ripe

View File

@ -1,5 +1,4 @@
/* Configurable features */ /* Configurable features */
/* SPDX-License-Identifier: GPL-2.0-or-later */
/* Always hide legal disclaimers */ /* Always hide legal disclaimers */
#undef ALWAYS_HIDE_DISCL #undef ALWAYS_HIDE_DISCL
@ -14,11 +13,11 @@
/* autoconf in cpp macros */ /* autoconf in cpp macros */
#if defined __NetBSD__ || defined __OpenBSD__ #if defined __NetBSD__ || __OpenBSD__
# include <sys/param.h> # include <sys/param.h>
#endif #endif
#if defined __GLIBC__ && !defined __UCLIBC__ #ifdef __GLIBC__
# define ENABLE_NLS # define ENABLE_NLS
#endif #endif
@ -26,17 +25,12 @@
/* which versions? */ /* which versions? */
# define HAVE_GETOPT_LONG # define HAVE_GETOPT_LONG
# define HAVE_GETADDRINFO # define HAVE_GETADDRINFO
# define HAVE_READPASSPHRASE
# define ENABLE_NLS # define ENABLE_NLS
# ifndef LOCALEDIR # ifndef LOCALEDIR
# define LOCALEDIR "/usr/local/share/locale" # define LOCALEDIR "/usr/local/share/locale"
# endif # endif
#endif #endif
#if defined OpenBSD
# define HAVE_READPASSPHRASE
#endif
/* needs unistd.h */ /* needs unistd.h */
#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L
# define HAVE_GETADDRINFO # define HAVE_GETADDRINFO
@ -46,16 +40,9 @@
#if defined __APPLE__ && defined __MACH__ #if defined __APPLE__ && defined __MACH__
# define HAVE_GETOPT_LONG # define HAVE_GETOPT_LONG
# define HAVE_GETADDRINFO # define HAVE_GETADDRINFO
# define HAVE_READPASSPHRASE
# define HAVE_BSDICRYPT # define HAVE_BSDICRYPT
#endif #endif
#if defined __midipix__
# define HAVE_GETOPT_LONG
# define HAVE_GETADDRINFO
# define HAVE_SHA_CRYPT
#endif
#if defined __GLIBC__ #if defined __GLIBC__
# define HAVE_GETOPT_LONG # define HAVE_GETOPT_LONG
# if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
@ -78,7 +65,6 @@
/* Unknown versions of Solaris */ /* Unknown versions of Solaris */
#if defined __SVR4 && defined __sun #if defined __SVR4 && defined __sun
# define HAVE_GETOPT_LONG
# define HAVE_SHA_CRYPT # define HAVE_SHA_CRYPT
# define HAVE_CRYPT_H # define HAVE_CRYPT_H
# define HAVE_SOLARIS_CRYPT_GENSALT # define HAVE_SOLARIS_CRYPT_GENSALT
@ -117,7 +103,7 @@
#endif #endif
/* or else getentropy(2) on Linux */ /* or else getentropy(2) on Linux */
#if defined __GLIBC__ && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 || defined __midipix__ #if defined __GLIBC__ && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25
# define HAVE_GETENTROPY # define HAVE_GETENTROPY
#endif #endif

39
data.h
View File

@ -1,5 +1,3 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
/* /*
* RIPE-like servers. * RIPE-like servers.
* All of them do not understand -V2.0Md with the exception of RA and RIPN. * All of them do not understand -V2.0Md with the exception of RA and RIPN.
@ -11,29 +9,17 @@ const char *ripe_servers[] = {
"whois.apnic.net", "whois.apnic.net",
"whois.afrinic.net", "whois.afrinic.net",
"rr.arin.net", /* does not accept the old syntax */ "rr.arin.net", /* does not accept the old syntax */
"whois.nic.fr",
"rr.level3.net", /* 3.0.0a13 */ "rr.level3.net", /* 3.0.0a13 */
"rr.ntt.net", "rr.ntt.net",
"whois.tcinet.ru", "whois.tcinet.ru",
"whois.ripn.net", "whois.ripn.net",
"whois.register.si", "whois.arnes.si",
"whois.nic.ir", "whois.nic.ir",
"whois.ra.net",
NULL NULL
}; };
struct server_referral_handler {
const char *name;
void (*handler)(char **referral_server, const char *buf);
};
const struct server_referral_handler server_referral_handlers[] = {
{ "whois.apnic.net", find_referral_server_apnic },
{ "whois.arin.net", find_referral_server_arin },
{ "whois.iana.org", find_referral_server_iana },
{ "\x04", find_referral_server_verisign },
{ "\x08", find_referral_server_recursive },
{ NULL, NULL }
};
const char *hide_strings[] = { const char *hide_strings[] = {
"The data in Networksolutions.com's WHOIS database", NULL, "The data in Networksolutions.com's WHOIS database", NULL,
/* Some registrars like .wang copied the first paragraph of this /* Some registrars like .wang copied the first paragraph of this
@ -48,7 +34,7 @@ const char *hide_strings[] = {
"Please register your domains at; http://www.", NULL, /* key-systems.net */ "Please register your domains at; http://www.", NULL, /* key-systems.net */
"%% NOTICE: Access to this information is provided", NULL, /* bookmyname.com */ "%% NOTICE: Access to this information is provided", NULL, /* bookmyname.com */
"NOTICE: Access to the domain name's information", NULL, /* CORE */ "NOTICE: Access to the domain name's information", NULL, /* CORE */
"The data in MarkMonitors WHOIS", NULL, /* MarkMonitor */ "The Data in MarkMonitor.com's", NULL, /* MarkMonitor */
"Corporation Service Company(c) (CSC) The Trusted Partner", "Register your domain name at", /* CSC */ "Corporation Service Company(c) (CSC) The Trusted Partner", "Register your domain name at", /* CSC */
"The data in Networksolutions.com's", NULL, /* Networksolutions */ "The data in Networksolutions.com's", NULL, /* Networksolutions */
"# Welcome to the OVH WHOIS Server", "", /* ovh */ "# Welcome to the OVH WHOIS Server", "", /* ovh */
@ -87,10 +73,8 @@ const char *hide_strings[] = {
"Access to .IN WHOIS information", NULL, /* in */ "Access to .IN WHOIS information", NULL, /* in */
"access to .in whois information", NULL, /* in registar */ "access to .in whois information", NULL, /* in registar */
"% Use of CIRA's WHOIS service is governed by the Terms of Use in its Legal", NULL, /* sx */ "% Use of CIRA's WHOIS service is governed by the Terms of Use in its Legal", NULL, /* sx */
"Terms of Use: Access to WHOIS information", NULL, /* vc */
"The Service is provided so that you may look", "We may discontinue",/*vu*/ "The Service is provided so that you may look", "We may discontinue",/*vu*/
"NeuStar, Inc., the Registry Administrator for .US", NULL, "NeuStar, Inc., the Registry Administrator for .US", NULL,
"; This data is provided ", NULL, /* whois.1api.net */
NULL, NULL NULL, NULL
}; };
@ -135,8 +119,8 @@ const struct ip6_del ip6_assign[] = {
}; };
struct as_del { struct as_del {
const unsigned long first; const unsigned short first;
const unsigned long last; const unsigned short last;
const char *serv; const char *serv;
}; };
@ -145,6 +129,17 @@ const struct as_del as_assign[] = {
{ 0, 0, NULL } { 0, 0, NULL }
}; };
struct as32_del {
const unsigned long first;
const unsigned long last;
const char *serv;
};
const struct as32_del as32_assign[] = {
#include "as32_del.h"
{ 0, 0, NULL }
};
const char *new_gtlds[] = { const char *new_gtlds[] = {
#include "new_gtlds.h" #include "new_gtlds.h"
NULL NULL

193
debian/changelog vendored
View File

@ -1,196 +1,3 @@
whois (5.6.6) unstable; urgency=medium
* Added the .mc TLD server.
* Updated the .ps TLD server.
* Removed the .info, .mobi, .travel and .فلسطين (.xn--ygbi2ammx,
Palestinian Territory) TLD servers.
* Removed 3 new gTLDs which are no longer active.
* mkpasswd: added support the Chinese SM3-based hashing algorithms.
-- Marco d'Itri <md@linux.it> Mon, 16 Feb 2026 02:46:51 +0100
whois (5.6.5) unstable; urgency=medium
* Updated the .co TLD server.
* Added some large KRNIC networks.
* Updated the second level .uk TLD servers.
* Removed the .pro TLD server.
* Removed 1 new gTLD which is no longer active.
-- Marco d'Itri <md@linux.it> Mon, 13 Oct 2025 03:37:20 +0200
whois (5.6.4) unstable; urgency=medium
* Updated the .cm and .to TLD servers.
-- Marco d'Itri <md@linux.it> Sat, 02 Aug 2025 01:13:07 +0200
whois (5.6.3) unstable; urgency=medium
* Added the .sr and .мон (.xn--l1acc, Mongolia) TLD servers.
* Use readpassphrase(3) on OpenBSD and FreeBSD.
-- Marco d'Itri <md@linux.it> Thu, 17 Jul 2025 05:15:53 +0200
whois (5.6.2) unstable; urgency=medium
* Updated the .post and .in (and related IDN TLDs) TLD servers.
* Removed 1 new gTLDs which is no longer active.
* Build-Depend on libcrypt-dev. (Closes: #1106977)
-- Marco d'Itri <md@linux.it> Fri, 06 Jun 2025 18:22:04 +0200
whois (5.6.1) unstable; urgency=medium
* Added the .pg TLD server.
* Updated the .gov, .mu, .中国 (.xn--fiqs8s) and .中國 (.xn--fiqz9s)
TLD servers.
* Removed the .jobs TLD server.
* Added the encodings for whois.afrinic.net and whois.apnic.net.
* Enabled the UTF-8 encoding for whois.ripe.net.
* Use the last ReferralServer returned by the ARIN server instead of
the first, because we want to follow the referral for the most
specific record returned.
* Make sure to avoid trivial referral loops.
-- Marco d'Itri <md@linux.it> Sat, 17 May 2025 01:30:06 +0200
whois (5.6.0) unstable; urgency=medium
* Fixed the mangling of RADB queries with commands.
* Implemented the parsing of more variants of ARIN's ReferralServer
field.
* Implemented following the APNIC pseudo-referrals.
* Added the .ad and .za TLD servers.
* Updated the .ao, .bz, .gi, .gq, .gr, .gw, .lc, .md, .pn, .pr, .uy, .vc,
.info, .mobi, .ελ (.xn--qxam, Greece) and .გე (.xn--node, Georgia) TLD
servers.
* Added 2410::/12.
* Removed 7 new gTLDs which are no longer active.
* Cleaned up the markup of the man pages, courtesy of Bjarni Ingi
Gislason. (Closes: #1036826, #1094208)
-- Marco d'Itri <md@linux.it> Mon, 05 May 2025 02:57:37 +0200
whois (5.5.23) unstable; urgency=medium
* Updated the .sc, .新加坡 (.xn--yfro4i67o, Singapore) and .சிங்கப்பூர்
(.xn--clchc0ea0b2g2a9gcd, Singapore) TLD servers.
-- Marco d'Itri <md@linux.it> Sat, 04 May 2024 03:13:22 +0200
whois (5.5.22) unstable; urgency=medium
* Fixed a segmentation fault with --no-recursion.
* Updated the .bm and .vi TLD servers.
* Removed 4 new gTLDs which are no longer active.
-- Marco d'Itri <md@linux.it> Mon, 01 Apr 2024 20:14:41 +0200
whois (5.5.21) unstable; urgency=medium
* Updated the .cv and .sd TLD servers.
* Remove 4 new gTLDs which are no longer active.
-- Marco d'Itri <md@linux.it> Sat, 24 Feb 2024 17:22:22 +0100
whois (5.5.20) unstable; urgency=medium
* Added the .gn TLD server.
* Removed 6 new gTLDs which are no longer active.
* Enabled getopt_long(3) support on Solaris.
-- Marco d'Itri <md@linux.it> Fri, 10 Nov 2023 15:26:02 +0100
whois (5.5.19) unstable; urgency=medium
* Fixed english support for Japanese queries to not add again the /e
argument if it had already been provided by the user. (Closes: #1050171)
* Added the .ye and .বাংলা (.xn--54b7fta0cc, Bangladesh) TLD servers.
* Updated the .ba, .bb, .dk, .es, .gt, .jo, .ml, .mo, .pa, .pn, .sv,
.uy, .ﺍﻻﺭﺪﻧ (.xn--mgbayh7gpa, Jordan) and .澳門 (.xn--mix891f, Macao)
TLD servers.
* Upgraded the TLD URLs to HTTPS whenever possible.
* Updated the charset for whois.jprs.jp.
* Removed 3 new gTLDs which are no longer active.
* Removed support for the obsolete as32 dot notation.
-- Marco d'Itri <md@linux.it> Sun, 08 Oct 2023 22:58:33 +0200
whois (5.5.18) unstable; urgency=medium
[ Marco d'Itri ]
* Updated the .ga TLD server. (Closes: #1037288)
* Added new recovered IPv4 allocations.
* Removed the delegation of 43.0.0.0/8 to JPNIC.
* Removed 12 new gTLDs which are no longer active.
* Improved the man page source, courtesy of Bjarni Ingi Gislason.
(Closes: #1040613)
[ Robert Scheck ]
* Added the .edu.za SLD server.
* Updated the .alt.za SLD server.
* Added the -ru and -su NIC handles servers.
-- Marco d'Itri <md@linux.it> Sat, 22 Jul 2023 17:56:56 +0200
whois (5.5.17) unstable; urgency=medium
[ Robert Scheck ]
* Added the .cd TLD server.
* Updated the -kg NIC handles server name.
[ Marco d'Itri ]
* Removed 2 new gTLDs which are no longer active.
-- Marco d'Itri <md@linux.it> Wed, 03 May 2023 14:24:37 +0200
whois (5.5.16) unstable; urgency=medium
* Add bash completion support, courtesy of Ville Skyttä.
* Updated the .tr TLD server.
* Removed support for -metu NIC handles.
-- Marco d'Itri <md@linux.it> Tue, 28 Feb 2023 00:58:22 +0100
whois (5.5.15) unstable; urgency=medium
* Updated the .bd, .nz and .tv TLD servers.
* Added the .llyw.cymru, .gov.scot and .gov.wales SLD servers.
* Updated the .ac.uk and .gov.uk SLD servers.
* Recursion has been enabled for whois.nic.tv.
* Updated the list of new gTLDs with four generic TLDs assigned in
October 2013 which were missing due to a bug.
* Removed 4 new gTLDs which are no longer active.
* Added the Georgian translation, contributed by Temuri Doghonadze.
* Updated the Finnish translation, contributed by Lauri Nurmi.
-- Marco d'Itri <md@linux.it> Wed, 28 Dec 2022 20:44:11 +0100
whois (5.5.14) unstable; urgency=medium
* Added the .bf and .sd TLD servers.
* Removed the .gu TLD server.
* Updated the .dm, .fj, .mt and .pk TLD servers.
* Updated the charset for whois.nic.tr.
* Updated the list of new gTLDs.
* Removed whois.nic.fr from the list of RIPE-like servers, because it
is not one anymore. (Closes: #1021110)
* Renamed whois.arnes.si to whois.register.si in the list of RIPE-like
servers.
* Added the hiding string for whois.auda.org.au.
* Fixed uclibc builds, because uclibc does not have NLS support.
-- Marco d'Itri <md@linux.it> Sun, 16 Oct 2022 22:16:34 +0200
whois (5.5.13) unstable; urgency=medium
* Added the .sd TLD server.
* Updated the list of new gTLDs.
* Added the Turkish translation, contributed by Oğuz Ersen.
-- Marco d'Itri <md@linux.it> Fri, 08 Apr 2022 01:08:55 +0200
whois (5.5.12) unstable; urgency=medium whois (5.5.12) unstable; urgency=medium
* Updated the .pro TLD server, which was totally broken. * Updated the .pro TLD server, which was totally broken.

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

11
debian/control vendored
View File

@ -2,14 +2,11 @@ Source: whois
Section: net Section: net
Priority: standard Priority: standard
Maintainer: Marco d'Itri <md@linux.it> Maintainer: Marco d'Itri <md@linux.it>
Standards-Version: 4.7.2.0 Standards-Version: 4.6.0.1
Rules-Requires-Root: no Rules-Requires-Root: no
Build-Depends: debhelper-compat (= 13), gettext, pkgconf, Build-Depends: debhelper (>= 10), gettext, pkg-config, libidn2-dev (>= 2.0.3)
bash-completion, Vcs-Git: https://github.com/rfc1036/whois.git
libcrypt-dev, Vcs-Browser: https://github.com/rfc1036/whois
libidn2-dev,
Vcs-Git: https://salsa.debian.org/md/whois.git
Vcs-Browser: https://salsa.debian.org/md/whois
Package: whois Package: whois
Architecture: any Architecture: any

2
debian/rules vendored
View File

@ -1,6 +1,6 @@
#!/usr/bin/make -f #!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all future=+lfs export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%: %:
dh $@ dh $@

6
debian/salsa-ci.yml vendored
View File

@ -1,6 +0,0 @@
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
variables:
SALSA_CI_IGNORED_BRANCHES: '^next$'

View File

@ -1,4 +1,4 @@
# https://www.iana.org/assignments/ipv6-unicast-address-assignments # http://www.iana.org/assignments/ipv6-unicast-address-assignments
# The parser is very simple-minded and wants the two first components of # The parser is very simple-minded and wants the two first components of
# addresses. It does not deal with networks == 0 or > 24 bit. # addresses. It does not deal with networks == 0 or > 24 bit.
@ -35,12 +35,13 @@
2003:0000::/18 ripe 2003:0000::/18 ripe
2400:0000::/20 whois.nic.or.kr 2400:0000::/20 whois.nic.or.kr
2400:0000::/11 apnic 2400:0000::/12 apnic
2600:0000::/12 arin 2600:0000::/12 arin
2610:0000::/23 arin 2610:0000::/23 arin
2620:0000::/23 arin 2620:0000::/23 arin
2630:0000::/12 arin 2630:0000::/12 arin
2800:0000::/12 lacnic 2800:0000::/12 lacnic
2A00:0000::/11 ripe 2A00:0000::/12 ripe
2A10:0000::/12 ripe
2C00:0000::/12 afrinic 2C00:0000::/12 afrinic

View File

@ -4,26 +4,24 @@
# unless they are very big and contains multiple assignments to different # unless they are very big and contains multiple assignments to different
# customers documented in the whois database. # customers documented in the whois database.
# #
# https://www.iana.org/assignments/ipv4-address-space # http://www.iana.org/assignments/ipv4-address-space
# #
0.0.0.0/8 UNKNOWN 0.0.0.0/8 UNKNOWN
1.0.0.0/8 apnic 1.0.0.0/8 apnic
2.0.0.0/8 ripe 2.0.0.0/8 ripe
5.0.0.0/8 ripe 5.0.0.0/8 ripe
14.64.0.0/11 whois.nic.or.kr
14.0.0.0/8 apnic 14.0.0.0/8 apnic
24.132.0.0/14 ripe 24.132.0.0/14 ripe
27.176.0.0/13 whois.nic.or.kr
27.0.0.0/8 apnic 27.0.0.0/8 apnic
31.0.0.0/8 ripe 31.0.0.0/8 ripe
36.0.0.0/8 apnic 36.0.0.0/8 apnic
37.0.0.0/8 ripe 37.0.0.0/8 ripe
39.0.0.0/8 apnic 39.0.0.0/8 apnic
41.0.0.0/8 afrinic 41.0.0.0/8 afrinic
42.32.0.0/12 whois.nic.or.kr 42.0.0.0/8 apnic
42.0.0.0/7 apnic 43.224.0.0/11 apnic
43.0.0.0/8 whois.nic.ad.jp
46.0.0.0/8 ripe 46.0.0.0/8 ripe
49.8.0.0/14 whois.nic.or.kr
49.0.0.0/8 apnic 49.0.0.0/8 apnic
51.0.0.0/8 ripe 51.0.0.0/8 ripe
# whois -r -K -h whois.apnic.net -i admin-c IM76-AP # whois -r -K -h whois.apnic.net -i admin-c IM76-AP

View File

@ -1,7 +1,25 @@
/* 43.224.0.0 - 43.231.255.255 */
{ 736100352UL, 4294443008UL, "whois.apnic.net" },
/* 43.236.0.0 - 43.243.255.255 */
{ 736886784UL, 4294705152UL, "whois.apnic.net" },
{ 737148928UL, 4294705152UL, "whois.apnic.net" },
/* 43.245.0.0 - 43.252.255.255 */
{ 737476608UL, 4294901760UL, "whois.apnic.net" },
{ 737542144UL, 4294836224UL, "whois.apnic.net" },
{ 737673216UL, 4294705152UL, "whois.apnic.net" },
{ 737935360UL, 4294901760UL, "whois.apnic.net" },
/* 43.254.0.0 - 43.255.255.255 */
{ 738066432UL, 4294836224UL, "whois.apnic.net" },
/* 45.2.0.0 - 45.3.255.255 */
{ 755105792UL, 4294836224UL, "whois.arin.net" },
/* 45.4.0.0 - 45.7.255.255 */ /* 45.4.0.0 - 45.7.255.255 */
{ 755236864UL, 4294705152UL, "whois.lacnic.net" }, { 755236864UL, 4294705152UL, "whois.lacnic.net" },
/* 45.8.0.0 - 45.15.255.255 */ /* 45.8.0.0 - 45.15.255.255 */
{ 755499008UL, 4294443008UL, "whois.ripe.net" }, { 755499008UL, 4294443008UL, "whois.ripe.net" },
/* 45.16.0.0 - 45.31.255.255 */
{ 756023296UL, 4293918720UL, "whois.arin.net" },
/* 45.32.0.0 - 45.63.255.255 */
{ 757071872UL, 4292870144UL, "whois.arin.net" },
/* 45.64.0.0 - 45.65.15.255 */ /* 45.64.0.0 - 45.65.15.255 */
{ 759234560UL, 4294963200UL, "whois.apnic.net" }, { 759234560UL, 4294963200UL, "whois.apnic.net" },
{ 759169024UL, 4294901760UL, "whois.apnic.net" }, { 759169024UL, 4294901760UL, "whois.apnic.net" },
@ -16,6 +34,8 @@
{ 759300096UL, 4294836224UL, "whois.ripe.net" }, { 759300096UL, 4294836224UL, "whois.ripe.net" },
/* 45.68.0.0 - 45.71.255.255 */ /* 45.68.0.0 - 45.71.255.255 */
{ 759431168UL, 4294705152UL, "whois.lacnic.net" }, { 759431168UL, 4294705152UL, "whois.lacnic.net" },
/* 45.72.0.0 - 45.79.255.255 */
{ 759693312UL, 4294443008UL, "whois.arin.net" },
/* 45.80.0.0 - 45.95.255.255 */ /* 45.80.0.0 - 45.95.255.255 */
{ 760217600UL, 4293918720UL, "whois.ripe.net" }, { 760217600UL, 4293918720UL, "whois.ripe.net" },
/* 45.96.0.0 - 45.111.255.255 */ /* 45.96.0.0 - 45.111.255.255 */
@ -32,16 +52,22 @@
{ 769130496UL, 4294705152UL, "whois.afrinic.net" }, { 769130496UL, 4294705152UL, "whois.afrinic.net" },
{ 769392640UL, 4294836224UL, "whois.afrinic.net" }, { 769392640UL, 4294836224UL, "whois.afrinic.net" },
{ 769523712UL, 4294901760UL, "whois.afrinic.net" }, { 769523712UL, 4294901760UL, "whois.afrinic.net" },
/* 45.223.0.0 - 45.223.255.255 */
{ 769589248UL, 4294901760UL, "whois.arin.net" },
/* 45.224.0.0 - 45.239.255.255 */ /* 45.224.0.0 - 45.239.255.255 */
{ 769654784UL, 4293918720UL, "whois.lacnic.net" }, { 769654784UL, 4293918720UL, "whois.lacnic.net" },
/* 45.240.0.0 - 45.247.255.255 */ /* 45.240.0.0 - 45.247.255.255 */
{ 770703360UL, 4294443008UL, "whois.afrinic.net" }, { 770703360UL, 4294443008UL, "whois.afrinic.net" },
/* 45.248.0.0 - 45.255.255.255 */ /* 45.248.0.0 - 45.255.255.255 */
{ 771227648UL, 4294443008UL, "whois.apnic.net" }, { 771227648UL, 4294443008UL, "whois.apnic.net" },
/* 66.218.132.0 - 66.218.133.255 */
{ 1121616896UL, 4294966784UL, "whois.arin.net" },
/* 66.251.128.0 - 66.251.191.255 */ /* 66.251.128.0 - 66.251.191.255 */
{ 1123778560UL, 4294950912UL, "whois.afrinic.net" }, { 1123778560UL, 4294950912UL, "whois.afrinic.net" },
/* 72.44.16.0 - 72.44.31.255 */ /* 72.44.16.0 - 72.44.31.255 */
{ 1210847232UL, 4294963200UL, "whois.lacnic.net" }, { 1210847232UL, 4294963200UL, "whois.lacnic.net" },
/* 74.91.48.0 - 74.91.63.255 */
{ 1247490048UL, 4294963200UL, "whois.arin.net" },
/* 128.201.0.0 - 128.201.255.255 */ /* 128.201.0.0 - 128.201.255.255 */
{ 2160656384UL, 4294901760UL, "whois.lacnic.net" }, { 2160656384UL, 4294901760UL, "whois.lacnic.net" },
/* 131.196.0.0 - 131.196.255.255 */ /* 131.196.0.0 - 131.196.255.255 */
@ -52,8 +78,12 @@
{ 2332360704UL, 4294901760UL, "whois.apnic.net" }, { 2332360704UL, 4294901760UL, "whois.apnic.net" },
/* 139.26.0.0 - 139.26.255.255 */ /* 139.26.0.0 - 139.26.255.255 */
{ 2333736960UL, 4294901760UL, "whois.afrinic.net" }, { 2333736960UL, 4294901760UL, "whois.afrinic.net" },
/* 139.28.0.0 - 139.28.255.255 */
{ 2333868032UL, 4294901760UL, "whois.ripe.net" },
/* 144.48.0.0 - 144.48.255.255 */ /* 144.48.0.0 - 144.48.255.255 */
{ 2419064832UL, 4294901760UL, "whois.apnic.net" }, { 2419064832UL, 4294901760UL, "whois.apnic.net" },
/* 144.168.0.0 - 144.168.255.255 */
{ 2426929152UL, 4294901760UL, "whois.arin.net" },
/* 146.196.32.0 - 146.196.127.255 */ /* 146.196.32.0 - 146.196.127.255 */
{ 2462326784UL, 4294959104UL, "whois.apnic.net" }, { 2462326784UL, 4294959104UL, "whois.apnic.net" },
{ 2462334976UL, 4294950912UL, "whois.apnic.net" }, { 2462334976UL, 4294950912UL, "whois.apnic.net" },
@ -63,12 +93,24 @@
{ 2471362560UL, 4294901760UL, "whois.ripe.net" }, { 2471362560UL, 4294901760UL, "whois.ripe.net" },
/* 149.248.0.0 - 149.248.255.255 */ /* 149.248.0.0 - 149.248.255.255 */
{ 2516058112UL, 4294901760UL, "whois.arin.net" }, { 2516058112UL, 4294901760UL, "whois.arin.net" },
/* 150.107.0.0 - 150.107.255.255 */
{ 2523594752UL, 4294901760UL, "whois.apnic.net" },
/* 150.129.0.0 - 150.129.255.255 */
{ 2525036544UL, 4294901760UL, "whois.apnic.net" },
/* 150.242.0.0 - 150.242.255.255 */
{ 2532442112UL, 4294901760UL, "whois.apnic.net" },
/* 152.89.0.0 - 152.89.255.255 */ /* 152.89.0.0 - 152.89.255.255 */
{ 2555969536UL, 4294901760UL, "whois.ripe.net" }, { 2555969536UL, 4294901760UL, "whois.ripe.net" },
/* 154.16.0.0 - 154.16.255.255 */
{ 2584739840UL, 4294901760UL, "whois.afrinic.net" },
/* 157.119.0.0 - 157.119.255.255 */ /* 157.119.0.0 - 157.119.255.255 */
{ 2641821696UL, 4294901760UL, "whois.apnic.net" }, { 2641821696UL, 4294901760UL, "whois.apnic.net" },
/* 160.19.0.0 - 160.19.15.255 */
{ 2685599744UL, 4294963200UL, "whois.arin.net" },
/* 160.19.20.0 - 160.19.23.255 */ /* 160.19.20.0 - 160.19.23.255 */
{ 2685604864UL, 4294966272UL, "whois.apnic.net" }, { 2685604864UL, 4294966272UL, "whois.apnic.net" },
/* 160.19.24.0 - 160.19.31.255 */
{ 2685605888UL, 4294965248UL, "whois.arin.net" },
/* 160.19.36.0 - 160.19.39.255 */ /* 160.19.36.0 - 160.19.39.255 */
{ 2685608960UL, 4294966272UL, "whois.afrinic.net" }, { 2685608960UL, 4294966272UL, "whois.afrinic.net" },
/* 160.19.44.0 - 160.19.47.255 */ /* 160.19.44.0 - 160.19.47.255 */
@ -83,11 +125,15 @@
{ 2685623296UL, 4294966272UL, "whois.ripe.net" }, { 2685623296UL, 4294966272UL, "whois.ripe.net" },
/* 160.19.96.0 - 160.19.103.255 */ /* 160.19.96.0 - 160.19.103.255 */
{ 2685624320UL, 4294965248UL, "whois.afrinic.net" }, { 2685624320UL, 4294965248UL, "whois.afrinic.net" },
/* 160.19.104.0 - 160.19.107.255 */
{ 2685626368UL, 4294966272UL, "whois.arin.net" },
/* 160.19.112.0 - 160.19.143.255 */ /* 160.19.112.0 - 160.19.143.255 */
{ 2685628416UL, 4294963200UL, "whois.afrinic.net" }, { 2685628416UL, 4294963200UL, "whois.afrinic.net" },
{ 2685632512UL, 4294963200UL, "whois.afrinic.net" }, { 2685632512UL, 4294963200UL, "whois.afrinic.net" },
/* 160.19.152.0 - 160.19.155.255 */ /* 160.19.152.0 - 160.19.155.255 */
{ 2685638656UL, 4294966272UL, "whois.afrinic.net" }, { 2685638656UL, 4294966272UL, "whois.afrinic.net" },
/* 160.19.160.0 - 160.19.163.255 */
{ 2685640704UL, 4294966272UL, "whois.arin.net" },
/* 160.19.168.0 - 160.19.175.255 */ /* 160.19.168.0 - 160.19.175.255 */
{ 2685642752UL, 4294965248UL, "whois.lacnic.net" }, { 2685642752UL, 4294965248UL, "whois.lacnic.net" },
/* 160.19.180.0 - 160.19.183.255 */ /* 160.19.180.0 - 160.19.183.255 */
@ -135,6 +181,8 @@
/* 160.20.160.0 - 160.20.207.255 */ /* 160.20.160.0 - 160.20.207.255 */
{ 2685706240UL, 4294959104UL, "whois.lacnic.net" }, { 2685706240UL, 4294959104UL, "whois.lacnic.net" },
{ 2685714432UL, 4294963200UL, "whois.lacnic.net" }, { 2685714432UL, 4294963200UL, "whois.lacnic.net" },
/* 160.20.208.0 - 160.20.211.255 */
{ 2685718528UL, 4294966272UL, "whois.arin.net" },
/* 160.20.213.0 - 160.20.213.255 */ /* 160.20.213.0 - 160.20.213.255 */
{ 2685719808UL, 4294967040UL, "whois.afrinic.net" }, { 2685719808UL, 4294967040UL, "whois.afrinic.net" },
/* 160.20.214.0 - 160.20.215.255 */ /* 160.20.214.0 - 160.20.215.255 */
@ -153,12 +201,18 @@
{ 2685723136UL, 4294966784UL, "whois.afrinic.net" }, { 2685723136UL, 4294966784UL, "whois.afrinic.net" },
/* 160.20.229.0 - 160.20.229.255 */ /* 160.20.229.0 - 160.20.229.255 */
{ 2685723904UL, 4294967040UL, "whois.ripe.net" }, { 2685723904UL, 4294967040UL, "whois.ripe.net" },
/* 160.20.230.0 - 160.20.231.255 */
{ 2685724160UL, 4294966784UL, "whois.arin.net" },
/* 160.20.232.0 - 160.20.239.255 */
{ 2685724672UL, 4294965248UL, "whois.arin.net" },
/* 160.20.242.0 - 160.20.243.255 */ /* 160.20.242.0 - 160.20.243.255 */
{ 2685727232UL, 4294966784UL, "whois.lacnic.net" }, { 2685727232UL, 4294966784UL, "whois.lacnic.net" },
/* 160.20.246.0 - 160.20.247.255 */ /* 160.20.246.0 - 160.20.247.255 */
{ 2685728256UL, 4294966784UL, "whois.lacnic.net" }, { 2685728256UL, 4294966784UL, "whois.lacnic.net" },
/* 160.20.248.0 - 160.20.249.255 */ /* 160.20.248.0 - 160.20.249.255 */
{ 2685728768UL, 4294966784UL, "whois.ripe.net" }, { 2685728768UL, 4294966784UL, "whois.ripe.net" },
/* 160.20.251.0 - 160.20.251.255 */
{ 2685729536UL, 4294967040UL, "whois.arin.net" },
/* 160.20.252.0 - 160.20.255.255 */ /* 160.20.252.0 - 160.20.255.255 */
{ 2685729792UL, 4294966272UL, "whois.afrinic.net" }, { 2685729792UL, 4294966272UL, "whois.afrinic.net" },
/* 160.202.8.0 - 160.202.15.255 */ /* 160.202.8.0 - 160.202.15.255 */
@ -167,6 +221,8 @@
{ 2697596928UL, 4294963200UL, "whois.ripe.net" }, { 2697596928UL, 4294963200UL, "whois.ripe.net" },
/* 160.202.32.0 - 160.202.63.255 */ /* 160.202.32.0 - 160.202.63.255 */
{ 2697601024UL, 4294959104UL, "whois.apnic.net" }, { 2697601024UL, 4294959104UL, "whois.apnic.net" },
/* 160.202.64.0 - 160.202.127.255 */
{ 2697609216UL, 4294950912UL, "whois.arin.net" },
/* 160.202.128.0 - 160.202.255.255 */ /* 160.202.128.0 - 160.202.255.255 */
{ 2697625600UL, 4294934528UL, "whois.apnic.net" }, { 2697625600UL, 4294934528UL, "whois.apnic.net" },
/* 160.238.0.0 - 160.238.0.255 */ /* 160.238.0.0 - 160.238.0.255 */
@ -178,15 +234,24 @@
{ 2699956224UL, 4294966272UL, "whois.apnic.net" }, { 2699956224UL, 4294966272UL, "whois.apnic.net" },
/* 160.238.21.0 - 160.238.21.255 */ /* 160.238.21.0 - 160.238.21.255 */
{ 2699957504UL, 4294967040UL, "whois.ripe.net" }, { 2699957504UL, 4294967040UL, "whois.ripe.net" },
/* 160.238.22.0 - 160.238.23.255 */
{ 2699957760UL, 4294966784UL, "whois.arin.net" },
/* 160.238.24.0 - 160.238.29.255 */ /* 160.238.24.0 - 160.238.29.255 */
{ 2699958272UL, 4294966272UL, "whois.lacnic.net" }, { 2699958272UL, 4294966272UL, "whois.lacnic.net" },
{ 2699959296UL, 4294966784UL, "whois.lacnic.net" }, { 2699959296UL, 4294966784UL, "whois.lacnic.net" },
/* 160.238.31.0 - 160.238.31.255 */
{ 2699960064UL, 4294967040UL, "whois.arin.net" },
/* 160.238.33.0 - 160.238.33.255 */ /* 160.238.33.0 - 160.238.33.255 */
{ 2699960576UL, 4294967040UL, "whois.apnic.net" }, { 2699960576UL, 4294967040UL, "whois.apnic.net" },
/* 160.238.34.0 - 160.238.35.255 */ /* 160.238.34.0 - 160.238.35.255 */
{ 2699960832UL, 4294966784UL, "whois.apnic.net" }, { 2699960832UL, 4294966784UL, "whois.apnic.net" },
/* 160.238.36.0 - 160.238.39.255 */ /* 160.238.36.0 - 160.238.39.255 */
{ 2699961344UL, 4294966272UL, "whois.ripe.net" }, { 2699961344UL, 4294966272UL, "whois.ripe.net" },
/* 160.238.41.0 - 160.238.41.255 */
{ 2699962624UL, 4294967040UL, "whois.arin.net" },
/* 160.238.42.0 - 160.238.47.255 */
{ 2699962880UL, 4294966784UL, "whois.arin.net" },
{ 2699963392UL, 4294966272UL, "whois.arin.net" },
/* 160.238.48.0 - 160.238.49.255 */ /* 160.238.48.0 - 160.238.49.255 */
{ 2699964416UL, 4294966784UL, "whois.afrinic.net" }, { 2699964416UL, 4294966784UL, "whois.afrinic.net" },
/* 160.238.50.0 - 160.238.50.255 */ /* 160.238.50.0 - 160.238.50.255 */
@ -207,6 +272,8 @@
{ 2699976704UL, 4294966272UL, "whois.ripe.net" }, { 2699976704UL, 4294966272UL, "whois.ripe.net" },
/* 160.238.101.0 - 160.238.101.255 */ /* 160.238.101.0 - 160.238.101.255 */
{ 2699977984UL, 4294967040UL, "whois.afrinic.net" }, { 2699977984UL, 4294967040UL, "whois.afrinic.net" },
/* 160.238.102.0 - 160.238.103.255 */
{ 2699978240UL, 4294966784UL, "whois.arin.net" },
/* 160.238.104.0 - 160.238.111.255 */ /* 160.238.104.0 - 160.238.111.255 */
{ 2699978752UL, 4294965248UL, "whois.lacnic.net" }, { 2699978752UL, 4294965248UL, "whois.lacnic.net" },
/* 160.238.112.0 - 160.238.127.255 */ /* 160.238.112.0 - 160.238.127.255 */
@ -221,8 +288,31 @@
{ 2718746624UL, 4294965248UL, "whois.ripe.net" }, { 2718746624UL, 4294965248UL, "whois.ripe.net" },
/* 162.12.208.0 - 162.12.215.255 */ /* 162.12.208.0 - 162.12.215.255 */
{ 2718748672UL, 4294965248UL, "whois.apnic.net" }, { 2718748672UL, 4294965248UL, "whois.apnic.net" },
/* 162.12.216.0 - 162.12.219.255 */
{ 2718750720UL, 4294966272UL, "whois.arin.net" },
/* 162.12.224.0 - 162.12.235.255 */
{ 2718752768UL, 4294965248UL, "whois.arin.net" },
{ 2718754816UL, 4294966272UL, "whois.arin.net" },
/* 162.12.240.0 - 162.12.247.255 */ /* 162.12.240.0 - 162.12.247.255 */
{ 2718756864UL, 4294965248UL, "whois.apnic.net" }, { 2718756864UL, 4294965248UL, "whois.apnic.net" },
/* 163.47.4.0 - 163.47.18.255 */
{ 2737767424UL, 4294966272UL, "whois.apnic.net" },
{ 2737768448UL, 4294965248UL, "whois.apnic.net" },
{ 2737770496UL, 4294966784UL, "whois.apnic.net" },
{ 2737771008UL, 4294967040UL, "whois.apnic.net" },
/* 163.47.20.0 - 163.47.21.255 */
{ 2737771520UL, 4294966784UL, "whois.apnic.net" },
/* 163.47.32.0 - 163.47.45.255 */
{ 2737774592UL, 4294965248UL, "whois.apnic.net" },
{ 2737776640UL, 4294966272UL, "whois.apnic.net" },
{ 2737777664UL, 4294966784UL, "whois.apnic.net" },
/* 163.47.47.0 - 163.47.255.255 */
{ 2737778432UL, 4294967040UL, "whois.apnic.net" },
{ 2737778688UL, 4294963200UL, "whois.apnic.net" },
{ 2737782784UL, 4294950912UL, "whois.apnic.net" },
{ 2737799168UL, 4294934528UL, "whois.apnic.net" },
/* 163.53.0.0 - 163.53.255.255 */
{ 2738159616UL, 4294901760UL, "whois.apnic.net" },
/* 164.160.0.0 - 164.160.255.255 */ /* 164.160.0.0 - 164.160.255.255 */
{ 2761949184UL, 4294901760UL, "whois.afrinic.net" }, { 2761949184UL, 4294901760UL, "whois.afrinic.net" },
/* 164.163.0.0 - 164.163.255.255 */ /* 164.163.0.0 - 164.163.255.255 */
@ -275,8 +365,14 @@
{ 3227254272UL, 4294967040UL, "whois.lacnic.net" }, { 3227254272UL, 4294967040UL, "whois.lacnic.net" },
/* 192.92.154.0 - 192.92.154.255 */ /* 192.92.154.0 - 192.92.154.255 */
{ 3227294208UL, 4294967040UL, "whois.lacnic.net" }, { 3227294208UL, 4294967040UL, "whois.lacnic.net" },
/* 192.94.77.0 - 192.94.77.255 */
{ 3227405568UL, 4294967040UL, "whois.arin.net" },
/* 192.94.78.0 - 192.94.78.255 */ /* 192.94.78.0 - 192.94.78.255 */
{ 3227405824UL, 4294967040UL, "whois.ripe.net" }, { 3227405824UL, 4294967040UL, "whois.ripe.net" },
/* 192.107.1.0 - 192.107.1.255 */
{ 3228238080UL, 4294967040UL, "whois.arin.net" },
/* 192.133.103.0 - 192.133.103.255 */
{ 3229968128UL, 4294967040UL, "whois.arin.net" },
/* 192.135.90.0 - 192.135.91.255 */ /* 192.135.90.0 - 192.135.91.255 */
{ 3230095872UL, 4294966784UL, "whois.apnic.net" }, { 3230095872UL, 4294966784UL, "whois.apnic.net" },
/* 192.135.95.0 - 192.135.95.255 */ /* 192.135.95.0 - 192.135.95.255 */
@ -291,6 +387,8 @@
{ 3230400768UL, 4294967040UL, "whois.lacnic.net" }, { 3230400768UL, 4294967040UL, "whois.lacnic.net" },
/* 192.140.2.0 - 192.140.3.255 */ /* 192.140.2.0 - 192.140.3.255 */
{ 3230401024UL, 4294966784UL, "whois.ripe.net" }, { 3230401024UL, 4294966784UL, "whois.ripe.net" },
/* 192.140.4.0 - 192.140.7.255 */
{ 3230401536UL, 4294966272UL, "whois.arin.net" },
/* 192.140.8.0 - 192.140.15.255 */ /* 192.140.8.0 - 192.140.15.255 */
{ 3230402560UL, 4294965248UL, "whois.lacnic.net" }, { 3230402560UL, 4294965248UL, "whois.lacnic.net" },
/* 192.140.16.0 - 192.140.127.255 */ /* 192.140.16.0 - 192.140.127.255 */
@ -317,6 +415,8 @@
{ 3230683136UL, 4294963200UL, "whois.apnic.net" }, { 3230683136UL, 4294963200UL, "whois.apnic.net" },
/* 192.144.96.0 - 192.144.127.255 */ /* 192.144.96.0 - 192.144.127.255 */
{ 3230687232UL, 4294959104UL, "whois.lacnic.net" }, { 3230687232UL, 4294959104UL, "whois.lacnic.net" },
/* 192.144.128.0 - 192.144.255.255 */
{ 3230695424UL, 4294934528UL, "whois.arin.net" },
/* 192.145.0.0 - 192.145.127.255 */ /* 192.145.0.0 - 192.145.127.255 */
{ 3230728192UL, 4294934528UL, "whois.ripe.net" }, { 3230728192UL, 4294934528UL, "whois.ripe.net" },
/* 192.145.128.0 - 192.145.191.255 */ /* 192.145.128.0 - 192.145.191.255 */
@ -329,22 +429,34 @@
{ 3230786560UL, 4294966784UL, "whois.apnic.net" }, { 3230786560UL, 4294966784UL, "whois.apnic.net" },
/* 192.145.230.0 - 192.145.230.255 */ /* 192.145.230.0 - 192.145.230.255 */
{ 3230787072UL, 4294967040UL, "whois.afrinic.net" }, { 3230787072UL, 4294967040UL, "whois.afrinic.net" },
/* 192.147.11.0 - 192.147.11.255 */
{ 3230862080UL, 4294967040UL, "whois.arin.net" },
/* 192.153.12.0 - 192.153.12.255 */ /* 192.153.12.0 - 192.153.12.255 */
{ 3231255552UL, 4294967040UL, "whois.lacnic.net" }, { 3231255552UL, 4294967040UL, "whois.lacnic.net" },
/* 192.156.144.0 - 192.156.144.255 */ /* 192.156.144.0 - 192.156.144.255 */
{ 3231485952UL, 4294967040UL, "whois.apnic.net" }, { 3231485952UL, 4294967040UL, "whois.apnic.net" },
/* 192.156.202.0 - 192.156.202.255 */
{ 3231500800UL, 4294967040UL, "whois.arin.net" },
/* 192.156.220.0 - 192.156.220.255 */ /* 192.156.220.0 - 192.156.220.255 */
{ 3231505408UL, 4294967040UL, "whois.apnic.net" }, { 3231505408UL, 4294967040UL, "whois.apnic.net" },
/* 192.172.232.0 - 192.172.232.255 */ /* 192.172.232.0 - 192.172.232.255 */
{ 3232557056UL, 4294967040UL, "whois.ripe.net" }, { 3232557056UL, 4294967040UL, "whois.ripe.net" },
/* 192.172.244.0 - 192.172.244.255 */
{ 3232560128UL, 4294967040UL, "whois.arin.net" },
/* 192.188.81.0 - 192.188.81.255 */
{ 3233566976UL, 4294967040UL, "whois.arin.net" },
/* 192.188.82.0 - 192.188.83.255 */ /* 192.188.82.0 - 192.188.83.255 */
{ 3233567232UL, 4294966784UL, "whois.apnic.net" }, { 3233567232UL, 4294966784UL, "whois.apnic.net" },
/* 192.188.248.0 - 192.188.248.255 */ /* 192.188.248.0 - 192.188.248.255 */
{ 3233609728UL, 4294967040UL, "whois.ripe.net" }, { 3233609728UL, 4294967040UL, "whois.ripe.net" },
/* 192.197.113.0 - 192.197.113.255 */ /* 192.197.113.0 - 192.197.113.255 */
{ 3234164992UL, 4294967040UL, "whois.apnic.net" }, { 3234164992UL, 4294967040UL, "whois.apnic.net" },
/* 192.231.238.0 - 192.231.238.255 */
{ 3236425216UL, 4294967040UL, "whois.arin.net" },
/* 192.251.230.0 - 192.251.230.255 */ /* 192.251.230.0 - 192.251.230.255 */
{ 3237733888UL, 4294967040UL, "whois.ripe.net" }, { 3237733888UL, 4294967040UL, "whois.ripe.net" },
/* 198.17.79.0 - 198.17.79.255 */
{ 3323023104UL, 4294967040UL, "whois.arin.net" },
/* 198.97.38.0 - 198.97.38.255 */ /* 198.97.38.0 - 198.97.38.255 */
{ 3328255488UL, 4294967040UL, "whois.lacnic.net" }, { 3328255488UL, 4294967040UL, "whois.lacnic.net" },
/* 199.21.172.0 - 199.21.175.255 */ /* 199.21.172.0 - 199.21.175.255 */
@ -363,8 +475,14 @@
{ 3437308416UL, 4294966784UL, "whois.lacnic.net" }, { 3437308416UL, 4294966784UL, "whois.lacnic.net" },
/* 205.211.83.0 - 205.211.83.255 */ /* 205.211.83.0 - 205.211.83.255 */
{ 3453178624UL, 4294967040UL, "whois.ripe.net" }, { 3453178624UL, 4294967040UL, "whois.ripe.net" },
/* 207.115.112.0 - 207.115.127.255 */
{ 3480449024UL, 4294963200UL, "whois.arin.net" },
/* 208.73.240.0 - 208.73.243.255 */
{ 3494506496UL, 4294966272UL, "whois.arin.net" },
/* 208.85.156.0 - 208.85.159.255 */ /* 208.85.156.0 - 208.85.159.255 */
{ 3495271424UL, 4294966272UL, "whois.afrinic.net" }, { 3495271424UL, 4294966272UL, "whois.afrinic.net" },
/* 209.107.128.0 - 209.107.191.255 */
{ 3513483264UL, 4294950912UL, "whois.arin.net" },
/* 216.98.208.0 - 216.98.223.255 */ /* 216.98.208.0 - 216.98.223.255 */
{ 3630354432UL, 4294963200UL, "whois.lacnic.net" }, { 3630354432UL, 4294963200UL, "whois.lacnic.net" },
/* 216.250.96.0 - 216.250.111.255 */ /* 216.250.96.0 - 216.250.111.255 */

27
make_as32_del.pl Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/perl
use warnings;
use strict;
while (<>) {
chomp;
s/#.*$//;
s/^\s+//; s/\s+$//;
next if /^$/;
my ($fh, $fl, $lh, $ll, $s, $f, $l);
if (($fh, $fl, $lh, $ll, $s) =
/^(\d+)\.(\d+)\s+(\d+)\.(\d+)\s+([\w\.-]+)$/) {
$f = ($fh << 16) + $fl;
$l = ($lh << 16) + $ll;
my $server = ($s =~ /\./) ? $s : "whois.$s.net";
print qq|{ ${f}u, ${l}u,\t"$server" },\t/* $fh.$fl $lh.$ll */\n|;
} elsif (($f, $l, $s) = /^(\d+)\s+(\d+)\s+([\w\.-]+)$/) {
my $server = ($s =~ /\./) ? $s : "whois.$s.net";
print qq|{ ${f}u, ${l}u,\t"$server" },\n|;
} else {
die "format error: $_";
}
}

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;
@ -12,22 +11,18 @@ while (<>) {
s/^\s+//; s/\s+$//; s/^\s+//; s/\s+$//;
next if /^$/; next if /^$/;
my ($fh, $fl, $lh, $ll, $s, $f, $l); die "format error: $_" if not (/^([\d\.]+)\s+([\d\.]+)\s+([\w\.]+)$/);
my $comment = ''; my $f = $1; my $l = $2; my $s = $3;
if (($fh, $fl, $lh, $ll, $s) =
/^(\d+)\.(\d+)\s+(\d+)\.(\d+)\s+([\w\.-]+)$/) {
$f = ($fh << 16) + $fl;
$l = ($lh << 16) + $ll;
$comment = qq|\t/* $fh.$fl $lh.$ll */|;
} elsif (($f, $l, $s) = /^(\d+)\s+(\d+)\s+([\w\.-]+)$/) {
} else {
die "format error: $_";
}
die "constraint violated: $l < $last_l" if $l < $last_l; die "constraint violated: $l < $last_l" if $l < $last_l;
$last_l = $l; $last_l = $l;
my $server = ($s =~ /\./) ? $s : "whois.$s.net"; print "{ ${f}, ${l}, \"";
print qq|{ ${f}u, ${l}u,\t"$server" },$comment\n|; if ($s =~ /\./) {
print "$s";
} else {
print "whois.$s.net";
}
print qq(" },\n);
} }

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;

View File

@ -6,12 +6,10 @@ use strict;
use autodie; use autodie;
use Text::CSV; use Text::CSV;
use Net::Patricia;
use Net::CIDR; use Net::CIDR;
use Net::IP; use Net::IP;
my $csv = Text::CSV->new; my $csv = Text::CSV->new;
my $pt = parse_ip_del('ip_del_list');
open(my $in, '<', 'ipv4-recovered-address-space-2.csv'); open(my $in, '<', 'ipv4-recovered-address-space-2.csv');
open(my $out, '>', 'ip_del_recovered.h'); open(my $out, '>', 'ip_del_recovered.h');
@ -19,51 +17,18 @@ open(my $out, '>', 'ip_del_recovered.h');
while (my $row = $csv->getline($in)) { while (my $row = $csv->getline($in)) {
next if $row->[0] eq 'Start address'; next if $row->[0] eq 'Start address';
next if $row->[5] ne 'ALLOCATED'; next if $row->[5] ne 'ALLOCATED';
my ($first_ip, $last_ip, undef, undef, $server) = @$row;
print $out '/* ' . $row->[0] . ' - ' . $row->[1] . " */\n";
my @networks = my @networks =
grep {
my $server_recovered = $pt->match_string($_->ip);
$server_recovered and $server_recovered ne $server;
}
map { Net::IP->new($_) } map { Net::IP->new($_) }
Net::CIDR::range2cidr($first_ip . '-' . $last_ip); Net::CIDR::range2cidr($row->[0] . '-' . $row->[1]);
next if not @networks;
print $out "/* $first_ip - $last_ip */\n";
print $out sprintf(qq|{ %sUL, %sUL, "%s" },\n|, print $out sprintf(qq|{ %sUL, %sUL, "%s" },\n|,
$_->intip, $_->intip,
((~(0xffffffff >> $_->prefixlen)) & 0xffffffff), ((~(0xffffffff >> $_->prefixlen)) & 0xffffffff),
$server $row->[4]
) foreach @networks; ) foreach @networks;
} }
close($in); close($in);
close($out); close($out);
exit;
sub parse_ip_del {
my ($file) = @_;
my $pt = new Net::Patricia;
open(my $in, '<', $file);
while (<$in>) {
# this code is copied from make_ip_del.pl
chomp;
s/#.*$//;
s/^\s+//; s/\s+$//;
next if /^$/;
die "format error: $_" if not /^([\d\.]+)\/(\d+)\s+([\w\.]+)$/;
my $network = "$1/$2";
my $server = $3;
$server = "whois.$server.net" if $server !~ /\./;
$pt->add_string($network, $server) or die;
}
return $pt;
}

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;
@ -16,9 +15,9 @@ while (<>) {
$b =~ s/^W(?:EB)?\s+/\\x01/; $b =~ s/^W(?:EB)?\s+/\\x01/;
$b =~ s/^VERISIGN\s+/\\x04" "/; $b =~ s/^VERISIGN\s+/\\x04" "/;
$b = "\\x03" if $b eq 'NONE'; $b = "\\x03" if $b eq 'NONE';
$b =~ s/^RECURSIVE\s+/\\x08" "/; $b = "\\x08whois.afilias-grs.info" if $b eq 'AFILIAS';
$b = "\\x08$b" if $b eq 'whois.flexireg.net'; $b = "\\x08$b" if $b eq 'whois.flexireg.net';
$b = "\\x08$b" if $b eq 'whois.nixiregistry.in'; $b = "\\x08$b" if $b eq 'whois.registry.in';
$b = "\\x0C" if $b eq 'ARPA'; $b = "\\x0C" if $b eq 'ARPA';
$b = "\\x0D" if $b eq 'IP6'; $b = "\\x0D" if $b eq 'IP6';
print qq| "$a",\t"$b",\n|; print qq| "$a",\t"$b",\n|;

View File

@ -1,5 +1,4 @@
#!/usr/bin/perl #!/usr/bin/perl
# SPDX-License-Identifier: GPL-2.0-or-later
use warnings; use warnings;
use strict; use strict;
@ -14,17 +13,12 @@ close($fh);
my ($ver) = $line =~ /^whois \s+ \( ( [^\)]+ ) \) \s+ \S+/x; my ($ver) = $line =~ /^whois \s+ \( ( [^\)]+ ) \) \s+ \S+/x;
die "Version number not found in $changelog!\n" if not $ver; die "Version number not found in $changelog!\n" if not $ver;
$ver =~ s/ ( $ver =~ s/ ( ~bpo\d+\+\d+ | \+b\d+ | ~deb\d+.* | ubuntu\d+ | build\d+ | \+dyson\d+ ) $//x;
build\d+
| ubuntu\d+
| ~\S+
| \+\S+
) $//x;
# The version number must not deviate from this format or the -V option # The version number must not deviate from this format or the -V option
# to RIPE-like servers will break. If needed, update the previous regexp. # to RIPE-like servers will break. If needed, update the previous regexp.
# This may not be true anymore in 2019. # This may not be true anymore in 2019.
die "Invalid version number in $changelog: '$ver'!\n" die "Invalid version number in $changelog!\n"
unless $ver =~ /^ \d+\.\d+ ( \.\d+ )? $/x; unless $ver =~ /^ \d+\.\d+ ( \.\d+ )? $/x;
# This is the version number used in the help messages. # This is the version number used in the help messages.

View File

@ -12,28 +12,28 @@ encrypts the given password with the
libc function, using the given salt. libc function, using the given salt.
.SH OPTIONS .SH OPTIONS
.TP .TP
.BR \-S " STRING\fR, \fP" \-\-salt= \fISTRING\fP .BR \-S ", "\c
.BI \-\-salt= STRING
Use the Use the
.I STRING .I STRING
as salt. as salt. If it begins with
If it begins with
.I $ .I $
then it will be passed straight to then it will be passed straight to
.BR crypt (3) .BR crypt (3)
without any checks. without any checks.
.TP .TP
.BR \-R " NUMBER\fR, \fP" \-\-rounds= \fINUMBER\fP .BR \-R ", "\c
.BI \-\-rounds= NUMBER
Use Use
.I NUMBER .I NUMBER
rounds. rounds. This argument is ignored if the method chosen
This argument is ignored if the method chosen does not support variable rounds. For the OpenBSD Blowfish method this is
does not support variable rounds.
For the OpenBSD Blowfish method this is
the logarithm of the number of rounds. the logarithm of the number of rounds.
The behavior is undefined if this option is used without The behavior is undefined if this option is used without
.IR \-\-method . .IR \-\-method .
.TP .TP
.BR \-m " TYPE\fR, \fP" \-\-method= \fITYPE\fP .BR \-m ", "\c
.BI \-\-method= TYPE
Compute the password using the Compute the password using the
.I TYPE .I TYPE
method. method.
@ -47,18 +47,20 @@ If
begins and end with begins and end with
.I $ .I $
characters then the string is passed to characters then the string is passed to
.BR crypt_gensalt (3) .IR crypt_gensalt (3)
as-is. as-is.
.TP .TP
.B \-5 .B -5
Like Like
.IR \-\-method=md5crypt . .IR \-\-method=md5crypt .
.TP .TP
.BI \-P " NUM\fR, \fP" \-\-password-fd= NUM .B \-P \c
.IR NUM ", "\c
.BI \-\-password-fd= NUM
Read the password from file descriptor Read the password from file descriptor
.I NUM .I NUM
instead of using instead of using
.BR getpass (3). .IR getpass (3).
If the file descriptor is not connected to a tty then no other text If the file descriptor is not connected to a tty then no other text
than the hashed password is printed on stdout. than the hashed password is printed on stdout.
.TP .TP
@ -77,16 +79,15 @@ characters may not be read correctly.
.P .P
This program suffers of a bad case of featuritis. This program suffers of a bad case of featuritis.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR passwd (1), .IR passwd (1),
.BR passwd (5), .IR passwd (5),
.BR crypt (3), .IR crypt (3),
.BR crypt (5), .IR crypt (5),
.BR crypt_gensalt (3), .IR crypt_gensalt (3),
.BR getpass (3). .IR getpass (3).
.SH AUTHOR .SH AUTHOR
.B mkpasswd .B mkpasswd
and this man page were written by Marco d'Itri and this man page were written by Marco d'Itri
.RI < md@linux.it > .RI < md@linux.it >
and are licensed under the terms of the GNU General Public License, and are licensed under the terms of the GNU General Public License,
version 2 or later. version 2 or higher.
.\" SPDX-License-Identifier: GPL-2.0-or-later

View File

@ -1,33 +0,0 @@
_mkpasswd() {
case $3 in
--help | --version | --salt | --rounds | --password-fd | -[hVSRP])
return 0
;;
--method | -m)
COMPREPLY=($(compgen -W '$(
LC_ALL=C "$1" --method=help 2>/dev/null |
while read -r method _; do
[[ $method == Available ]] ||
printf "%s\n" "$method"
done
)'))
return 0
;;
esac
if [[ $2 == -* ]]; then
COMPREPLY=($(compgen -W '
--method
-5
--salt
--rounds
--password-fd
--stdin
--help
--version
' -- "$2"))
return 0
fi
} && complete -F _mkpasswd mkpasswd

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) Marco d'Itri <md@linux.it>. * Copyright (C) 2001-2021 Marco d'Itri <md@linux.it>.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -12,9 +12,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, see <https://www.gnu.org/licenses/>. * with this program; if not, write to the Free Software Foundation, Inc.,
* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: GPL-2.0-or-later
*/ */
/* for crypt, snprintf and strcasecmp */ /* for crypt, snprintf and strcasecmp */
@ -46,9 +45,6 @@
#ifdef HAVE_GETTIMEOFDAY #ifdef HAVE_GETTIMEOFDAY
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_READPASSPHRASE
#include <readpassphrase.h>
#endif
/* Application-specific */ /* Application-specific */
#include "version.h" #include "version.h"
@ -102,6 +98,9 @@ static const struct crypt_method methods[] = {
{ "md5", "$1$", 8, 8, 0, NULL }, { "md5", "$1$", 8, 8, 0, NULL },
#if defined XCRYPT_VERSION_NUM #if defined XCRYPT_VERSION_NUM
{ "yescrypt", "$y$", 0, 0, 1, "Yescrypt" }, { "yescrypt", "$y$", 0, 0, 1, "Yescrypt" },
#if XCRYPT_VERSION_NUM >= ((4 << 16) | 4)
{ "gost-yescrypt", "$gy$", 0, 0, 1, "GOST Yescrypt" },
#endif
{ "scrypt", "$7$", 0, 0, 1, "scrypt" }, { "scrypt", "$7$", 0, 0, 1, "scrypt" },
#endif #endif
#ifdef HAVE_BCRYPT_OBSOLETE #ifdef HAVE_BCRYPT_OBSOLETE
@ -110,7 +109,7 @@ static const struct crypt_method methods[] = {
#endif #endif
#ifdef HAVE_BCRYPT #ifdef HAVE_BCRYPT
{ "bcrypt", "$2b$", 22, 22, 2, "bcrypt" }, { "bcrypt", "$2b$", 22, 22, 2, "bcrypt" },
{ "bcrypt_a", "$2a$", 22, 22, 2, "bcrypt (obsolete $2a$ version)" }, { "bcrypt-a", "$2a$", 22, 22, 2, "bcrypt (obsolete $2a$ version)" },
#endif #endif
#if defined HAVE_SHA_CRYPT #if defined HAVE_SHA_CRYPT
/* http://people.redhat.com/drepper/SHA-crypt.txt */ /* http://people.redhat.com/drepper/SHA-crypt.txt */
@ -137,13 +136,6 @@ static const struct crypt_method methods[] = {
#endif #endif
{ "descrypt", "", 2, 2, 0, { "descrypt", "", 2, 2, 0,
N_("standard 56 bit DES-based crypt(3)") }, N_("standard 56 bit DES-based crypt(3)") },
#if XCRYPT_VERSION_NUM >= ((4 << 16) | 5)
{ "sm3crypt", "$sm3$", 0, 0, 1, "ShangMi 3" },
{ "sm3_yescrypt", "$sm3y$", 0, 0, 1, "ShangMi 3 Yescrypt" },
#endif
#if XCRYPT_VERSION_NUM >= ((4 << 16) | 4)
{ "gost_yescrypt", "$gy$", 0, 0, 1, "GOST Yescrypt" },
#endif
#if defined FreeBSD || defined XCRYPT_VERSION_NUM #if defined FreeBSD || defined XCRYPT_VERSION_NUM
{ "nt", "$3$", 0, 0, 0, "NT-Hash" }, { "nt", "$3$", 0, 0, 0, "NT-Hash" },
#endif #endif
@ -279,7 +271,6 @@ int main(int argc, char *argv[])
if (!salt_prefix) { if (!salt_prefix) {
/* NULL means that crypt_gensalt will choose one later */ /* NULL means that crypt_gensalt will choose one later */
rounds_str[0] = '\0';
} else if (rounds_support == 2) { } else if (rounds_support == 2) {
/* bcrypt strings always contain the rounds number */ /* bcrypt strings always contain the rounds number */
if (rounds <= 5) if (rounds <= 5)
@ -332,8 +323,6 @@ int main(int argc, char *argv[])
* Build the actual argument to crypt(3) by concatenating the * Build the actual argument to crypt(3) by concatenating the
* method prefix, the rounds metadata (if any) and the salt string. * method prefix, the rounds metadata (if any) and the salt string.
*/ */
if (!salt_prefix)
salt_prefix = "";
salt = NOFAIL(malloc(strlen(salt_prefix) + strlen(rounds_str) salt = NOFAIL(malloc(strlen(salt_prefix) + strlen(rounds_str)
+ strlen(salt_arg) + 1)); + strlen(salt_arg) + 1));
*salt = '\0'; *salt = '\0';
@ -393,21 +382,11 @@ int main(int argc, char *argv[])
exit(2); exit(2);
} }
} else { } else {
#ifdef HAVE_READPASSPHRASE
const size_t size = 128;
password = NOFAIL(malloc(size));
if (!readpassphrase(_("Password: "), password, size, 0)) {
perror("readpassphrase");
exit(2);
}
#else
password = getpass(_("Password: ")); password = getpass(_("Password: "));
if (!password) { if (!password) {
perror("getpass"); perror("getpass");
exit(2); exit(2);
} }
#endif
} }
{ {
@ -440,7 +419,6 @@ int main(int argc, char *argv[])
*/ */
inline void *get_random_bytes(const unsigned int count) inline void *get_random_bytes(const unsigned int count)
{ {
(void)(count); /* suppress the "unused parameter" warning */
return NULL; return NULL;
} }
@ -559,7 +537,7 @@ void NORETURN display_help(int error)
void display_version(void) void display_version(void)
{ {
printf("mkpasswd %s\n\n", VERSION); printf("mkpasswd %s\n\n", VERSION);
puts("Copyright (C) Marco d'Itri\n" puts("Copyright (C) 2001-2021 Marco d'Itri\n"
"This is free software; see the source for copying conditions. There is NO\n" "This is free software; see the source for copying conditions. There is NO\n"
"warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.");
} }
@ -575,7 +553,7 @@ void display_methods(void)
} }
char *read_line(FILE *fp) { char *read_line(FILE *fp) {
size_t size = 128; int size = 128;
int ch; int ch;
size_t pos = 0; size_t pos = 0;
char *password; char *password;

View File

@ -6,6 +6,7 @@
aaa aaa
aarp aarp
abarth
abb abb
abbott abbott
abbvie abbvie
@ -19,6 +20,7 @@ accountant
accountants accountants
aco aco
actor actor
adac
ads ads
adult adult
aeg aeg
@ -32,6 +34,7 @@ airbus
airforce airforce
airtel airtel
akdn akdn
alfaromeo
alibaba alibaba
alipay alipay
allfinanz allfinanz
@ -73,12 +76,14 @@ auspost
author author
auto auto
autos autos
avianca
aws aws
axa axa
azure azure
baby baby
baidu baidu
banamex banamex
bananarepublic
band band
bank bank
bar bar
@ -99,6 +104,7 @@ bcn
beats beats
beauty beauty
beer beer
bentley
berlin berlin
best best
bestbuy bestbuy
@ -139,6 +145,7 @@ broadway
broker broker
brother brother
brussels brussels
bugatti
build build
builders builders
business business
@ -153,6 +160,7 @@ calvinklein
cam cam
camera camera
camp camp
cancerresearch
canon canon
capetown capetown
capital capital
@ -173,6 +181,7 @@ catholic
cba cba
cbn cbn
cbre cbre
cbs
center center
ceo ceo
cern cern
@ -195,6 +204,7 @@ citadel
citi citi
citic citic
city city
cityeats
claims claims
cleaning cleaning
click click
@ -209,6 +219,7 @@ codes
coffee coffee
college college
cologne cologne
comcast
commbank commbank
community community
company company
@ -221,6 +232,7 @@ consulting
contact contact
contractors contractors
cooking cooking
cookingchannel
cool cool
corsica corsica
country country
@ -239,6 +251,7 @@ cruises
cuisinella cuisinella
cymru cymru
cyou cyou
dabur
dad dad
dance dance
data data
@ -282,6 +295,7 @@ download
drive drive
dtv dtv
dubai dubai
dunlop
dupont dupont
durban durban
dvag dvag
@ -303,6 +317,7 @@ ericsson
erni erni
esq esq
estate estate
etisalat
eurovision eurovision
eus eus
events events
@ -326,6 +341,7 @@ fedex
feedback feedback
ferrari ferrari
ferrero ferrero
fiat
fidelity fidelity
fido fido
film film
@ -347,6 +363,7 @@ flowers
fly fly
foo foo
food food
foodnetwork
football football
ford ford
forex forex
@ -358,6 +375,7 @@ free
fresenius fresenius
frl frl
frogans frogans
frontdoor
frontier frontier
ftr ftr
fujitsu fujitsu
@ -398,6 +416,7 @@ godaddy
gold gold
goldpoint goldpoint
golf golf
goo
goodyear goodyear
goog goog
google google
@ -410,6 +429,7 @@ green
gripe gripe
grocery grocery
group group
guardian
gucci gucci
guge guge
guide guide
@ -428,6 +448,7 @@ help
helsinki helsinki
here here
hermes hermes
hgtv
hiphop hiphop
hisamitsu hisamitsu
hitachi hitachi
@ -446,6 +467,7 @@ hospital
host host
hosting hosting
hot hot
hoteles
hotels hotels
hotmail hotmail
house house
@ -503,11 +525,12 @@ juniper
kaufen kaufen
kddi kddi
kerryhotels kerryhotels
kerrylogistics
kerryproperties kerryproperties
kfh kfh
kia kia
kids
kim kim
kinder
kindle kindle
kitchen kitchen
kiwi kiwi
@ -523,6 +546,8 @@ kyoto
lacaixa lacaixa
lamborghini lamborghini
lamer lamer
lancaster
lancia
land land
landrover landrover
lanxess lanxess
@ -550,7 +575,9 @@ lilly
limited limited
limo limo
lincoln lincoln
linde
link link
lipsy
live live
living living
llc llc
@ -559,6 +586,7 @@ loan
loans loans
locker locker
locus locus
loft
lol lol
london london
lotte lotte
@ -571,6 +599,7 @@ ltda
lundbeck lundbeck
luxe luxe
luxury luxury
macys
madrid madrid
maif maif
maison maison
@ -584,6 +613,7 @@ marketing
markets markets
marriott marriott
marshalls marshalls
maserati
mattel mattel
mba mba
mckinsey mckinsey
@ -624,8 +654,10 @@ msd
mtn mtn
mtr mtr
music music
mutual
nab nab
nagoya nagoya
natura
navy navy
nba nba
nec nec
@ -648,6 +680,7 @@ ninja
nissan nissan
nissay nissay
nokia nokia
northwesternmutual
norton norton
now now
nowruz nowruz
@ -662,6 +695,7 @@ office
okinawa okinawa
olayan olayan
olayangroup olayangroup
oldnavy
ollo ollo
omega omega
one one
@ -685,6 +719,7 @@ pars
partners partners
parts parts
party party
passagens
pay pay
pccw pccw
pet pet
@ -716,6 +751,7 @@ pohl
poker poker
politie politie
porn porn
pramerica
praxi praxi
press press
prime prime
@ -742,6 +778,7 @@ realtor
realty realty
recipes recipes
red red
redstone
redumbrella redumbrella
rehab rehab
reise reise
@ -765,6 +802,7 @@ ricoh
ril ril
rio rio
rip rip
rocher
rocks rocks
rodeo rodeo
rogers rogers
@ -793,6 +831,7 @@ save
saxo saxo
sbi sbi
sbs sbs
sca
scb scb
schaeffler schaeffler
schmidt schmidt
@ -810,6 +849,7 @@ seek
select select
sener sener
services services
ses
seven seven
sew sew
sex sex
@ -817,6 +857,7 @@ sexy
sfr sfr
shangrila shangrila
sharp sharp
shaw
shell shell
shia shia
shiksha shiksha
@ -825,6 +866,7 @@ shop
shopping shopping
shouji shouji
show show
showtime
silk silk
sina sina
singles singles
@ -901,6 +943,7 @@ theatre
tiaa tiaa
tickets tickets
tienda tienda
tiffany
tips tips
tires tires
tirol tirol
@ -922,6 +965,7 @@ toys
trade trade
trading trading
training training
travelchannel
travelers travelers
travelersinsurance travelersinsurance
trust trust
@ -960,11 +1004,13 @@ viva
vivo vivo
vlaanderen vlaanderen
vodka vodka
volkswagen
volvo volvo
vote vote
voting voting
voto voto
voyage voyage
vuelos
wales wales
walmart walmart
walter walter
@ -990,6 +1036,7 @@ windows
wine wine
winners winners
wme wme
wolterskluwer
woodside woodside
work work
works works
@ -999,6 +1046,7 @@ wtc
wtf wtf
xbox xbox
xerox xerox
xfinity
xihuan xihuan
xin xin
xn--11b4c3d xn--11b4c3d
@ -1019,8 +1067,6 @@ xn--6frz82g
xn--6qq986b3xl xn--6qq986b3xl
xn--80adxhks xn--80adxhks
xn--80aqecdr1a xn--80aqecdr1a
xn--80asehdb
xn--80aswg
xn--8y0a063a xn--8y0a063a
xn--9dbq2a xn--9dbq2a
xn--9et52u xn--9et52u
@ -1054,18 +1100,19 @@ xn--imr513n
xn--io0a7i xn--io0a7i
xn--j1aef xn--j1aef
xn--jlq480n2rg xn--jlq480n2rg
xn--jlq61u9w7b
xn--jvr189m xn--jvr189m
xn--kcrx77d1x4a xn--kcrx77d1x4a
xn--kput3i xn--kput3i
xn--mgba3a3ejt xn--mgba3a3ejt
xn--mgba7c0bbn0a xn--mgba7c0bbn0a
xn--mgbaakc7dvf
xn--mgbab2bd xn--mgbab2bd
xn--mgbca7dzdo xn--mgbca7dzdo
xn--mgbi4ecexp xn--mgbi4ecexp
xn--mgbt3dhd xn--mgbt3dhd
xn--mk1bu44c xn--mk1bu44c
xn--mxtq1m xn--mxtq1m
xn--ngbc5azd
xn--ngbe9e0a xn--ngbe9e0a
xn--ngbrx xn--ngbrx
xn--nqv7f xn--nqv7f
@ -1082,7 +1129,6 @@ xn--ses554g
xn--t60b56a xn--t60b56a
xn--tckwe xn--tckwe
xn--tiq49xqyj xn--tiq49xqyj
xn--unup4y
xn--vermgensberater-ctb xn--vermgensberater-ctb
xn--vermgensberatung-pwb xn--vermgensberatung-pwb
xn--vhquv xn--vhquv

View File

@ -5,13 +5,14 @@
-afrinic whois.afrinic.net -afrinic whois.afrinic.net
-ap whois.apnic.net -ap whois.apnic.net
-cznic whois.nic.cz -cznic whois.nic.cz
-dk whois.punktum.dk -dk whois.dk-hostmaster.dk
-il whois.isoc.org.il -il whois.isoc.org.il
-is whois.isnic.is -is whois.isnic.is
-kg whois.kg -kg whois.domain.kg
-coop whois.nic.coop -coop whois.nic.coop
-frnic whois.nic.fr -frnic whois.nic.fr
-lrms whois.afilias.info -lrms whois.afilias.info
-metu whois.nic.tr
-nicat whois.nic.at -nicat whois.nic.at
-nicci whois.nic.ci -nicci whois.nic.ci
-irnic whois.nic.ir -irnic whois.nic.ir
@ -21,5 +22,3 @@
-sixxs whois.sixxs.net -sixxs whois.sixxs.net
-uanic whois.ua -uanic whois.ua
-bzh whois.nic.bzh -bzh whois.nic.bzh
-ru whois.tcinet.ru
-su whois.tcinet.ru

View File

@ -10,7 +10,7 @@ INSTALLNLSDIR=$(BASEDIR)$(prefix)/share/locale
PACKAGE = whois PACKAGE = whois
CATALOGS = cs.mo da.mo de.mo el.mo es.mo eu.mo fi.mo fr.mo it.mo ja.mo ka.mo pl.mo pt_BR.mo ru.mo tr.mo zh_CN.mo CATALOGS = cs.mo da.mo de.mo el.mo es.mo eu.mo fi.mo fr.mo it.mo ja.mo pl.mo pt_BR.mo ru.mo zh_CN.mo
POTFILES=../whois.c ../mkpasswd.c POTFILES=../whois.c ../mkpasswd.c

View File

@ -20,13 +20,13 @@
# los siguientes documentos: # los siguientes documentos:
# #
# - El proyecto de traducción de Debian al español # - El proyecto de traducción de Debian al español
# https://www.debian.org/intl/spanish/ # http://www.debian.org/intl/spanish/
# especialmente las notas y normas de traducción en # especialmente las notas y normas de traducción en
# https://www.debian.org/intl/spanish/notas # http://www.debian.org/intl/spanish/notas
# #
# - La guía de traducción de po's de debconf: # - La guía de traducción de po's de debconf:
# /usr/share/doc/po-debconf/README-trans # /usr/share/doc/po-debconf/README-trans
# o https://www.debian.org/intl/l10n/po-debconf/README-trans # o http://www.debian.org/intl/l10n/po-debconf/README-trans
# #
msgid "" msgid ""
msgstr "" msgstr ""

164
po/fi.po
View File

@ -1,22 +1,21 @@
# Finnish translation for whois. # Finnish translation for whois.
# Copyright (C) 2008- Sami Kerola <kerolasa@iki.fi> # Copyright (C) 2008- Sami Kerola <kerolasa@iki.fi>
# Copyright (C) 2022 Lauri Nurmi <lanurmi@iki.fi>
# #
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: whois 5.5.14\n" "Project-Id-Version: whois 5.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-29 11:48+0300\n" "POT-Creation-Date: 2022-01-03 17:52+0100\n"
"PO-Revision-Date: 2022-10-30 00:27+0300\n" "PO-Revision-Date: 2019-06-28 08:56+0100\n"
"Last-Translator: Lauri Nurmi <lanurmi@iki.fi>\n" "Last-Translator: Sami Kerola <kerolasa@iki.fi>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: fi\n" "Language: fi\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n" "Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Poedit 3.2\n" "X-Generator: Poedit 2.2.1\n"
#: ../whois.c:240 #: ../whois.c:240
#, c-format #, c-format
@ -31,17 +30,15 @@ msgstr ""
#: ../whois.c:329 #: ../whois.c:329
msgid "This TLD has no whois server, but you can access the whois database at" msgid "This TLD has no whois server, but you can access the whois database at"
msgstr "" msgstr "Tälla TLD:llä ei ole whois palvelinta, voit hakea tiedot osoitteesta"
"Tällä TLD:llä ei ole whois-palvelinta, mutta voit käyttää whois-tietokantaa "
"osoitteessa"
#: ../whois.c:334 #: ../whois.c:334
msgid "This TLD has no whois server." msgid "This TLD has no whois server."
msgstr "Tällä TLD:llä ei ole whois-palvelinta." msgstr "Tälla TLD:llä ei ole whois palvelinta."
#: ../whois.c:337 #: ../whois.c:337
msgid "No whois server is known for this kind of object." msgid "No whois server is known for this kind of object."
msgstr "Tällaiselle objektille ei ole tiedossa whois-palvelinta." msgstr "Mikään whois palvelu ei tiedä kysyttyä tietoa."
#: ../whois.c:340 #: ../whois.c:340
msgid "Unknown AS number or IP network. Please upgrade this program." msgid "Unknown AS number or IP network. Please upgrade this program."
@ -60,7 +57,7 @@ msgid ""
"\n" "\n"
msgstr "" msgstr ""
"\n" "\n"
"Kysellään IPv4-päätetepistettä %s 6to4-IPv6-osoitteelle.\n" "Kysytään IPv4 ulostuloa %s IPv6:n IPv4 avaruudesta.\n"
"\n" "\n"
#: ../whois.c:369 #: ../whois.c:369
@ -71,7 +68,7 @@ msgid ""
"\n" "\n"
msgstr "" msgstr ""
"\n" "\n"
"Kysellään IPv4-päätetepistettä %s Teredo-IPv6-osoitteelle.\n" "Kysytään IPv4 ulostuloa %s Teredo IPv6 tunneliosoitetta.\n"
"\n" "\n"
#: ../whois.c:406 #: ../whois.c:406
@ -80,7 +77,7 @@ msgid ""
"Query string: \"%s\"\n" "Query string: \"%s\"\n"
"\n" "\n"
msgstr "" msgstr ""
"Kysely: ”%s”\n" "Kysely: \"%s\"\n"
"\n" "\n"
#: ../whois.c:416 #: ../whois.c:416
@ -99,20 +96,19 @@ msgstr ""
#: ../whois.c:458 ../whois.c:461 #: ../whois.c:458 ../whois.c:461
#, c-format #, c-format
msgid "Cannot parse this line: %s" msgid "Cannot parse this line: %s"
msgstr "Tätä riviä ei voi jäsentää: %s" msgstr "Ohjelma ei ymmärrä riviä: %s"
#: ../whois.c:650 #: ../whois.c:650
msgid "Warning: RIPE flags used with a traditional server." msgid "Warning: RIPE flags used with a traditional server."
msgstr "Varoitus: RIPE-valitsimia käytetään perinteiseen palvelimeen." msgstr "Varoitus: käytät RIPE valitsimia perinteiseen palvelimeen."
#: ../whois.c:823 ../whois.c:939 #: ../whois.c:823 ../whois.c:939
msgid "" msgid ""
"Catastrophic error: disclaimer text has been changed.\n" "Catastrophic error: disclaimer text has been changed.\n"
"Please upgrade this program.\n" "Please upgrade this program.\n"
msgstr "" msgstr ""
"Katastrofaalinen virhe: vastuuvapauslausekkeen teksti\n" "Katastrofaalinen virhe: lisenssiteksti on muuttunut.\n"
"on muuttunut.\n" "Päivita ohjelma.\n"
"Päivitä tämä ohjelma.\n"
#: ../whois.c:1040 #: ../whois.c:1040
#, c-format #, c-format
@ -145,26 +141,24 @@ msgid ""
msgstr "" msgstr ""
"Käyttö: whois [VALITSIN]... OBJEKTI...\n" "Käyttö: whois [VALITSIN]... OBJEKTI...\n"
"\n" "\n"
"-h PALV, --host PALV ota yhteys PALVelimeen\n" "-h PALVELIN, --host PALVELIN ota yhteys PALVELIMEEN\n"
"-p PORT, --port PORT käytä PORTtia\n" "-p PORTTI, --port PORTTI käytä PORTTIA\n"
"-I kysele whois.iana.org:ilta ja seuraa viittausta\n" "-I ota yhteys whois.iana.org ja seuraa "
"-H piilota vastuuvapauslausekkeet\n" "viittausta\n"
"-H piilota ilmoitukset\n"
#: ../whois.c:1506 #: ../whois.c:1506
#, c-format #, fuzzy, c-format
msgid "" msgid ""
" --verbose explain what is being done\n" " --verbose explain what is being done\n"
" --no-recursion disable recursion from registry to registrar " " --no-recursion disable recursion from registry to registrar servers\n"
"servers\n"
" --help display this help and exit\n" " --help display this help and exit\n"
" --version output version information and exit\n" " --version output version information and exit\n"
"\n" "\n"
msgstr "" msgstr ""
" --verbose kerro mitä on tekeillä\n" " --verbose näytä mitä on tekeillä\n"
" --no-recursion älä käytä rekursiota rekisteristä\n" " --help näytä tämä teksti\n"
" verkkotunnusvälittäjän palvelimille\n" " --version näytä versio\n"
" --help näytä tämä ohje ja poistu\n"
" --version näytä versiotiedot ja poistu\n"
#: ../whois.c:1513 #: ../whois.c:1513
#, c-format #, c-format
@ -175,12 +169,11 @@ msgid ""
"-m find all one level more specific matches\n" "-m find all one level more specific matches\n"
"-M find all levels of more specific matches\n" "-M find all levels of more specific matches\n"
msgstr "" msgstr ""
"Seuraavat liput toimivat whois.ripe.net- ja joillakin RIPEn\n" "Seuraavat optiot ovat tuettuja whois.ripe.net palvelimella:\n"
"kaltaisilla palvelimilla:\n" "-l etsi välittömiä tietueita\n"
"-l etsi yhden tason vähemmän tarkka osuma\n" "-L etsi kaikkia vastaavia tietueita\n"
"-L etsi kaikkien tasojen vähemmän tarkat osumat\n" "-m etsi kaikki samantasoiset tai erityisemmät tietueet\n"
"-m etsi kaikki yhden tason tarkemmat osumat\n" "-M etsi kaikkien tasojen erityiset tietueet\n"
"-M etsi kaikkien tasojen tarkemmat osumat\n"
#: ../whois.c:1520 #: ../whois.c:1520
#, c-format #, c-format
@ -190,9 +183,9 @@ msgid ""
"-x exact match\n" "-x exact match\n"
"-b return brief IP address ranges with abuse contact\n" "-b return brief IP address ranges with abuse contact\n"
msgstr "" msgstr ""
"-c etsi vähin osuma, jolla on mnt-irt-attribuutti\n" "-c etsi vähin osuma joka liittyy mnt-irt atribuuttiin\n"
"-x täysosuma\n" "-x täysosuma\n"
"-b palauta lyhyesti IP-osoiteavaruudet ja abuse-tieto\n" "-b palauta lyhyt osoiteavaruus ja abuse-tietue\n"
#: ../whois.c:1525 #: ../whois.c:1525
#, c-format #, c-format
@ -201,9 +194,10 @@ msgid ""
"-G turn off grouping of associated objects\n" "-G turn off grouping of associated objects\n"
"-d return DNS reverse delegation objects too\n" "-d return DNS reverse delegation objects too\n"
msgstr "" msgstr ""
"-B poista objektisuodatus (näytä sähköpostiosoitteet)\n" "-B poista objektifiltteröinti (näytä "
"sähköpostiosoitteet)\n"
"-G poista objektien ryhmittely\n" "-G poista objektien ryhmittely\n"
"-d palauta myös DNS-delegointiobjektit\n" "-d näytä DNS delekointiobjektit\n"
#: ../whois.c:1530 #: ../whois.c:1530
#, c-format #, c-format
@ -213,10 +207,10 @@ msgid ""
"-K only primary keys are returned\n" "-K only primary keys are returned\n"
"-r turn off recursive look-ups for contact information\n" "-r turn off recursive look-ups for contact information\n"
msgstr "" msgstr ""
"-i ATTR[,ATTR]... tee käänteishaku käyttäen ATTRibuutteja\n" "-i ATTR[,ATTR]... tee käänteishaku käyttäen ATTRbuutteja\n"
"-T TYYP[,TYYP]... hae ainoastaan tietyn TYYPpisiä objekteja\n" "-T TYYP[,TYYP]... hae ainoastaan tietyn TYYPisiä objekteja\n"
"-K vain pääavaimet palautetaan\n" "-K palauta ainoastaan pääavain\n"
"-r älä käytä rekursiivisia hakuja yhteystiedoille\n" "-r älä käytä rekursiota kontaktitiedoille\n"
#: ../whois.c:1536 #: ../whois.c:1536
#, c-format #, c-format
@ -229,11 +223,10 @@ msgid ""
msgstr "" msgstr ""
"-R pakota näyttämään paikallinen objekti vaikka se\n" "-R pakota näyttämään paikallinen objekti vaikka se\n"
" sisältäisi viitteen\n" " sisältäisi viitteen\n"
"-a etsi myös kaikista peilatuista tietokannoista\n" "-a etsi myös tietokantakopioista\n"
"-s LÄHDE[,LÄHDE]... käytä LÄHTEestä peilattua tietokantaa\n" "-s KOP[,KOP]... käytä KOPioita\n"
"-g LÄHDE:ALKU-LOPPU hae päivityksiä LÄHTEestä sarjasta ALKU-LOPPU\n" "-g KOP:EKA-VIKA hae päivityksiä KOPioista sarjoista EKAsta VIKAaan\n"
# version|sources|types ovat kirjaimellisesti sitä mitä käyttäjän kuuluu syöttää, niitä ei saa suomentaa.
#: ../whois.c:1543 #: ../whois.c:1543
#, c-format #, c-format
msgid "" msgid ""
@ -241,85 +234,85 @@ msgid ""
"-v TYPE request verbose template for object of TYPE\n" "-v TYPE request verbose template for object of TYPE\n"
"-q [version|sources|types] query specified server info\n" "-q [version|sources|types] query specified server info\n"
msgstr "" msgstr ""
"-t TYYPPI hae malline TYYPPIä olevalle objektille\n" "-t TYYPPI hae mallinne objektille TYYPPI\n"
"-v TYYPPI hae laaja malline TYYPPIä olevalle objektille\n" "-v TYYPPI hae pitkämallinne objektille TYYPPI\n"
"-q [version|sources|types] kysele annettua palvelintietoa\n" "-q [versio|lähde|tyyppi] hae erityisiä palvelin tietoja\n"
#: ../mkpasswd.c:135 #: ../mkpasswd.c:135
msgid "BSDI extended DES-based crypt(3)" msgid "BSDI extended DES-based crypt(3)"
msgstr "BSDI-laajennettu DES-salaus, crypt(3)" msgstr "BSDI laajennettu DES-salaus, katso crypt(3)"
#: ../mkpasswd.c:138 #: ../mkpasswd.c:138
msgid "standard 56 bit DES-based crypt(3)" msgid "standard 56 bit DES-based crypt(3)"
msgstr "standardi 56-bittinen DES-salaus, crypt(3)" msgstr "standardi 56-bittinen DES-salaus katso crypt(3)"
#: ../mkpasswd.c:207 #: ../mkpasswd.c:207
#, c-format #, c-format
msgid "Invalid method '%s'.\n" msgid "Invalid method '%s'.\n"
msgstr "Kelvoton menetelmä ”%s”.\n" msgstr "Kelvoton metodi '%s'.\n"
#: ../mkpasswd.c:216 ../mkpasswd.c:228 #: ../mkpasswd.c:216 ../mkpasswd.c:228
#, c-format #, c-format
msgid "Invalid number '%s'.\n" msgid "Invalid number '%s'.\n"
msgstr "Kelvoton lukuarvo ”%s”.\n" msgstr "Kelvoton numero '%s'.\n"
#: ../mkpasswd.c:246 #: ../mkpasswd.c:246
#, c-format #, c-format
msgid "Try '%s --help' for more information.\n" msgid "Try '%s --help' for more information.\n"
msgstr "Komento ”%s --help” antaa lisää tietoa.\n" msgstr "Käytä valitsinta '%s --help' lisätietojen saamiseen.\n"
#: ../mkpasswd.c:302 #: ../mkpasswd.c:292
#, c-format #, c-format
msgid "Wrong salt length: %d byte when %d expected.\n" msgid "Wrong salt length: %d byte when %d expected.\n"
msgid_plural "Wrong salt length: %d bytes when %d expected.\n" msgid_plural "Wrong salt length: %d bytes when %d expected.\n"
msgstr[0] "Väärä suolan pituus: %d tavu, odotettiin %d.\n" msgstr[0] "Väärä suolan pituus: %d tavu, kun %d odotettiin.\n"
msgstr[1] "Väärä suolan pituus: %d tavua, odotettiin %d.\n" msgstr[1] "Väärä suolan pituus: %d tavua, kun %d odotettiin.\n"
#: ../mkpasswd.c:307 #: ../mkpasswd.c:297
#, c-format #, c-format
msgid "Wrong salt length: %d byte when %d <= n <= %d expected.\n" msgid "Wrong salt length: %d byte when %d <= n <= %d expected.\n"
msgid_plural "Wrong salt length: %d bytes when %d <= n <= %d expected.\n" msgid_plural "Wrong salt length: %d bytes when %d <= n <= %d expected.\n"
msgstr[0] "Väärä suolan pituus: %d tavu, odotettiin %d <= n <= %d.\n" msgstr[0] "Väärä suolan pituus: %d tavu, kun %d <= n <= %d odotettiin.\n"
msgstr[1] "Väärä suolan pituus: %d tavua, odotettiin kun %d <= n <= %d.\n" msgstr[1] "Väärä suolan pituus: %d tavua, kun %d <= n <= %d odotettiin.\n"
#: ../mkpasswd.c:316 #: ../mkpasswd.c:306
#, c-format #, c-format
msgid "Illegal salt character '%c'.\n" msgid "Illegal salt character '%c'.\n"
msgstr "Kielletty suolamerkki %c.\n" msgstr "Laiton merkki suolassa '%c'.\n"
#: ../mkpasswd.c:372 ../mkpasswd.c:385 #: ../mkpasswd.c:357 ../mkpasswd.c:370
#, c-format #, c-format
msgid "Password: " msgid "Password: "
msgstr "Salasana: " msgstr "Salasana: "
#: ../mkpasswd.c:404 #: ../mkpasswd.c:389
#, c-format #, c-format
msgid "Method not supported by crypt(3).\n" msgid "Method not supported by crypt(3).\n"
msgstr "crypt(3)-funktio ei tue menetelmää.\n" msgstr "Functio crypt(3) ei tue toimintoa.\n"
#: ../mkpasswd.c:512 #: ../mkpasswd.c:497
#, c-format #, c-format
msgid "" msgid ""
"Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]\n" "Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]\n"
"Crypts the PASSWORD using crypt(3).\n" "Crypts the PASSWORD using crypt(3).\n"
"\n" "\n"
msgstr "" msgstr ""
"Käyttö: mkpasswd [VALITSIMET] ... [SALASANA] [SUOLA]]\n" "Käyttö: mkpasswd [OPTIO] ... [SALASANA] [SUOLA]]\n"
"Salaa SALASANAn crypt(3)-funktiolla.\n" "Salaa SALASANA crypt(3) funktiolla.\n"
"\n" "\n"
#: ../mkpasswd.c:515 #: ../mkpasswd.c:500
#, c-format #, c-format
msgid "" msgid ""
" -m, --method=TYPE select method TYPE\n" " -m, --method=TYPE select method TYPE\n"
" -5 like --method=md5crypt\n" " -5 like --method=md5crypt\n"
" -S, --salt=SALT use the specified SALT\n" " -S, --salt=SALT use the specified SALT\n"
msgstr "" msgstr ""
" -m, --method=TYYPPI valitse menetelmä TYYPPI\n" " -m, --method=TYPE valitse toiminto TYPE\n"
" -5 sama kuin --method=md5crypt\n" " -5 sama kuin --method=md5crypt\n"
" -S, --salt=SUOLA suolan valinta\n" " -S, --salt=SUOLA suolan valinta\n"
#: ../mkpasswd.c:520 #: ../mkpasswd.c:505
#, c-format #, c-format
msgid "" msgid ""
" -R, --rounds=NUMBER use the specified NUMBER of rounds\n" " -R, --rounds=NUMBER use the specified NUMBER of rounds\n"
@ -327,12 +320,12 @@ msgid ""
" instead of /dev/tty\n" " instead of /dev/tty\n"
" -s, --stdin like --password-fd=0\n" " -s, --stdin like --password-fd=0\n"
msgstr "" msgstr ""
" -R, --rounds=MÄÄRÄ käytä annettua kierrosMÄÄRÄä\n" " -R, --rounds=NUMERO pyöristä numeroon\n"
" -P, --password-fd=NUM lue salasana tiedostokahvasta NUM\n" " -P, --password-fd=NUM lue salasana avoimesta tiedostosta NUM\n"
" eikä terminaalista /dev/tty\n" " äläkä terminaalista /dev/tty\n"
" -s, --stdin sama kuin --password-fd=0\n" " -s, --stdin sama kuin --password-fd=0\n"
#: ../mkpasswd.c:526 #: ../mkpasswd.c:511
#, c-format #, c-format
msgid "" msgid ""
" -h, --help display this help and exit\n" " -h, --help display this help and exit\n"
@ -344,17 +337,16 @@ msgid ""
"\n" "\n"
"Report bugs to %s.\n" "Report bugs to %s.\n"
msgstr "" msgstr ""
" -h, --help näytä tämä ohje ja poistu\n" " -h, --help tulosta tämä ruutu\n"
" -V, --version tulosta versiotiedot ja poistu\n" " -V, --version tulosta versio\n"
"\n" "\n"
"Jos SALASANA puuttuu, sitä kysytään vuorovaikutteisesti.\n" "Ellei salasanaa määritetä se kysytään.\n"
"Jos SUOLAa ei anneta, luodaan satunnainen.\n" "Ellei suolaa määritetä käytetään satunnaista.\n"
"Jos TYYPPI on ”help”, käytettävissä olevat menetelmät\n" "Jos tyyppi on 'help', tulostetaan toiminnot.\n"
"tulostetaan.\n"
"\n" "\n"
"Lähetä bugiraportit osoitteeseen %s.\n" "Lähetä bugiraportit osoitteeseen %s.\n"
#: ../mkpasswd.c:549 #: ../mkpasswd.c:534
#, c-format #, c-format
msgid "Available methods:\n" msgid "Available methods:\n"
msgstr "Käytettävissä olevat menetelmät:\n" msgstr "Käytettävissä olevat toiminnot:\n"

371
po/ka.po
View File

@ -1,371 +0,0 @@
# Georgian translation for whois.
# Copyright (C) 2022 whois authors
# This file is distributed under the same license as the whois package.
# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: whois\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-20 04:31+0200\n"
"PO-Revision-Date: 2022-10-20 05:41+0200\n"
"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n"
"Language-Team: \n"
"Language: ka\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.1.1\n"
#: ../whois.c:240
#, c-format
msgid ""
"Version %s.\n"
"\n"
"Report bugs to %s.\n"
msgstr ""
"ვერსია %s\n"
"\n"
"შეცდომები მიიწერეთ მისამართზე %s.\n"
#: ../whois.c:329
msgid "This TLD has no whois server, but you can access the whois database at"
msgstr ""
"ამ TLD-ს whois სერვერი არ გააჩნია. მაგრამ whois-ის ბაზასთან წვდომა გაქვთ "
"მისამართზე"
#: ../whois.c:334
msgid "This TLD has no whois server."
msgstr "ამ TLD-ს whois სერვერი არ გააჩნია."
#: ../whois.c:337
msgid "No whois server is known for this kind of object."
msgstr "ამ ტიპის ობიექტისთვის whois სერვერი ცნობილი არაა."
#: ../whois.c:340
msgid "Unknown AS number or IP network. Please upgrade this program."
msgstr "უცნობი AS რიცხვი ან IP ქსელი. განაახლეთ ეს პროგრამა."
#: ../whois.c:344 ../whois.c:353 ../whois.c:388 ../whois.c:405
#, c-format
msgid "Using server %s.\n"
msgstr "ვიყენებ სერვერს: %s.\n"
#: ../whois.c:362
#, c-format
msgid ""
"\n"
"Querying for the IPv4 endpoint %s of a 6to4 IPv6 address.\n"
"\n"
msgstr ""
"\n"
"6to4 IPv6 მისამართის IPv4 ბოლო წერტილის (%s) გამოთხოვა.\n"
"\n"
#: ../whois.c:369
#, c-format
msgid ""
"\n"
"Querying for the IPv4 endpoint %s of a Teredo IPv6 address.\n"
"\n"
msgstr ""
"\n"
"Teredo IPv6 მისამართის IPv4 ბოლო წერტილის (%s) გამოთხოვა.\n"
"\n"
#: ../whois.c:406
#, c-format
msgid ""
"Query string: \"%s\"\n"
"\n"
msgstr ""
"მოთხოვნის სტრიქონი: \"%s\"\n"
"\n"
#: ../whois.c:416
#, c-format
msgid ""
"\n"
"\n"
"Found a referral to %s.\n"
"\n"
msgstr ""
"\n"
"\n"
"ნაპოვნია მიმართვა %s-ზე.\n"
"\n"
#: ../whois.c:458 ../whois.c:461
#, c-format
msgid "Cannot parse this line: %s"
msgstr "ამ ხაზის დამუშავება შეუძლებელია: %s"
#: ../whois.c:650
msgid "Warning: RIPE flags used with a traditional server."
msgstr "გაფრთხილება. RIPE-ის ალმები ტრადიციულ სერვერთან ერთად გამოიყენება."
#: ../whois.c:823 ../whois.c:939
msgid ""
"Catastrophic error: disclaimer text has been changed.\n"
"Please upgrade this program.\n"
msgstr ""
"კატასტროფული შეცდომა: შეიცვალა პასუხისმგებლობების ტექსტი.\n"
"საჭიროა ამ პროგრამის განახლება.\n"
#: ../whois.c:1040
#, c-format
msgid "Host %s not found."
msgstr "ჰოსტი %s ვერ ვიპოვე."
#: ../whois.c:1050
#, c-format
msgid "%s/tcp: unknown service"
msgstr "%s/tcp: უცნობი სერვისი"
#: ../whois.c:1125
msgid "Timeout."
msgstr "ლოდინის ვადა გავიდა."
#: ../whois.c:1131
#, c-format
msgid "Interrupted by signal %d..."
msgstr "შეწყდა სიგნალით %d..."
#: ../whois.c:1499
#, c-format
msgid ""
"Usage: whois [OPTION]... OBJECT...\n"
"\n"
"-h HOST, --host HOST connect to server HOST\n"
"-p PORT, --port PORT connect to PORT\n"
"-I query whois.iana.org and follow its referral\n"
"-H hide legal disclaimers\n"
msgstr ""
"გამოყენება: whois [პარამეტრები]... ობიექტი...\n"
"\n"
"-h ჰოსტი, --host ჰოსტი მითითებულ ჰოსტთან მიერთება\n"
"-p პორტი, --port პორტი მითითებულ პორტზე მიერთება\n"
"-I whois.iana.org-ის მოთხოვნა და პასუხის მიყოლა\n"
"-H იურიდიული ტექსტების დამალვა\n"
#: ../whois.c:1506
#, c-format
msgid ""
" --verbose explain what is being done\n"
" --no-recursion disable recursion from registry to registrar "
"servers\n"
" --help display this help and exit\n"
" --version output version information and exit\n"
"\n"
msgstr ""
" --verbose ქმედებების ახსნა მიმდინარე დროში\n"
" --no-recursion რეკურსიის გამორთვა რეესტრის სერვერბს შორის\n"
" --help ამ დახმარების ჩვენება და გასვლა\n"
" --version ვერსიის ინფორმაციის გამოტანა და გასვლა\n"
"\n"
#: ../whois.c:1513
#, c-format
msgid ""
"These flags are supported by whois.ripe.net and some RIPE-like servers:\n"
"-l find the one level less specific match\n"
"-L find all levels less specific matches\n"
"-m find all one level more specific matches\n"
"-M find all levels of more specific matches\n"
msgstr ""
"ეს ალმები მხარდაჭერილია whois.ripe.net-ის და ზოგიერთი RIPE-ის მსგავსი "
"სერვერების მიერ:\n"
"-l ერთდონიანი მინიმალური ძებნა\n"
"-L ყველაფრის მოძებნა მინიმალური დამთხვევებით\n"
"-m მაქსიმალური მითითებული დამთხვევების პირველი დონის "
"მოძებნა\n"
"-M ყველაფრის მოძებნა მაქსიმალური დამთხვევებით\n"
#: ../whois.c:1520
#, c-format
msgid ""
"-c find the smallest match containing a mnt-irt "
"attribute\n"
"-x exact match\n"
"-b return brief IP address ranges with abuse contact\n"
msgstr ""
"-c mnt-irt ატრიბუტის შემცველი უმცირესი დამთხვევის "
"მოძებნა\n"
"-x ზუსტი დამთხვევა\n"
"-b კანონდარღვევს კონტაქტთან ერთად IP მისამართების "
"დიაპაზონების მოკლე სიის დაბრუნება\n"
#: ../whois.c:1525
#, c-format
msgid ""
"-B turn off object filtering (show email addresses)\n"
"-G turn off grouping of associated objects\n"
"-d return DNS reverse delegation objects too\n"
msgstr ""
"-B ობიექტების ფილტრაციის გამორთვა (ელფოსტის "
"მისამართების ჩვენება)\n"
"-G ასოცირებული ობიექტების დაჯგუფების გამორთვა\n"
"-d დაბრუნდება DNS სევერსის დელეგაციის ობექტებიც\n"
#: ../whois.c:1530
#, c-format
msgid ""
"-i ATTR[,ATTR]... do an inverse look-up for specified ATTRibutes\n"
"-T TYPE[,TYPE]... only look for objects of TYPE\n"
"-K only primary keys are returned\n"
"-r turn off recursive look-ups for contact information\n"
msgstr ""
"-i ATTR[,ATTR]... მითითებული ატრბუტების ინვერსიული ძებნა\n"
"-T TYPE[,TYPE]... მხოლოდ მითითებული ტიპის ობიექტების ძებნა\n"
"-K მხოლოდ ძირითადი გასაღებები დაბრუნდება\n"
"-r საკონტაქტო ინფორმაციის რეკურსიული ძებნის გამორთვა\n"
#: ../whois.c:1536
#, c-format
msgid ""
"-R force to show local copy of the domain object even\n"
" if it contains referral\n"
"-a also search all the mirrored databases\n"
"-s SOURCE[,SOURCE]... search the database mirrored from SOURCE\n"
"-g SOURCE:FIRST-LAST find updates from SOURCE from serial FIRST to LAST\n"
msgstr ""
"-R დომენის ობიექტის ლოკალური ასლის ჩვენება მაშინაც კი,\n"
" როცა ის ბმებს შეიცავს\n"
"-a ძებნა სარკულ ბაზებშიაც\n"
"-s SOURCE[,SOURCE]... მითითებული წყაროდან კოპირებულ ბაზაში ძებნა\n"
"-g SOURCE:FIRST-LAST განახლებების ძებნა წყაროდან სერიულად პირველიდან "
"ჩანაწერიდან, ბოლომდე\n"
#: ../whois.c:1543
#, c-format
msgid ""
"-t TYPE request template for object of TYPE\n"
"-v TYPE request verbose template for object of TYPE\n"
"-q [version|sources|types] query specified server info\n"
msgstr ""
"-t TYPE მითითებული ტიპის ობიექტისთვის შაბლონს მოთხოვნა\n"
"-v TYPE მითითებული ტიპის ობიექტისთვის დამატებითი შაბლონის "
"მოთხოვნა\n"
"-q [version(ვერსია)|sources(წყაროები)|types(ტიპები)] სერვერის მითითებული "
"ინფორმაციის მოთხოვნა\n"
#: ../mkpasswd.c:135
msgid "BSDI extended DES-based crypt(3)"
msgstr "BSDI გაფართოებული DES-ზე ბაზირებული crypt(3)"
#: ../mkpasswd.c:138
msgid "standard 56 bit DES-based crypt(3)"
msgstr "სტანდარტული 56 ბიტიანი DES-ზე ბაზირებული crypt(3)"
#: ../mkpasswd.c:207
#, c-format
msgid "Invalid method '%s'.\n"
msgstr "არასწორი მეტოდი '%s'.\n"
#: ../mkpasswd.c:216 ../mkpasswd.c:228
#, c-format
msgid "Invalid number '%s'.\n"
msgstr "არასწორი რიცხვი '%s'.\n"
#: ../mkpasswd.c:246
#, c-format
msgid "Try '%s --help' for more information.\n"
msgstr "მეტი ინფორმაციისთვის სცადეთ '%s --help'\n"
#: ../mkpasswd.c:302
#, c-format
msgid "Wrong salt length: %d byte when %d expected.\n"
msgid_plural "Wrong salt length: %d bytes when %d expected.\n"
msgstr[0] ""
"მარილის არასწორი სიგრძე: %d ბაიტი მაშინ, როცა მოსალოდნელი იყო %d ბაიტი.\n"
msgstr[1] ""
"მარილის არასწორი სიგრძე: %d ბაიტი მაშინ, როცა მოსალოდნელი იყო %d ბაიტი.\n"
#: ../mkpasswd.c:307
#, c-format
msgid "Wrong salt length: %d byte when %d <= n <= %d expected.\n"
msgid_plural "Wrong salt length: %d bytes when %d <= n <= %d expected.\n"
msgstr[0] ""
"მარილის არასწორი სიგრძე: %d ბაიტი მაშინ, როცა მოსალოდნელი იყო %d <= n <= %d "
"ბაიტი.\n"
msgstr[1] ""
"მარილის არასწორი სიგრძე: %d ბაიტი მაშინ, როცა მოსალოდნელი იყო %d <= n <= %d "
"ბაიტი.\n"
#: ../mkpasswd.c:316
#, c-format
msgid "Illegal salt character '%c'.\n"
msgstr "მარილიას დაუშვებელი სიმბოლო: '%c'.\n"
#: ../mkpasswd.c:372 ../mkpasswd.c:385
#, c-format
msgid "Password: "
msgstr "პაროლი: "
#: ../mkpasswd.c:404
#, c-format
msgid "Method not supported by crypt(3).\n"
msgstr "მეთოდი crypt(3)-ის მიერ მხარდაუჭერელია.\n"
#: ../mkpasswd.c:512
#, c-format
msgid ""
"Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]\n"
"Crypts the PASSWORD using crypt(3).\n"
"\n"
msgstr ""
"გამოყენება: mkpasswd [პარამეტრები]... [პაროლი [მარილი]]\n"
"მითითებული პაროლის crypt(3)-ით დაშიფვრა.\n"
"\n"
#: ../mkpasswd.c:515
#, c-format
msgid ""
" -m, --method=TYPE select method TYPE\n"
" -5 like --method=md5crypt\n"
" -S, --salt=SALT use the specified SALT\n"
msgstr ""
" -m, --method=ტიპი მითითებული ტიპის მეთოდის გამოყენება\n"
" -5 იგივე, რაც --method=md5crypt\n"
" -S, --salt=მარილი მითითებული მარილის გამოყენება\n"
#: ../mkpasswd.c:520
#, c-format
msgid ""
" -R, --rounds=NUMBER use the specified NUMBER of rounds\n"
" -P, --password-fd=NUM read the password from file descriptor NUM\n"
" instead of /dev/tty\n"
" -s, --stdin like --password-fd=0\n"
msgstr ""
" -R, --rounds=რიცხვი მითითებული რაოდენობის რაუნდების გამოყენება\n"
" -P, --password-fd=რცხვ პაროლების /dev/tty-ის მაგიერ მითითებული "
"ფაილის\n"
" დესკრიპტორიდან წაკითხვა\n"
" -s, --stdin იგივე, რაც --password-fd=0\n"
#: ../mkpasswd.c:526
#, c-format
msgid ""
" -h, --help display this help and exit\n"
" -V, --version output version information and exit\n"
"\n"
"If PASSWORD is missing then it is asked interactively.\n"
"If no SALT is specified, a random one is generated.\n"
"If TYPE is 'help', available methods are printed.\n"
"\n"
"Report bugs to %s.\n"
msgstr ""
" -h, --help ამ დახმარების გამოტანა და გასვლა\n"
" -V, --version ვერსიის ინფორმაციის გამოტანა და გასვლა\n"
"\n"
"თუ პაროლი მითითებული არაა, მას ინტერაქტიურად გკითხავთ.\n"
"თუ მარილი მითითებული არაა, ის შემთხვევითობის წესით დაგენერირდება.\n"
" თუ ტიპი 'help'-ა, ეკრანზე იქნება ნაჩვენები ხელმისაწვდომი მეთოდები.\n"
"\n"
"შეცდომების შესახებ მიწერეთ: %s.\n"
#: ../mkpasswd.c:549
#, c-format
msgid "Available methods:\n"
msgstr "ხელმისაწვდომი მეთოდები:\n"

View File

@ -1,14 +1,14 @@
# Polish translation for whois. # Polish translation for whois.
# Michał 'CeFeK' Nazarewicz <cefek@career.pl>, 1999 # Michał 'CeFeK' Nazarewicz <cefek@career.pl>, 1999
# Przemysław Knycz <djrzulf@pld.org.pl>, 2003 # Przemysław Knycz <djrzulf@pld.org.pl>, 2003
# Jakub Bogusz <qboosh@pld-linux.org>, 2003-2023 # Jakub Bogusz <qboosh@pld-linux.org>, 2003-2019
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: whois 5.5.18\n" "Project-Id-Version: whois 5.5.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-03 17:52+0100\n" "POT-Creation-Date: 2022-01-03 17:52+0100\n"
"PO-Revision-Date: 2023-10-05 21:30+0200\n" "PO-Revision-Date: 2019-08-28 18:02+0200\n"
"Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n" "Last-Translator: Jakub Bogusz <qboosh@pld-linux.org>\n"
"Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n" "Language-Team: Polish <translation-team-pl@lists.sourceforge.net>\n"
"Language: pl\n" "Language: pl\n"
@ -149,7 +149,7 @@ msgstr ""
"-H ukrycie oświadczeń prawnych\n" "-H ukrycie oświadczeń prawnych\n"
#: ../whois.c:1506 #: ../whois.c:1506
#, c-format #, fuzzy, c-format
msgid "" msgid ""
" --verbose explain what is being done\n" " --verbose explain what is being done\n"
" --no-recursion disable recursion from registry to registrar servers\n" " --no-recursion disable recursion from registry to registrar servers\n"
@ -158,7 +158,6 @@ msgid ""
"\n" "\n"
msgstr "" msgstr ""
" --verbose wyjaśnianie, co się dzieje\n" " --verbose wyjaśnianie, co się dzieje\n"
" --no-recursion wyłączenie rekurencji z serwerów rejestru do rejestratorów\n"
" --help wyświetlenie tego opisu i zakończenie działania\n" " --help wyświetlenie tego opisu i zakończenie działania\n"
" --version wyświetlenie informacji o wersji i zakończenie " " --version wyświetlenie informacji o wersji i zakończenie "
"działania\n" "działania\n"

357
po/tr.po
View File

@ -1,357 +0,0 @@
# translation of whois to Turkish
# Copyright (C) 2022
# This file is distributed under the same license as the whois package.
# Oğuz Ersen <oguz@ersen.moe>, 2022.
#
msgid ""
msgstr ""
"Project-Id-Version: whois\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-04-01 22:10+0300\n"
"PO-Revision-Date: 2022-04-01 23:06+0300\n"
"Last-Translator: Oğuz Ersen <oguz@ersen.moe>\n"
"Language-Team: \n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
#: ../whois.c:240
#, c-format
msgid ""
"Version %s.\n"
"\n"
"Report bugs to %s.\n"
msgstr ""
"Sürüm %s.\n"
"\n"
"Hataları %s adresine bildirin.\n"
#: ../whois.c:329
msgid "This TLD has no whois server, but you can access the whois database at"
msgstr ""
"Bu TLD'nin whois sunucusu yok, ancak whois veri tabanına şu adresten "
"erişebilirsiniz"
#: ../whois.c:334
msgid "This TLD has no whois server."
msgstr "Bu TLD'nin whois sunucusu yok."
#: ../whois.c:337
msgid "No whois server is known for this kind of object."
msgstr "Bu tür nesneler için bilinen bir whois sunucusu yok."
#: ../whois.c:340
msgid "Unknown AS number or IP network. Please upgrade this program."
msgstr "Bilinmeyen AS numarası veya IP ağı. Lütfen bu programı güncelleyin."
#: ../whois.c:344 ../whois.c:353 ../whois.c:388 ../whois.c:405
#, c-format
msgid "Using server %s.\n"
msgstr "%s sunucusu kullanılıyor.\n"
#: ../whois.c:362
#, c-format
msgid ""
"\n"
"Querying for the IPv4 endpoint %s of a 6to4 IPv6 address.\n"
"\n"
msgstr ""
"\n"
"6to4 IPv6 adresinin IPv4 uç noktası %s sorgulanıyor.\n"
"\n"
#: ../whois.c:369
#, c-format
msgid ""
"\n"
"Querying for the IPv4 endpoint %s of a Teredo IPv6 address.\n"
"\n"
msgstr ""
"\n"
"Teredo IPv6 adresinin IPv4 uç noktası %s sorgulanıyor.\n"
"\n"
#: ../whois.c:406
#, c-format
msgid ""
"Query string: \"%s\"\n"
"\n"
msgstr ""
"Sorgu dizgesi: \"%s\"\n"
"\n"
#: ../whois.c:416
#, c-format
msgid ""
"\n"
"\n"
"Found a referral to %s.\n"
"\n"
msgstr ""
"\n"
"\n"
"%s için bir yönlendirme bulundu.\n"
"\n"
#: ../whois.c:458 ../whois.c:461
#, c-format
msgid "Cannot parse this line: %s"
msgstr "Bu satır ayrıştırılamıyor: %s"
#: ../whois.c:650
msgid "Warning: RIPE flags used with a traditional server."
msgstr "Uyarı: Geleneksel bir sunucuyla RIPE bayrakları kullanıldı."
#: ../whois.c:823 ../whois.c:939
msgid ""
"Catastrophic error: disclaimer text has been changed.\n"
"Please upgrade this program.\n"
msgstr ""
"Önemli hata: sorumluluk reddi metni değiştirildi.\n"
"Lütfen bu programı güncelleyin.\n"
#: ../whois.c:1040
#, c-format
msgid "Host %s not found."
msgstr "%s sunucusu bulunamadı."
#: ../whois.c:1050
#, c-format
msgid "%s/tcp: unknown service"
msgstr "%s/tcp: bilinmeyen hizmet"
#: ../whois.c:1125
msgid "Timeout."
msgstr "Zaman aşımı."
#: ../whois.c:1131
#, c-format
msgid "Interrupted by signal %d..."
msgstr "%d sinyali tarafından kesildi..."
#: ../whois.c:1499
#, c-format
msgid ""
"Usage: whois [OPTION]... OBJECT...\n"
"\n"
"-h HOST, --host HOST connect to server HOST\n"
"-p PORT, --port PORT connect to PORT\n"
"-I query whois.iana.org and follow its referral\n"
"-H hide legal disclaimers\n"
msgstr ""
"Kullanım: whois [SEÇENEK]... NESNE...\n"
"\n"
"-h HOST, --host HOST HOST sunucusuna bağlan\n"
"-p PORT, --port PORT PORT bağlantı noktasına bağlan\n"
"-I whois.iana.org'u sorgula ve yönlendirmesini takip et\n"
"-H yasal uyarıları gizle\n"
#: ../whois.c:1506
#, c-format
msgid ""
" --verbose explain what is being done\n"
" --no-recursion disable recursion from registry to registrar servers\n"
" --help display this help and exit\n"
" --version output version information and exit\n"
"\n"
msgstr ""
" --verbose ne yapıldığınııkla\n"
" --no-recursion kayıt defterinden kayıt sunucularına özyinelemeyi "
"devre dışı bırak\n"
" --help bu yardımı görüntüle ve çık\n"
" --version sürüm bilgisini yazdır ve çık\n"
"\n"
#: ../whois.c:1513
#, c-format
msgid ""
"These flags are supported by whois.ripe.net and some RIPE-like servers:\n"
"-l find the one level less specific match\n"
"-L find all levels less specific matches\n"
"-m find all one level more specific matches\n"
"-M find all levels of more specific matches\n"
msgstr ""
"Bu bayraklar whois.ripe.net ve bazı RIPE benzeri sunucular tarafından "
"desteklenmektedir:\n"
"-l bir seviye daha az özel eşleşmeyi bul\n"
"-L tüm seviyelerde daha az özel eşleşmeleri bul\n"
"-m tüm bir seviye daha özel eşleşmeleri bul\n"
"-M tüm seviyelerde daha özel eşleşmeleri bul\n"
#: ../whois.c:1520
#, c-format
msgid ""
"-c find the smallest match containing a mnt-irt "
"attribute\n"
"-x exact match\n"
"-b return brief IP address ranges with abuse contact\n"
msgstr ""
"-c mnt-irt özniteliği içeren en küçük eşleşmeyi bul\n"
"-x tam olarak eşleş\n"
"-b kötüye kullanım irtibatıyla kısa IP adresi "
"aralıklarını döndür\n"
#: ../whois.c:1525
#, c-format
msgid ""
"-B turn off object filtering (show email addresses)\n"
"-G turn off grouping of associated objects\n"
"-d return DNS reverse delegation objects too\n"
msgstr ""
"-B nesne filtrelemeyi kapat (e-posta adreslerini "
"göster)\n"
"-G ilişkili nesnelerin gruplandırılmasını kapat\n"
"-d DNS ters yetki nesnelerini de döndür\n"
#: ../whois.c:1530
#, c-format
msgid ""
"-i ATTR[,ATTR]... do an inverse look-up for specified ATTRibutes\n"
"-T TYPE[,TYPE]... only look for objects of TYPE\n"
"-K only primary keys are returned\n"
"-r turn off recursive look-ups for contact information\n"
msgstr ""
"-i ÖZNİ[,ÖZNİ]... belirtilen ÖZNİtelikler için ters arama yap\n"
"-T TÜR[,TÜR]... yalnızca TÜR nesnelerini ara\n"
"-K yalnızca birincil anahtarları döndür\n"
"-r iletişim bilgileri için özyinelemeli aramaları kapat\n"
#: ../whois.c:1536
#, c-format
msgid ""
"-R force to show local copy of the domain object even\n"
" if it contains referral\n"
"-a also search all the mirrored databases\n"
"-s SOURCE[,SOURCE]... search the database mirrored from SOURCE\n"
"-g SOURCE:FIRST-LAST find updates from SOURCE from serial FIRST to LAST\n"
msgstr ""
"-R yönlendirme içerse bile etki alanı nesnesinin yerel\n"
" kopyasını göstermeye zorla\n"
"-a ayrıca tüm yansıtılmış veri tabanlarında arama yap\n"
"-s KAYNAK[,KAYNAK]... KAYNAK'tan yansıtılan veri tabanında arama yap\n"
"-g KAYNAK:İLK-SON KAYNAK'tan İLK'ten SON'a kadar olan güncellemeleri "
"bul\n"
#: ../whois.c:1543
#, c-format
msgid ""
"-t TYPE request template for object of TYPE\n"
"-v TYPE request verbose template for object of TYPE\n"
"-q [version|sources|types] query specified server info\n"
msgstr ""
"-t TÜR TÜR nesnesi için şablon iste\n"
"-v TÜR TÜR nesnesi için ayrıntılı şablon iste\n"
"-q [version|sources|types] belirtilen sunucu bilgilerini sorgula\n"
#: ../mkpasswd.c:135
msgid "BSDI extended DES-based crypt(3)"
msgstr "BSDI genişletilmiş DES tabanlı crypt(3)"
#: ../mkpasswd.c:138
msgid "standard 56 bit DES-based crypt(3)"
msgstr "standart 56 bit DES tabanlı crypt(3)"
#: ../mkpasswd.c:207
#, c-format
msgid "Invalid method '%s'.\n"
msgstr "Geçersiz yöntem '%s'.\n"
#: ../mkpasswd.c:216 ../mkpasswd.c:228
#, c-format
msgid "Invalid number '%s'.\n"
msgstr "Geçersiz sayı '%s'.\n"
#: ../mkpasswd.c:246
#, c-format
msgid "Try '%s --help' for more information.\n"
msgstr "Daha fazla bilgi için '%s --help' komutunu deneyin.\n"
#: ../mkpasswd.c:302
#, c-format
msgid "Wrong salt length: %d byte when %d expected.\n"
msgid_plural "Wrong salt length: %d bytes when %d expected.\n"
msgstr[0] "Yanlış salt uzunluğu: %d bayt, beklenen: %d.\n"
#: ../mkpasswd.c:307
#, c-format
msgid "Wrong salt length: %d byte when %d <= n <= %d expected.\n"
msgid_plural "Wrong salt length: %d bytes when %d <= n <= %d expected.\n"
msgstr[0] "Yanlış salt uzunluğu: %d bayt, beklenen: %d <= n <= %d.\n"
#: ../mkpasswd.c:316
#, c-format
msgid "Illegal salt character '%c'.\n"
msgstr "Geçersiz salt karakteri '%c'.\n"
#: ../mkpasswd.c:372 ../mkpasswd.c:385
#, c-format
msgid "Password: "
msgstr "Parola: "
#: ../mkpasswd.c:404
#, c-format
msgid "Method not supported by crypt(3).\n"
msgstr "Yöntem crypt(3) tarafından desteklenmiyor.\n"
#: ../mkpasswd.c:512
#, c-format
msgid ""
"Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]\n"
"Crypts the PASSWORD using crypt(3).\n"
"\n"
msgstr ""
"Kullanım: mkpasswd [SEÇENEKLER]... [PAROLA [SALT]]\n"
"PAROLA değerini crypt(3) kullanarak şifreler.\n"
"\n"
#: ../mkpasswd.c:515
#, c-format
msgid ""
" -m, --method=TYPE select method TYPE\n"
" -5 like --method=md5crypt\n"
" -S, --salt=SALT use the specified SALT\n"
msgstr ""
" -m, --method=TÜR TÜR yöntemini seç\n"
" -5 --method=md5crypt ile aynı\n"
" -S, --salt=SALT belirtilen SALT değerini kullan\n"
#: ../mkpasswd.c:520
#, c-format
msgid ""
" -R, --rounds=NUMBER use the specified NUMBER of rounds\n"
" -P, --password-fd=NUM read the password from file descriptor NUM\n"
" instead of /dev/tty\n"
" -s, --stdin like --password-fd=0\n"
msgstr ""
" -R, --rounds=SAYI belirtilen SAYI kadar tur kullan\n"
" -P, --password-fd=NUM parolayı /dev/tty yerine NUM dosya\n"
" tanıtıcısından oku\n"
" -s, --stdin --password-fd=0 ile aynı\n"
#: ../mkpasswd.c:526
#, c-format
msgid ""
" -h, --help display this help and exit\n"
" -V, --version output version information and exit\n"
"\n"
"If PASSWORD is missing then it is asked interactively.\n"
"If no SALT is specified, a random one is generated.\n"
"If TYPE is 'help', available methods are printed.\n"
"\n"
"Report bugs to %s.\n"
msgstr ""
" -h, --help bu yardımı görüntüle ve çık\n"
" -V, --version sürüm bilgisini yazdır ve çık\n"
"\n"
"PAROLA eksikse etkileşimli olarak sorulur.\n"
"SALT belirtilmezse, rastgele bir tane oluşturulur.\n"
"TÜR 'help' ise kullanılabilir yöntemler yazdırılır.\n"
"\n"
"Hataları %s adresine bildirin.\n"
#: ../mkpasswd.c:549
#, c-format
msgid "Available methods:\n"
msgstr "Kullanılabilir yöntemler:\n"

90
ripe-mail Normal file
View File

@ -0,0 +1,90 @@
From ripe-dbm@ripe.net Mon Jan 27 10:09:59 2003
Return-Path: <ripe-dbm@ripe.net>
Delivered-To: md@wonderland.linux.it
Received: from attila.bofh.it (localhost [127.0.0.1])
by wonderland.linux.it (Postfix/Md) with ESMTP id 582BA33CD5
for <md@wonderland.linux.it>; Mon, 27 Jan 2003 10:09:59 +0100 (CET)
Received: from picard.linux.it (picard.linux.it [::ffff:62.177.1.107])
by attila.bofh.it (Postfix) with ESMTP id 46AE15F966
for <md@wonderland.linux.it>; Mon, 27 Jan 2003 09:03:25 +0100 (CET)
Received: from birch.ripe.net (birch.ripe.net [::ffff:193.0.1.96])
by picard.linux.it (Postfix) with ESMTP id 4A76942B2
for <md@Linux.IT>; Mon, 27 Jan 2003 09:05:01 +0100 (CET)
Received: from x24.ripe.net (x24.ripe.net [193.0.1.24])
by birch.ripe.net (8.12.5/8.11.6) with ESMTP id h0R83NAq030231;
Mon, 27 Jan 2003 09:03:23 +0100
Received: (from ripe-dbm@localhost)
by x24.ripe.net (8.12.4/8.12.6) id h0R83M5k002263;
Mon, 27 Jan 2003 09:03:22 +0100
Message-Id: <200301270803.h0R83M5k002263@x24.ripe.net>
From: RIPE Database Administration <ripe-dbm@ripe.net>
Cc: Can Bican <can@ripe.net>
To: md@Linux.IT
FCC: cur
Subject: Re: NCC#2003013332 Re: [db-wg] IPv6 Whois update
Reply-To: ripe-dbm@ripe.net
X-Organization: RIPE Network Coordination Centre
X-Phone: +31 20 535 4444
X-Fax: +31 20 535 4341
X-Mailer: BaT/0.67
Sender: RIPE Database Manager <ripe-dbm@ripe.net>
Date: Mon, 27 Jan 2003 09:03:21 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, hits=0.6 required=5.0
tests=DEAR_SOMEBODY,QUOTED_EMAIL_TEXT,SIGNATURE_SHORT_DENSE,
SPAM_PHRASE_05_08
version=2.43
X-Spam-Level:
Status: RO
Content-Length: 1239
Lines: 46
Dear Marco d'Itri,
For the month October, 2002:
We had 55 milion queries, 4.3 milion done with your client.
This number is probably not the best indicator as some IPs do a lot of
queries so here are also the statistics for different IP addresses using
your client:
31364 (of 853385) different IP addresses used your client.
If you have any more questions, please contact <ripe-dbm@ripe.net>.
Regards,
Tiago Antao
____________________________
RIPE Database Administration.
Original message follows:
------------------------
On Thursday 23 January 2003 18:52, Marco d'Itri wrote:
> On Jan 23, Can Bican <can@ripe.net> wrote:
> >This is a feature we supported, and we'll keep supporting it. It's a
> > mistake on our side that we'll change promptly, so please don't change
> > the behaviour. We'll make the proxy accept -V switches of these types.
>
> Thank you for your prompt reply.
> BTW, is any statistics about -V arguments available? I wonder how many
> queries are made with my client (i.e. the -V argument matches /^Md/).
I have forwarded your request to ripe-dbm@ripe.net. You can contact that
address if you'd like more/less specific requirements about the counts.
Regards,
--
Can Bican
DB Group
RIPE NCC

View File

@ -1,6 +1,4 @@
# server name encoding optional parameters # server name charset optional parameters
whois.afrinic.net utf-8
whois.apnic.net iso-8859-1
whois.cat utf-8 -C UTF-8 whois.cat utf-8 -C UTF-8
whois.conac.cn utf-8 whois.conac.cn utf-8
whois.corenic.net utf-8 -C UTF-8 whois.corenic.net utf-8 -C UTF-8
@ -8,11 +6,7 @@ whois.online.rs.corenic.net utf-8 -C UTF-8
whois.site.rs.corenic.net utf-8 -C UTF-8 whois.site.rs.corenic.net utf-8 -C UTF-8
whois.lacnic.net utf-8 whois.lacnic.net utf-8
whois.museum utf-8 -C UTF-8 whois.museum utf-8 -C UTF-8
whois.ripe.net utf-8 --charset UTF-8 whois.ripe.net iso-8859-1
whois.nic.llyw.cymru utf-8
whois.nic.gov.scot utf-8
whois.nic.gov.wales utf-8
whois.aeda.net.ae utf-8 whois.aeda.net.ae utf-8
whois.nic.ar utf-8 whois.nic.ar utf-8
@ -22,11 +16,11 @@ whois.cira.ca utf-8
whois.nic.ch utf-8 whois.nic.ch utf-8
whois.nic.cl utf-8 whois.nic.cl utf-8
whois.cnnic.cn utf-8 whois.cnnic.cn utf-8
cwhois.cnnic.cn utf-8
whois.nic.cz utf-8 whois.nic.cz utf-8
whois.denic.de utf-8 whois.denic.de utf-8
whois.enum.denic.de utf-8 whois.enum.denic.de utf-8
whois.dk-hostmaster.dk utf-8 --charset=utf-8 whois.dk-hostmaster.dk utf-8 --charset=utf-8
whois.punktum.dk utf-8 --charset=utf-8
whois.tld.ee utf-8 whois.tld.ee utf-8
whois.eu utf-8 whois.eu utf-8
whois.fi iso-8859-1 whois.fi iso-8859-1
@ -38,9 +32,9 @@ whois.nic.hu iso-8859-1
whois.nic.ir utf-8 whois.nic.ir utf-8
whois.isnic.is iso-8859-1 whois.isnic.is iso-8859-1
whois.nic.it utf-8 whois.nic.it utf-8
whois.jprs.jp utf-8 whois.jprs.jp iso-2022-jp
whois.nic.ad.jp iso-2022-jp whois.nic.ad.jp iso-2022-jp
whois.kg cp1251 whois.domain.kg cp1251
whois.nic.or.kr utf-8 whois.nic.or.kr utf-8
whois.kr utf-8 whois.kr utf-8
whois.nic.kz utf-8 whois.nic.kz utf-8
@ -63,10 +57,8 @@ whois.sgnic.sg utf-8
whois.tld.sy utf-8 whois.tld.sy utf-8
whois.thains.co.th utf-8 whois.thains.co.th utf-8
whois.ati.tn utf-8 whois.ati.tn utf-8
whois.trabis.gov.tr utf-8 whois.nic.tr iso-8859-9
whois.twnic.net.tw utf-8 whois.twnic.net.tw utf-8
whois.nic.ac.uk utf-8
whois.gov.uk utf-8
whois.biz.ua utf-8 whois.biz.ua utf-8
whois.co.ua utf-8 whois.co.ua utf-8
whois.pp.ua utf-8 whois.pp.ua utf-8

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) by Marco d'Itri <md@linux.it>. * Copyright 2009 by Marco d'Itri <md@linux.it>.
* *
* simple_recode was inspired by a similar function found in Simon * simple_recode was inspired by a similar function found in Simon
* Josefsson's libidn. * Josefsson's libidn.
@ -15,9 +15,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, see <https://www.gnu.org/licenses/>. * with this program; if not, write to the Free Software Foundation, Inc.,
* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: GPL-2.0-or-later
*/ */
#include <stdlib.h> #include <stdlib.h>
@ -73,7 +72,7 @@ char *simple_recode(const iconv_t handle, const char *str)
size_t err = iconv(handle, &inp, &inbytes_remaining, &outp, size_t err = iconv(handle, &inp, &inbytes_remaining, &outp,
&outbytes_remaining); &outbytes_remaining);
if (err != (size_t) -1) if (err != -1)
break; /* success */ break; /* success */
switch (errno) { switch (errno) {

View File

@ -1,4 +1,3 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SIMPLE_RECODE_H #ifndef SIMPLE_RECODE_H
#define SIMPLE_RECODE_H #define SIMPLE_RECODE_H

View File

@ -1,4 +1,4 @@
# https://www.iana.org/domains/root/db/ # http://www.iana.org/domains/root/db/
# #
# Domain names MUST be lowercase and MUST begin with "." or "-". # Domain names MUST be lowercase and MUST begin with "." or "-".
# First match wins. # First match wins.
@ -37,15 +37,8 @@
.za.org whois.za.org .za.org whois.za.org
.org whois.pir.org .org whois.pir.org
# Technically these are SLDs of new gTLDs (hence listed in new_gtlds_list),
# but the registrar (JISC) asked to add the servers for these
# government-related domains.
.llyw.cymru whois.nic.llyw.cymru
.gov.scot whois.nic.gov.scot
.gov.wales whois.nic.gov.wales
.edu whois.educause.edu .edu whois.educause.edu
.gov whois.nic.gov .gov whois.dotgov.gov
.int whois.iana.org .int whois.iana.org
.mil NONE .mil NONE
@ -59,26 +52,26 @@
.biz whois.nic.biz .biz whois.nic.biz
.cat whois.nic.cat .cat whois.nic.cat
.coop whois.nic.coop .coop whois.nic.coop
.info NONE .info whois.afilias.net
.jobs NONE .jobs whois.nic.jobs
.mobi NONE .mobi whois.afilias.net
.museum whois.nic.museum .museum whois.nic.museum
.name whois.nic.name .name whois.nic.name
.post whois.nic.post .post whois.dotpostregistry.net
.pro NONE .pro whois.nic.pro
.tel whois.nic.tel .tel whois.nic.tel
.travel NONE .travel whois.nic.travel
.xxx whois.nic.xxx .xxx whois.nic.xxx
.ac whois.nic.ac .ac whois.nic.ac
.ad whois.nic.ad .ad NONE # www.nic.ad
.ae whois.aeda.net.ae .ae whois.aeda.net.ae
.af whois.nic.af .af whois.nic.af
.ag whois.nic.ag .ag whois.nic.ag
.ai whois.nic.ai .ai whois.nic.ai
.al NONE # www.akep.al .al NONE # www.akep.al
.am whois.amnic.net .am whois.amnic.net
.ao WEB https://www.dns.ao/ao/whois/ # www.dns.ao .ao WEB https://www.dns.ao/ao/gca/index.php?id=19 # www.dns.ao
.aq NONE # 2day.com .aq NONE # 2day.com
.ar whois.nic.ar .ar whois.nic.ar
.as whois.nic.as .as whois.nic.as
@ -88,18 +81,18 @@
.aw whois.nic.aw .aw whois.nic.aw
.ax whois.ax # www.ax .ax whois.ax # www.ax
.gov.az WEB https://www.gov.az/ .gov.az WEB https://www.gov.az/
.az WEB https://whois.az/ .az WEB http://whois.az/
.ba WEB https://nic.ba/ .ba WEB http://www.nic.ba/stream/whois/
.bb WEB https://whois.telecoms.gov.bb/ .bb WEB http://whois.telecoms.gov.bb/search_domain.php
.bd WEB https://bdia.btcl.com.bd/ .bd WEB http://www.registry.com.bd/whois.php
.be whois.dns.be .be whois.dns.be
.bf whois.registre.bf # http://www.arcep.bf/noms-de-domaine/ .bf NONE # http://www.arce.bf/ http://www.onatel.bf/internet/domaine.htm
.bg whois.register.bg .bg whois.register.bg
.bh whois.nic.bh .bh whois.nic.bh
.bi whois1.nic.bi .bi whois1.nic.bi
.bj whois.nic.bj .bj whois.nic.bj
#.bl #.bl
.bm whois.nic.bm .bm whois.afilias-srs.net
.bn whois.bnnic.bn .bn whois.bnnic.bn
.bo whois.nic.bo .bo whois.nic.bo
#.bq #.bq
@ -109,67 +102,67 @@
.bv NONE # http://www.norid.no/domenenavnbaser/bv-sj.html .bv NONE # http://www.norid.no/domenenavnbaser/bv-sj.html
.by whois.cctld.by .by whois.cctld.by
.bw whois.nic.net.bw .bw whois.nic.net.bw
.bz RECURSIVE whois.identitydigital.services .bz AFILIAS
.co.ca whois.co.ca .co.ca whois.co.ca
.ca whois.cira.ca .ca whois.cira.ca
.cc VERISIGN ccwhois.verisign-grs.com .cc VERISIGN ccwhois.verisign-grs.com
.cd whois.nic.cd .cd NONE
.cf NONE .cf NONE
.cg NONE # www.nic.cg .cg NONE # www.nic.cg
.ch whois.nic.ch .ch whois.nic.ch
.ci whois.nic.ci .ci whois.nic.ci
.ck NONE .ck NONE
.cl whois.nic.cl .cl whois.nic.cl
.cm whois.nic.cm .cm whois.netcom.cm
.edu.cn whois.edu.cn .edu.cn whois.edu.cn
.cn whois.cnnic.cn .cn whois.cnnic.cn
.uk.co whois.uk.co .uk.co whois.uk.co
.co whois.registry.co .co whois.nic.co
.cr whois.nic.cr .cr whois.nic.cr
.cu WEB https://www.nic.cu/ .cu WEB http://www.nic.cu/
.cv whois.nic.cv .cv WEB http://www.dns.cv/
.cw NONE # https://www.uoc.cw/cw-registry .cw NONE # https://www.uoc.cw/cw-registry
.cx whois.nic.cx .cx whois.nic.cx
.cy WEB https://www.nic.cy/cy-ui/home .cy WEB https://www.nic.cy/cy-ui/home
.cz whois.nic.cz .cz whois.nic.cz
.de whois.denic.de .de whois.denic.de
.dj NONE # http://www.dj/ .dj NONE # http://www.dj/
.dk whois.punktum.dk .dk whois.dk-hostmaster.dk
.dm whois.dmdomains.dm .dm whois.nic.dm
.do whois.nic.do .do whois.nic.do
.dz whois.nic.dz .dz whois.nic.dz
.ec whois.nic.ec .ec whois.nic.ec
.ee whois.tld.ee .ee whois.tld.ee
.eg NONE # https://domain.eg/ .eg NONE # http://lookup.egregistry.eg/english.aspx
#.eh #.eh
.er NONE # http://www.afridns.org/er/tld_er.txt .er NONE # http://www.afridns.org/er/tld_er.txt
.es WEB https://www.dominios.es/en .es WEB https://www.nic.es/
.et NONE # http://www.ethionet.et/ .et NONE # http://www.ethionet.et/
.eu whois.eu .eu whois.eu
.fi whois.fi .fi whois.fi
.fj www.whois.fj .fj whois.usp.ac.fj
.fk NONE # http://www.fidc.co.fk/ .fk NONE # http://www.fidc.co.fk/
.fm whois.nic.fm .fm whois.nic.fm
.fo whois.nic.fo .fo whois.nic.fo
.fr whois.nic.fr .fr whois.nic.fr
.ga whois.nic.ga .ga WEB http://www.my.ga/en/whois.html
.gb NONE .gb NONE
.gd whois.nic.gd .gd whois.nic.gd
.ge whois.nic.ge .ge whois.nic.ge
.gf whois.mediaserv.net .gf whois.mediaserv.net
.gg whois.gg .gg whois.gg
.gh whois.nic.gh .gh whois.nic.gh
.gi whois.identitydigital.services .gi whois2.afilias-grs.net
.gl whois.nic.gl .gl whois.nic.gl
.gm WEB http://www.nic.gm/htmlpages/whois.htm .gm WEB http://www.nic.gm/htmlpages/whois.htm
.gn whois.ande.gov.gn .gn NONE # http://www.psg.com/dns/gn/
.gp whois.nic.gp .gp whois.nic.gp
.gq WEB http://www.dominio.gq/en/whois.html .gq whois.dominio.gq
.gr WEB https://grweb.ics.forth.gr/public/whois?lang=en .gr WEB https://grweb.ics.forth.gr/public/whois
.gs whois.nic.gs .gs whois.nic.gs
.gt WEB https://www.gt/sitio/?lang=en .gt WEB http://www.gt/
.gu NONE .gu WEB http://gadao.gov.gu/domainsearch.htm
.gw WEB https://registar.nic.gw/en/whois/ .gw WEB http://nic.gw/en/whois/
.gy whois.registry.gy .gy whois.registry.gy
.hk whois.hkirc.hk .hk whois.hkirc.hk
.hm whois.registry.hm .hm whois.registry.hm
@ -181,7 +174,7 @@
.ie whois.weare.ie .ie whois.weare.ie
.il whois.isoc.org.il .il whois.isoc.org.il
.im whois.nic.im .im whois.nic.im
.in whois.nixiregistry.in .in whois.registry.in
.io whois.nic.io .io whois.nic.io
.iq whois.cmc.iq # http://www.cmc.iq/en/iq.html .iq whois.cmc.iq # http://www.cmc.iq/en/iq.html
.ir whois.nic.ir .ir whois.nic.ir
@ -189,7 +182,7 @@
.it whois.nic.it .it whois.nic.it
.je whois.je .je whois.je
.jm NONE # http://myspot.mona.uwi.edu/mits/ .jm NONE # http://myspot.mona.uwi.edu/mits/
.jo WEB https://www.domain.jo/FirstPageen.aspx .jo WEB https://www.dns.jo/en.aspx
.jp whois.jprs.jp .jp whois.jprs.jp
.ke whois.kenic.or.ke .ke whois.kenic.or.ke
.kg whois.kg .kg whois.kg
@ -204,7 +197,7 @@
.kz whois.nic.kz .kz whois.nic.kz
.la whois.nic.la .la whois.nic.la
.lb whois.lbdr.org.lb .lb whois.lbdr.org.lb
.lc RECURSIVE whois.identitydigital.services .lc whois2.afilias-grs.net
.li whois.nic.li .li whois.nic.li
.lk whois.nic.lk .lk whois.nic.lk
.lr NONE # http://www.psg.com/dns/lr/ .lr NONE # http://www.psg.com/dns/lr/
@ -214,23 +207,23 @@
.lv whois.nic.lv .lv whois.nic.lv
.ly whois.nic.ly .ly whois.nic.ly
.ma whois.registre.ma .ma whois.registre.ma
.mc whois.nic.mc .mc NONE # www.nic.mc
.md whois.nic.md .md whois.nic.md
.me RECURSIVE whois.nic.me # whois.identitydigital.services .me whois.nic.me # afilias
#.mf #.mf
.mg whois.nic.mg .mg whois.nic.mg
.mh NONE # www.nic.net.mh .mh NONE # www.nic.net.mh
.mk whois.marnet.mk .mk whois.marnet.mk
.ml whois.nic.ml .ml whois.dot.ml # www.point.ml
.mm whois.registry.gov.mm .mm whois.registry.gov.mm
.mn whois.nic.mn .mn whois.nic.mn
.mo WEB https://www.monic.mo/monic/faces/whois # whois.monic.mo is restricted .mo WEB http://www.monic.mo/ # whois.monic.mo is restricted
.mp NONE # get.mp .mp NONE # get.mp
.mq whois.mediaserv.net .mq whois.mediaserv.net
.mr whois.nic.mr .mr whois.nic.mr
.ms whois.nic.ms .ms whois.nic.ms
.mt whois.nic.org.mt .mt WEB https://www.nic.org.mt/dotmt/ # whois.nic.org.mt is restricted
.mu whois.tld.mu .mu whois.nic.mu
.mv NONE # NIC? www.dhiraagu.com.mv .mv NONE # NIC? www.dhiraagu.com.mv
.mw whois.nic.mw .mw whois.nic.mw
.mx whois.mx .mx whois.mx
@ -241,31 +234,31 @@
.ne NONE # NIC? http://www.intnet.ne .ne NONE # NIC? http://www.intnet.ne
.nf whois.nic.nf .nf whois.nic.nf
.ng whois.nic.net.ng .ng whois.nic.net.ng
.ni WEB https://www.nic.ni/ .ni WEB http://www.nic.ni/
.nl whois.domain-registry.nl .nl whois.domain-registry.nl
.no whois.norid.no .no whois.norid.no
.np WEB https://register.com.np/whois-lookup .np WEB https://register.com.np/whois-lookup
.nr WEB https://www.cenpac.net.nr/dns/whois.html .nr WEB http://www.cenpac.net.nr/dns/whois.html
.nu whois.iis.nu .nu whois.iis.nu
.nz whois.irs.net.nz .nz whois.srs.net.nz
.om whois.registry.om .om whois.registry.om
.pa WEB http://www.nic.pa/en .pa WEB http://www.nic.pa/
.pe kero.yachay.pe .pe kero.yachay.pe
.pf whois.registry.pf .pf whois.registry.pf
.pg whois.nic.pg # https://www.unitech.ac.pg/icts-dns/ .pg NONE # http://www.unitech.ac.pg/
.edu.ph WEB https://services.ph.net/dnshosting/dnshostingquery.pl .edu.ph WEB http://services.ph.net/dns/query.pl
.gov.ph NONE # http://dns.gov.ph/ .gov.ph NONE # http://dns.gov.ph/
.ph WEB https://whois.dot.ph/ .ph WEB https://whois.dot.ph/
.pk whois.pknic.net.pk .pk WEB http://www.pknic.net.pk/
.co.pl whois.co.pl # "unofficial" SLD .co.pl whois.co.pl # "unofficial" SLD
.pl whois.dns.pl .pl whois.dns.pl
.pm whois.nic.pm .pm whois.nic.pm
.pn WEB https://www.nic.pn/ .pn WEB http://www.pitcairn.pn/PnRegistry/
.pr RECURSIVE whois.nic.pr # whois.identitydigital.services .pr whois.afilias-srs.net
.ps WEB https://www.pnina.ps/ .ps whois.pnina.ps
.pt whois.dns.pt .pt whois.dns.pt
.pw whois.nic.pw .pw whois.nic.pw
.py WEB https://www.nic.py/consultdompy.php .py WEB http://www.nic.py/consulta-datos.php
.qa whois.registry.qa .qa whois.registry.qa
.re whois.nic.re .re whois.nic.re
.ro whois.rotld.ro .ro whois.rotld.ro
@ -283,8 +276,8 @@
.rw whois.ricta.org.rw # http://www.ricta.org.rw/ .rw whois.ricta.org.rw # http://www.ricta.org.rw/
.sa whois.nic.net.sa .sa whois.nic.net.sa
.sb whois.nic.net.sb .sb whois.nic.net.sb
.sc whois.nic.sc .sc whois2.afilias-grs.net # www.nic.sc
.sd whois.nic.sd .sd NONE
.se whois.iis.se .se whois.iis.se
.sg whois.sgnic.sg .sg whois.sgnic.sg
.sh whois.nic.sh .sh whois.nic.sh
@ -295,14 +288,14 @@
.sm whois.nic.sm .sm whois.nic.sm
.sn whois.nic.sn .sn whois.nic.sn
.so whois.nic.so .so whois.nic.so
.sr whois.sr # https://isp.datasur.sr/ .sr NONE # www.register.sr
.ss whois.nic.ss .ss whois.nic.ss
.st whois.nic.st .st whois.nic.st
.msk.su whois.flexireg.net .msk.su whois.flexireg.net
.nov.su whois.flexireg.net .nov.su whois.flexireg.net
.spb.su whois.flexireg.net .spb.su whois.flexireg.net
.su whois.tcinet.ru .su whois.tcinet.ru
.sv WEB https://svnet.sv/ .sv WEB http://www.svnet.org.sv/
.sx whois.sx .sx whois.sx
.sy whois.tld.sy .sy whois.tld.sy
.sz NONE # http://www.sispa.org.sz/ .sz NONE # http://www.sispa.org.sz/
@ -316,10 +309,10 @@
.tl whois.nic.tl .tl whois.nic.tl
.tm whois.nic.tm .tm whois.nic.tm
.tn whois.ati.tn .tn whois.ati.tn
.to whois.tonicregistry.to .to whois.tonic.to
.tr whois.trabis.gov.tr .tr whois.nic.tr
.tt WEB https://www.nic.tt/cgi-bin/search.pl .tt WEB http://www.nic.tt/cgi-bin/search.pl
.tv RECURSIVE whois.nic.tv .tv VERISIGN tvwhois.verisign-grs.com
.tw whois.twnic.net.tw .tw whois.twnic.net.tw
.tz whois.tznic.or.tz .tz whois.tznic.or.tz
.biz.ua whois.biz.ua .biz.ua whois.biz.ua
@ -327,104 +320,106 @@
.pp.ua whois.pp.ua .pp.ua whois.pp.ua
.ua whois.ua .ua whois.ua
.ug whois.co.ug .ug whois.co.ug
.ac.uk whois.nic.ac.uk .ac.uk whois.ja.net
.gov.uk whois.gov.uk .bl.uk NONE
.mil.uk NONE .british-library.uk NONE
.gov.uk whois.ja.net
.icnet.uk NONE
.jet.uk NONE
.mod.uk NONE .mod.uk NONE
.nhs.uk NONE .nhs.uk NONE
.nls.uk NONE
.parliament.uk NONE .parliament.uk NONE
.police.uk NONE
.uk whois.nic.uk .uk whois.nic.uk
#.um #.um
.fed.us whois.nic.gov .fed.us whois.nic.gov
.us whois.nic.us .us whois.nic.us
.com.uy WEB https://nic.com.uy/consulta-whois .com.uy WEB https://nic.com.uy/public/consulta-whois/acceder.action
.gub.uy WEB https://www.dominios.gub.uy/ .uy whois.nic.org.uy
.mil.uy WEB https://www.dominios.gub.uy/
.uy WEB https://www.nic.uy/
.uz whois.cctld.uz .uz whois.cctld.uz
.va NONE .va NONE
.vc RECURSIVE whois.identitydigital.services .vc whois2.afilias-grs.net
.ve whois.nic.ve .ve whois.nic.ve
.vg whois.nic.vg .vg whois.nic.vg
.vi whois.nic.vi .vi WEB https://secure.nic.vi/whois-lookup/
.vn WEB http://www.vnnic.vn/en .vn WEB http://www.vnnic.vn/en
.vu whois.dnrs.vu .vu whois.dnrs.vu
.wf whois.nic.wf .wf whois.nic.wf
.ws whois.website.ws .ws whois.website.ws
.ye whois.y.net.ye .ye NONE # NIC? http://www.y.net.ye/services/domain_name.htm
.yt whois.nic.yt .yt whois.nic.yt
.ac.za whois.ac.za .ac.za whois.ac.za
.alt.za WEB https://whois.alt.za/ .alt.za whois.alt.za
.co.za whois.registry.net.za .co.za whois.registry.net.za
.edu.za WEB https://whois.edu.za/
.gov.za whois.gov.za .gov.za whois.gov.za
.net.za net-whois.registry.net.za .net.za net-whois.registry.net.za
.org.za org-whois.registry.net.za .org.za org-whois.registry.net.za
.web.za web-whois.registry.net.za .web.za web-whois.registry.net.za
.za whois.nic.za .za NONE # http://www.zadna.org.za/content/page/domain-information
.zm whois.zicta.zm .zm whois.zicta.zm
.zw NONE # http://www.zispa.co.zw/ .zw NONE # http://www.zispa.co.zw/
# AW means that I had to guess the whois server name, but I was not able # AW means that I had to guess the whois server name, but I was not able
# to find any registered subdomains to verify it. # to find any registered subdomains to verify it.
.xn--2scrj9c whois.nixiregistry.in # India .xn--2scrj9c whois.registry.in # India
.xn--3e0b707e whois.kr # Korea, Republic of .xn--3e0b707e whois.kr # Korea, Republic of
.xn--3hcrj9c whois.nixiregistry.in # India .xn--3hcrj9c whois.registry.in # India
.xn--45br5cyl whois.nixiregistry.in # India .xn--45br5cyl whois.registry.in # India
.xn--45brj9c whois.nixiregistry.in # India, Bengali .xn--45brj9c whois.registry.in # India, Bengali
.xn--4dbrk0ce whois.isoc.org.il # Israel .xn--4dbrk0ce whois.isoc.org.il # Israel
.xn--54b7fta0cc WEB https://bdia.btcl.com.bd/ # Bangladesh .xn--54b7fta0cc NONE # Bangladesh
.xn--80ao21a whois.nic.kz # Kazakhstan .xn--80ao21a whois.nic.kz # Kazakhstan
.xn--90a3ac whois.rnids.rs # Serbia .xn--90a3ac whois.rnids.rs # Serbia
.xn--90ae whois.imena.bg # Bulgaria .xn--90ae whois.imena.bg # Bulgaria
.xn--90ais whois.cctld.by # Belarus .xn--90ais whois.cctld.by # Belarus
.xn--clchc0ea0b2g2a9gcd whois.ta.sgnic.sg # Singapore, Tamil .xn--clchc0ea0b2g2a9gcd whois.sgnic.sg # Singapore, Tamil
.xn--d1alf whois.marnet.mk # Macedonia .xn--d1alf whois.marnet.mk # Macedonia
.xn--e1a4c whois.eu # European Union, Cyrillic .xn--e1a4c whois.eu # European Union, Cyrillic
.xn--fiqs8s whois.cnnic.cn # China, Simplified Chinese .xn--fiqs8s cwhois.cnnic.cn # China, Simplified Chinese
.xn--fiqz9s whois.cnnic.cn # China, Traditional Chinese .xn--fiqz9s cwhois.cnnic.cn # China, Traditional Chinese
.xn--fpcrj9c3d whois.nixiregistry.in # India, Telugu .xn--fpcrj9c3d whois.registry.in # India, Telugu
.xn--fzc2c9e2c whois.nic.lk # Sri Lanka, Sinhala .xn--fzc2c9e2c whois.nic.lk # Sri Lanka, Sinhala
.xn--gecrj9c whois.nixiregistry.in # India, Gujarati .xn--gecrj9c whois.registry.in # India, Gujarati
.xn--h2breg3eve whois.nixiregistry.in # India .xn--h2breg3eve whois.registry.in # India
.xn--h2brj9c8c whois.nixiregistry.in # India .xn--h2brj9c8c whois.registry.in # India
.xn--h2brj9c whois.nixiregistry.in # India, Hindi .xn--h2brj9c whois.registry.in # India, Hindi
.xn--j1amh whois.dotukr.com # Ukraine .xn--j1amh whois.dotukr.com # Ukraine
.xn--j6w193g whois.hkirc.hk # Hong Kong .xn--j6w193g whois.hkirc.hk # Hong Kong
.xn--kprw13d whois.twnic.net.tw # Taiwan, Simplified Chinese .xn--kprw13d whois.twnic.net.tw # Taiwan, Simplified Chinese
.xn--kpry57d whois.twnic.net.tw # Taiwan, Traditional Chinese .xn--kpry57d whois.twnic.net.tw # Taiwan, Traditional Chinese
.xn--l1acc whois.mn # Mongolia .xn--l1acc NONE # Mongolia
.xn--lgbbat1ad8j whois.nic.dz # Algeria .xn--lgbbat1ad8j whois.nic.dz # Algeria
.xn--mgb9awbf whois.registry.om # Oman .xn--mgb9awbf whois.registry.om # Oman
.xn--mgba3a4f16a whois.nic.ir # Iran .xn--mgba3a4f16a whois.nic.ir # Iran
.xn--mgbaam7a8h whois.aeda.net.ae # United Arab Emirates .xn--mgbaam7a8h whois.aeda.net.ae # United Arab Emirates
.xn--mgbah1a3hjkrd whois.nic.mr # Mauritania .xn--mgbah1a3hjkrd whois.nic.mr # Mauritania
.xn--mgbai9azgqp6j NONE # Pakistan .xn--mgbai9azgqp6j NONE # Pakistan
.xn--mgbayh7gpa WEB https://www.domain.jo/FirstPageen.aspx # Jordan .xn--mgbayh7gpa WEB https://www.dns.jo/en.aspx # Jordan
.xn--mgbbh1a71e whois.nixiregistry.in # India, Urdu .xn--mgbbh1a71e whois.registry.in # India, Urdu
.xn--mgbbh1a whois.nixiregistry.in # India .xn--mgbbh1a whois.registry.in # India
.xn--mgbc0a9azcg NONE # Morocco .xn--mgbc0a9azcg NONE # Morocco
.xn--mgbcpq6gpa1a NONE # Bahrain .xn--mgbcpq6gpa1a NONE # Bahrain
.xn--mgberp4a5d4ar whois.nic.net.sa # Saudi Arabia .xn--mgberp4a5d4ar whois.nic.net.sa # Saudi Arabia
.xn--mgbgu82a whois.nixiregistry.in # India .xn--mgbgu82a whois.registry.in # India
.xn--mgbpl2fh NONE # Sudan .xn--mgbpl2fh NONE # Sudan
.xn--mgbtx2b whois.cmc.iq # Iraq .xn--mgbtx2b whois.cmc.iq # Iraq
.xn--mgbx4cd0ab whois.mynic.my # Malaysia AW .xn--mgbx4cd0ab whois.mynic.my # Malaysia AW
.xn--mix891f WEB https://www.monic.mo/monic/faces/whois # Macao .xn--mix891f WEB http://www.monic.mo/ # Macao
.xn--node WEB http://რეგისტრაცია.გე/ # Georgia .xn--node whois.itdc.ge # Georgia
.xn--o3cw4h whois.thnic.co.th # Thailand .xn--o3cw4h whois.thnic.co.th # Thailand
.xn--ogbpf8fl whois.tld.sy # Syria .xn--ogbpf8fl whois.tld.sy # Syria
.xn--p1ai whois.tcinet.ru # Russian Federation .xn--p1ai whois.tcinet.ru # Russian Federation
.xn--pgbs0dh whois.ati.tn # Tunisia .xn--pgbs0dh whois.ati.tn # Tunisia
.xn--q7ce6a whois.nic.la # Lao .xn--q7ce6a whois.nic.la # Lao
.xn--qxa6a whois.eu # European Union, Greek .xn--qxa6a whois.eu # European Union, Greek
.xn--qxam WEB https://grweb.ics.forth.gr/public/whois?lang=en # Greece .xn--qxam WEB https://grweb.ics.forth.gr/public/whois # Greece
.xn--rvc1e0am3e whois.nixiregistry.in # India .xn--rvc1e0am3e whois.registry.in # India
.xn--s9brj9c whois.nixiregistry.in # India, Punjabi .xn--s9brj9c whois.registry.in # India, Punjabi
.xn--wgbh1c whois.dotmasr.eg # Egypt .xn--wgbh1c whois.dotmasr.eg # Egypt
.xn--wgbl6a whois.registry.qa # Qatar .xn--wgbl6a whois.registry.qa # Qatar
.xn--xkc2al3hye2a whois.nic.lk # Sri Lanka, Tamil .xn--xkc2al3hye2a whois.nic.lk # Sri Lanka, Tamil
.xn--xkc2dl3a5ee0h whois.nixiregistry.in # India, Tamil .xn--xkc2dl3a5ee0h whois.registry.in # India, Tamil
.xn--y9a3aq whois.amnic.net # Armenia .xn--y9a3aq whois.amnic.net # Armenia
.xn--yfro4i67o whois.zh.sgnic.sg # Singapore, Chinese .xn--yfro4i67o whois.sgnic.sg # Singapore, Chinese
.xn--ygbi2ammx NONE # Palestinian Territory .xn--ygbi2ammx whois.pnina.ps # Palestinian Territory

11
utils.c
View File

@ -1,9 +1,9 @@
/* /*
* Copyright by Marco d'Itri <md@linux.it>. * Copyright 1999-2008 by Marco d'Itri <md@linux.it>.
* *
* do_nofail and merge_args come from the module-init-tools package. * do_nofail and merge_args come from the module-init-tools package.
* Copyright by Rusty Russell. * Copyright 2001 by Rusty Russell.
* Copyright by Rusty Russell, IBM Corporation. * Copyright 2002, 2003 by Rusty Russell, IBM Corporation.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -16,9 +16,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, see <https://www.gnu.org/licenses/>. * with this program; if not, write to the Free Software Foundation, Inc.,
* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* SPDX-License-Identifier: GPL-2.0-or-later
*/ */
/* for strdup */ /* for strdup */

13
utils.h
View File

@ -1,4 +1,3 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef WHOIS_UTILS_H #ifndef WHOIS_UTILS_H
#define WHOIS_UTILS_H #define WHOIS_UTILS_H
@ -17,17 +16,8 @@
/* Portability macros */ /* Portability macros */
#ifdef __GNUC__ #ifdef __GNUC__
# define NORETURN __attribute__((noreturn)) # define NORETURN __attribute__((noreturn))
# define NONNULL __attribute__((returns_nonnull))
# define UNUSED __attribute__((unused))
#else #else
# define NORETURN # define NORETURN
# define NONNULL
# define UNUSED
#endif
#if (defined __GNUC__ && __GNUC__ >= 11) && !defined __clang__
# define MALLOC_FREE __attribute__((malloc(free)))
#else
# define MALLOC_FREE
#endif #endif
#ifndef AI_IDN #ifndef AI_IDN
@ -64,8 +54,7 @@
#endif #endif
/* Prototypes */ /* Prototypes */
void *MALLOC_FREE NONNULL do_nofail(void *ptr, const char *file, const int line) void *do_nofail(void *ptr, const char *file, const int line);
;
char **merge_args(char *args, char *argv[], int *argc); char **merge_args(char *args, char *argv[], int *argc);
void NORETURN err_quit(const char *fmt, ...); void NORETURN err_quit(const char *fmt, ...);

93
whois.1
View File

@ -9,19 +9,21 @@ whois \- client for the whois directory service
] [ ] [
.RB {\~ \-p \~|\~ \-\-port \~} .RB {\~ \-p \~|\~ \-\-port \~}
.I PORT .I PORT
] ] [\~\c
.RB [\~ \-abBcdGHIKlLmMrRx .B \-abBcdGHIKlLmMrRx
] ] [\~\c
.RB [\~ \-g \fI\~SOURCE:FIRST\-LAST\fR .BI \-g \~SOURCE:FIRST\-LAST
] ] [\~\c
.RB [\~ \-i .BR \-i \~
.IR ATTR [, ATTR ]...\~] .IR ATTR [, ATTR ]...\~]
.RB [\~ \-s [\~\c
.BR \-s \~
.IR SOURCE [, SOURCE ]...\~] .IR SOURCE [, SOURCE ]...\~]
.RB [\~ \-T [\~\c
.BR \-T \~
.IR TYPE [, TYPE ]...\~] .IR TYPE [, TYPE ]...\~]
.RB [\~ \-\-verbose \~] .RB [\~ \-\-verbose \~]
.RB [\~ \-\-no\-recursion \~] .RB [\~ \-\-no-recursion \~]
.I OBJECT .I OBJECT
.B whois .B whois
@ -40,6 +42,7 @@ whois \- client for the whois directory service
.B whois \-\-version .B whois \-\-version
.PP
.SH DESCRIPTION .SH DESCRIPTION
.B whois .B whois
searches for an object in a searches for an object in a
@ -47,16 +50,16 @@ searches for an object in a
database. database.
.P .P
This version of the whois client tries to guess the right server to This version of the whois client tries to guess the right server to
ask for the specified object. ask for the specified object. If no guess can be made it will connect to
If no guess can be made it will connect to
.I whois.networksolutions.com .I whois.networksolutions.com
for NIC handles or for NIC handles or
.I whois.arin.net .I whois.arin.net
for IPv4 addresses and network names. for IPv4 addresses and network names.
.PP
.SH OPTIONS .SH OPTIONS
.TP 8 .TP 8
.B \-h .B \-h \c
.IR HOST , .IR HOST ", "\c
.BI \-\-host= HOST .BI \-\-host= HOST
Connect to Connect to
.IR HOST . .IR HOST .
@ -64,8 +67,8 @@ Connect to
.B \-H .B \-H
Do not display the legal disclaimers that some registries like to show you. Do not display the legal disclaimers that some registries like to show you.
.TP 8 .TP 8
.B \-p .B \-p \c
.IR PORT , .IR PORT ", "\c
.BI \-\-port= PORT .BI \-\-port= PORT
Connect to Connect to
.IR PORT . .IR PORT .
@ -74,13 +77,12 @@ Connect to
First query First query
.I whois.iana.org .I whois.iana.org
and then follow its referral to the and then follow its referral to the
whois server authoritative for that request. whois server authoritative for that request. This works for IP addresses,
This works for IP addresses,
AS numbers and domains. AS numbers and domains.
.BR BEWARE : .BR BEWARE :
this implies that the IANA server will receive your complete query. this implies that the IANA server will receive your complete query.
.TP 8 .TP 8
.B \-\-no\-recursion .B \-\-no-recursion
Disable recursion from registry to registrar servers. Disable recursion from registry to registrar servers.
.TP 8 .TP 8
.B \-\-verbose .B \-\-verbose
@ -104,8 +106,7 @@ Also search all the mirrored databases.
Return brief IP address ranges with abuse contact. Return brief IP address ranges with abuse contact.
.TP 8 .TP 8
.B \-B .B \-B
Disable objects filtering. Disable objects filtering. (Show the e-mail addresses.)
(Show the e-mail addresses.)
.TP 8 .TP 8
.B \-c .B \-c
Return the smallest IP address range with a reference to an irt object. Return the smallest IP address range with a reference to an irt object.
@ -113,7 +114,7 @@ Return the smallest IP address range with a reference to an irt object.
.B \-d .B \-d
Return the reverse DNS delegation object too. Return the reverse DNS delegation object too.
.TP 8 .TP 8
.B \-g .B \-g \c
.I SOURCE:FIRST\-LAST .I SOURCE:FIRST\-LAST
Search updates from Search updates from
.I SOURCE .I SOURCE
@ -121,14 +122,13 @@ database between
.I FIRST .I FIRST
and and
.I LAST .I LAST
update serial number. update serial number. It is useful to obtain Near Real Time Mirroring stream.
It is useful to obtain Near Real Time Mirroring stream.
.TP 8 .TP 8
.B \-G .B \-G
Disable grouping of associated objects. Disable grouping of associated objects.
.TP 8 .TP 8
.B \-i .B \-i \c
.IR ATTR [, ATTR ]... .I ATTR[,ATTR]...
Inverse-search objects having associated attributes. Inverse-search objects having associated attributes.
.I ATTR .I ATTR
is the attribute name, while the positional is the attribute name, while the positional
@ -136,13 +136,11 @@ is the attribute name, while the positional
argument is the attribute value. argument is the attribute value.
.TP 8 .TP 8
.B \-K .B \-K
Return primary key attributes only. Return primary key attributes only. An exception is the
An exception is the
.I members .I members
attribute of attribute of
.I set .I set
objects, which is always returned. objects, which is always returned. Another exception are all
Another exception are all
attributes of the objects attributes of the objects
.IR organisation , .IR organisation ,
.I person .I person
@ -162,7 +160,7 @@ Return all one level more specific objects.
.B \-M .B \-M
Return all levels of more specific objects. Return all levels of more specific objects.
.TP 8 .TP 8
.B \-q .B \-q \c
.I KEYWORD .I KEYWORD
Return information about the server. Return information about the server.
.I KEYWORD .I KEYWORD
@ -181,27 +179,27 @@ Disable recursive lookups for contact information.
Disable following referrals and force showing the object from the local copy Disable following referrals and force showing the object from the local copy
in the server. in the server.
.TP 8 .TP 8
.B \-s .B \-s \c
.IR SOURCE [, SOURCE ]... .I SOURCE[,SOURCE]...
Request the server to search for objects mirrored from Request the server to search for objects mirrored from
.IR SOURCE . .IR SOURCE .
Sources are delimited by comma, and the order is significant. Sources are delimited by comma, and the order is significant.
Use the Use the
.I \-q sources .I -q sources
parameter to obtain a list of valid sources. parameter to obtain a list of valid sources.
.TP 8 .TP 8
.B \-t .B \-t \c
.I TYPE .I TYPE
Return the template for a object of Return the template for a object of
.IR TYPE . .IR TYPE .
.TP 8 .TP 8
.B \-T .B \-T \c
.IR TYPE [, TYPE ]... .I TYPE[,TYPE]...
Restrict the search to objects of Restrict the search to objects of
.IR TYPE . .IR TYPE .
Multiple types are separated by a comma. Multiple types are separated by a comma.
.TP 8 .TP 8
.B \-v .B \-v \c
.I TYPE .I TYPE
Return the verbose template for a object of Return the verbose template for a object of
.IR TYPE . .IR TYPE .
@ -209,9 +207,7 @@ Return the verbose template for a object of
.B \-x .B \-x
Search for only exact match on network address prefix. Search for only exact match on network address prefix.
.SH NOTES .SH NOTES
When querying the Verisign gTLDs When querying the Verisign gTLDs (e.g. .com, .net...) thin registry servers
(e.g.\& \&.com, \&.net...\&)
thin registry servers
for a domain, the program will automatically prepend the for a domain, the program will automatically prepend the
.I domain .I domain
keyword to only show domain records. The keyword to only show domain records. The
@ -235,7 +231,7 @@ When querying
.I whois.denic.de .I whois.denic.de
for domain names and no other for domain names and no other
flags have been specified, the program will automatically add the flag flags have been specified, the program will automatically add the flag
.IR "\-T dn" . .IR "-T dn" .
.P .P
When querying When querying
.I whois.dk\-hostmaster.dk .I whois.dk\-hostmaster.dk
@ -244,8 +240,7 @@ flags have been specified, the program will automatically add the flag
.IR "\-\-show\-handles" . .IR "\-\-show\-handles" .
.P .P
RIPE-specific command line options are ignored when querying non-RIPE RIPE-specific command line options are ignored when querying non-RIPE
servers. servers. This may or may not be the behaviour intended by the user.
This may or may not be the behaviour intended by the user.
When using non-standard query parameters then the command line options When using non-standard query parameters then the command line options
which are not to be interpreted by the client must follow the which are not to be interpreted by the client must follow the
.I \-\- .I \-\-
@ -254,8 +249,7 @@ separator (which marks the beginning of the query string).
If the If the
.I /etc/whois.conf .I /etc/whois.conf
configuration file exists, it will be consulted configuration file exists, it will be consulted
to find a server before applying the normal rules. to find a server before applying the normal rules. Each line of the
Each line of the
file should contain a regular expression to be matched against the query file should contain a regular expression to be matched against the query
text and the whois server to use, separated by white space. text and the whois server to use, separated by white space.
IDN domains must use the ACE format. IDN domains must use the ACE format.
@ -286,8 +280,7 @@ A list of options which will be evaluated before the ones specified on the
command line. command line.
.IP "WHOIS_SERVER" .IP "WHOIS_SERVER"
This server will be queried if the program cannot guess where some kind This server will be queried if the program cannot guess where some kind
of objects are located. of objects are located. If the variable does not exist then
If the variable does not exist then
.I whois.arin.net .I whois.arin.net
will be queried. will be queried.
.SH "SEE ALSO" .SH "SEE ALSO"
@ -297,7 +290,7 @@ will be queried.
WHOIS Protocol Specification. WHOIS Protocol Specification.
.P .P
.IR "RIPE Database Query Reference Manual" : .IR "RIPE Database Query Reference Manual" :
.RI < https://www.ripe.net/\:data\-tools/\:support/\:documentation/\:ripe\-database\-query\-reference\-manual > .RI < http://www.ripe.net/data\-tools/support/documentation/ripe\-database\-query\-reference\-manual >
.SH BUGS .SH BUGS
The program may have buffer overflows in the command line parser: The program may have buffer overflows in the command line parser:
be sure to not pass untrusted data to it. be sure to not pass untrusted data to it.
@ -311,5 +304,5 @@ original BSD client.
and this man page were written by Marco d'Itri and this man page were written by Marco d'Itri
.RI < md@linux.it > .RI < md@linux.it >
and are licensed under the terms of the GNU General Public License, and are licensed under the terms of the GNU General Public License,
version 2 or later. version 2 or higher.
.\" SPDX-License-Identifier: GPL-2.0-or-later

View File

@ -1,86 +0,0 @@
_whois_query() {
"$1" -q "$2" 2>/dev/null | while read -r item _; do
[[ $item == %* ]] && continue
printf "%s\n" "${item%%:*}"
done
}
_whois_hosts() {
# _known_hosts_real from github.com/scop/bash-completion if available
if declare -f _known_hosts_real &>/dev/null; then
_known_hosts_real -- "$1"
return 0
fi
COMPREPLY=($(compgen -A hostname -- "$1"))
}
_whois() {
case $3 in
--help | --version | -p | --port | -i)
return 0
;;
-h | --host)
_whois_hosts "$2"
return 0
;;
-T | -t | -v)
[[ ${_whois_types-} ]] ||
_whois_types=" $(_whois_query "$1" types)"
COMPREPLY=($(compgen -W '$_whois_types' -- "$2"))
return 0
;;
-s | -g)
[[ ${_whois_sources-} ]] ||
_whois_sources=" $(_whois_query "$1" sources)"
COMPREPLY=($(compgen -W '$_whois_sources' -- "$2"))
if [[ $3 == -g ]]; then
[[ ${#COMPREPLY[*]} -eq 1 ]] && COMPREPLY[0]+=:
compopt -o nospace
fi
return 0
;;
-q)
COMPREPLY=($(compgen -W 'version sources types' -- "$2"))
return 0
;;
esac
if [[ $2 == -* ]]; then
COMPREPLY=($(compgen -W '
-h --host
-p --port
-I
-H
--verbose
--no-recursion
--help
--version
-l
-L
-m
-M
-c
-x
-b
-B
-G
-d
-i
-T
-K
-r
-R
-a
-s
-g
-t
-v
-q
' -- "$2"))
return 0
fi
_whois_hosts "$2"
} && complete -F _whois whois

536
whois.c
View File

@ -1,20 +1,10 @@
/* /*
* Copyright (C) Marco d'Itri <md@linux.it>. * Copyright (C) 1999-2022 Marco d'Itri <md@linux.it>.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, see <https://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/ */
/* for AI_IDN */ /* for AI_IDN */
@ -48,13 +38,6 @@
#include <idna.h> #include <idna.h>
#endif #endif
/* prototypes referenced in data.h */
static void find_referral_server_apnic(char **, const char *);
static void find_referral_server_arin(char **, const char *);
static void find_referral_server_iana(char **, const char *);
static void find_referral_server_recursive(char **, const char *);
static void find_referral_server_verisign(char **, const char *);
/* Application-specific */ /* Application-specific */
#include "version.h" #include "version.h"
#include "data.h" #include "data.h"
@ -326,7 +309,7 @@ int handle_query(const char *hserver, const char *hport,
const char *query, const char *flags) const char *query, const char *flags)
{ {
char *server = NULL, *port = NULL; char *server = NULL, *port = NULL;
char *p, *query_string, *old_server, *new_server; char *p, *query_string;
if (hport) { if (hport) {
server = strdup(hserver); server = strdup(hserver);
@ -359,20 +342,20 @@ int handle_query(const char *hserver, const char *hport,
case 4: case 4:
if (verb) if (verb)
printf(_("Using server %s.\n"), server + 1); printf(_("Using server %s.\n"), server + 1);
old_server = server; sockfd = openconn(server + 1, NULL);
server = query_verisign(server, NULL, query); free(server);
free(old_server); server = query_crsnic(sockfd, query);
if (no_recursion && server) if (no_recursion)
server[0] = '\0'; server = "";
break; break;
case 8: case 8:
if (verb) if (verb)
printf(_("Using server %s.\n"), server + 1); printf(_("Using server %s.\n"), server + 1);
old_server = server; sockfd = openconn(server + 1, NULL);
server = query_server(server, NULL, query); free(server);
free(old_server); server = query_afilias(sockfd, query);
if (no_recursion && server) if (no_recursion)
server[0] = '\0'; server = "";
break; break;
case 0x0A: case 0x0A:
p = convert_6to4(query); p = convert_6to4(query);
@ -403,8 +386,9 @@ int handle_query(const char *hserver, const char *hport,
case 0x0E: case 0x0E:
if (verb) if (verb)
printf(_("Using server %s.\n"), "whois.iana.org"); printf(_("Using server %s.\n"), "whois.iana.org");
sockfd = openconn("whois.iana.org", NULL);
free(server); free(server);
server = query_server("whois.iana.org", NULL, query); server = query_iana(sockfd, query);
break; break;
default: default:
break; break;
@ -422,17 +406,15 @@ int handle_query(const char *hserver, const char *hport,
printf(_("Query string: \"%s\"\n\n"), query_string); printf(_("Query string: \"%s\"\n\n"), query_string);
} }
new_server = query_server(server, port, query_string); sockfd = openconn(server, port);
free(server);
if (port) server = do_query(sockfd, query_string);
free(port);
free(query_string); free(query_string);
/* recursion is fun */ /* recursion is fun */
if (!no_recursion && new_server && !strchr(query, ' ')) { if (!no_recursion && server && !strchr(query, ' ')) {
printf(_("\n\nFound a referral to %s.\n\n"), new_server); printf(_("\n\nFound a referral to %s.\n\n"), server);
handle_query(new_server, NULL, query, flags); handle_query(server, NULL, query, flags);
free(new_server);
} }
return 0; return 0;
@ -510,52 +492,12 @@ const char *match_config_file(const char *s)
} }
#endif #endif
/*
* Check if the argument is an autonomous system number in the form "ASnnnn"
* or "AS nnnn".
*/
int is_asn(const char *s, int allow_space, const char *suffix_separators)
{
const char *p;
int max_numbers = 6;
int seen_number = 0;
if (!strncaseeq(s, "as", 2))
return 0; /* does not start with "as" (case insensitive) */
/* skip a single optional space */
p = s + 2;
if (allow_space && *p == ' ')
p++;
/* all numbers, but not too many */
while (*p) {
if (*p < '0' || *p > '9') { /* not a number */
if (!seen_number)
return 0; /* just "as" with no numbers */
if (suffix_separators && strchr(suffix_separators, *p))
return 1; /* has a trailing separator */
return 0; /* has trailing garbage */
}
seen_number = 1;
if (max_numbers-- == 0)
return 0; /* too many numbers */
p++;
}
if (seen_number)
return 1; /* a real ASN */
else
return 0; /* trailing garbage */
}
/* Parses an user-supplied string and tries to guess the right whois server. /* Parses an user-supplied string and tries to guess the right whois server.
* Returns a dynamically allocated buffer. * Returns a dynamically allocated buffer.
*/ */
char *guess_server(const char *s) char *guess_server(const char *s)
{ {
unsigned long ip; unsigned long ip, as32;
unsigned int i; unsigned int i;
const char *colon, *tld; const char *colon, *tld;
@ -564,8 +506,12 @@ char *guess_server(const char *s)
unsigned long v6prefix, v6net; unsigned long v6prefix, v6net;
/* RPSL hierarchical objects */ /* RPSL hierarchical objects */
if (is_asn(s, 0, ":")) if (strncaseeq(s, "as", 2)) {
return strdup(whereas(atol(s + 2))); if (isasciidigit(s[2]))
return strdup(whereas(atol(s + 2)));
else
return strdup("");
}
v6prefix = strtol(s, NULL, 16); v6prefix = strtol(s, NULL, 16);
@ -600,14 +546,19 @@ char *guess_server(const char *s)
/* no dot and no hyphen means it's a NSI NIC handle or ASN (?) */ /* no dot and no hyphen means it's a NSI NIC handle or ASN (?) */
if (!strpbrk(s, ".-")) { if (!strpbrk(s, ".-")) {
if (is_asn(s, 1, NULL)) if (strncaseeq(s, "as", 2) && /* it's an AS */
return strdup(whereas(atol(s + 2))); /* it's an AS */ (isasciidigit(s[2]) || s[2] == ' '))
return strdup(whereas(atol(s + 2)));
if (*s == '!') /* NSI NIC handle */ if (*s == '!') /* NSI NIC handle */
return strdup("whois.networksolutions.com"); return strdup("whois.networksolutions.com");
else else
return strdup("\x05"); /* probably a unknown kind of nic handle */ return strdup("\x05"); /* probably a unknown kind of nic handle */
} }
/* ASN32? */
if (strncaseeq(s, "as", 2) && s[2] && (as32 = asn32_to_long(s + 2)) != 0)
return strdup(whereas32(as32));
/* smells like an IP? */ /* smells like an IP? */
if ((ip = myinet_aton(s))) { if ((ip = myinet_aton(s))) {
for (i = 0; ip_assign[i].serv; i++) for (i = 0; ip_assign[i].serv; i++)
@ -650,10 +601,23 @@ char *guess_server(const char *s)
return strdup("\x05"); return strdup("\x05");
} }
const char *whereas32(const unsigned long asn)
{
int i;
for (i = 0; as32_assign[i].serv; i++)
if (asn >= as32_assign[i].first && asn <= as32_assign[i].last)
return as32_assign[i].serv;
return "\x06";
}
const char *whereas(const unsigned long asn) const char *whereas(const unsigned long asn)
{ {
int i; int i;
if (asn > 65535)
return whereas32(asn);
for (i = 0; as_assign[i].serv; i++) for (i = 0; as_assign[i].serv; i++)
if (asn >= as_assign[i].first && asn <= as_assign[i].last) if (asn >= as_assign[i].first && asn <= as_assign[i].last)
return as_assign[i].serv; return as_assign[i].serv;
@ -722,20 +686,18 @@ char *queryformat(const char *server, const char *flags, const char *query)
else if (strchr(query, ' ') || *flags) { } else if (strchr(query, ' ') || *flags) { }
else if (streq(server, "whois.denic.de") && in_domain(query, "de")) else if (streq(server, "whois.denic.de") && in_domain(query, "de"))
strcat(buf, "-T dn" DENIC_PARAM_ACE DENIC_PARAM_CHARSET " "); strcat(buf, "-T dn" DENIC_PARAM_ACE DENIC_PARAM_CHARSET " ");
else if ((streq(server, "whois.punktum.dk") || else if (streq(server, "whois.dk-hostmaster.dk") && in_domain(query, "dk"))
streq(server, "whois.dk-hostmaster.dk"))
&& in_domain(query, "dk"))
strcat(buf, "--show-handles "); strcat(buf, "--show-handles ");
/* mangle and add the query string */ /* mangle and add the query string */
if (!isripe && streq(server, "whois.nic.ad.jp") && if (!isripe && streq(server, "whois.nic.ad.jp") &&
is_asn(query, 1, NULL)) { strncaseeq(query, "AS", 2) && isasciidigit(query[2])) {
strcat(buf, "AS "); strcat(buf, "AS ");
strcat(buf, query + 2); strcat(buf, query + 2);
} }
else if (!isripe && streq(server, "whois.arin.net") && else if (!isripe && streq(server, "whois.arin.net") &&
!strrchr(query, ' ')) { !strrchr(query, ' ')) {
if (is_asn(query, 0, NULL)) { if (strncaseeq(query, "AS", 2) && isasciidigit(query[2])) {
strcat(buf, "a "); strcat(buf, "a ");
strcat(buf, query + 2); strcat(buf, query + 2);
} else if (myinet_aton(query) || strchr(query, ':')) { } else if (myinet_aton(query) || strchr(query, ':')) {
@ -752,12 +714,8 @@ char *queryformat(const char *server, const char *flags, const char *query)
/* ask for english text */ /* ask for english text */
if (!isripe && (streq(server, "whois.nic.ad.jp") || if (!isripe && (streq(server, "whois.nic.ad.jp") ||
streq(server, "whois.jprs.jp")) && japanese_locale()) { streq(server, "whois.jprs.jp")) && japanese_locale())
/* but not if the user already added the /e flag */ strcat(buf, "/e");
char *flag = buf + strlen(buf) - 2;
if (!streq(flag, "/e"))
strcat(buf, "/e");
}
return buf; return buf;
} }
@ -804,218 +762,55 @@ int hide_line(int *hiding, const char *const line)
return 0; return 0;
} }
static void find_referral_server_apnic(char **referral_server, const char *buf)
{
/* Possible states of this FSM:
* 0: searching for the descr or mnt-by attribute
* 1: searching for the mnt-by attribute (descr found)
* 2: searching for the descr attribute (mnt-by found)
* 3: searching for the end of the object (an empty line)
* 4: done: stop searching
*
* Since the descr attribute is user-provided, consider it only if it
* is in an object actually maintained by APNIC.
*
* If multiple records are returned then it users the referral in the
* first valid object found.
*/
static int state = 0;
static char *rir_name = NULL;
char *p;
if (state == 4)
return;
if (state <= 2) {
if (strneq(buf, "descr:", 6)) {
p = (char *)buf + 6; /* skip until the colon */
for (; *p == ' ' || *p == '\t'; p++); /* skip white space */
if (strneq(p, "Transferred to the ", 19)) {
rir_name = strdup(p + 19);
if ((p = strpbrk(rir_name, " ")))
*p = '\0';
if (state == 0)
state = 1; /* still needs mnt-by */
else
state = 3;
}
} else if (strneq(buf, "mnt-by:", 7)) {
p = (char *)buf + 7; /* skip until the colon */
for (; *p == ' ' || *p == '\t'; p++); /* skip white space */
if (streq(p, "APNIC-STUB")) {
if (state == 0)
state = 2; /* still needs descr */
else
state = 3;
}
} else if (streq(buf, "")) {
if (state == 1)
free(rir_name);
state = 0; /* start again with a new object */
}
return;
}
if (state == 3 && streq(buf, "")) {
int i;
const char *rir_servers[] = {
"AFRINIC", "whois.afrinic.net",
"ARIN", "whois.arin.net",
"LACNIC", "whois.lacnic.net",
"RIPE", "whois.ripe.net",
NULL, NULL,
};
state = 4;
for (i = 0; rir_servers[i]; i += 2)
if (streq(rir_name, rir_servers[i]))
*referral_server = strdup(rir_servers[i + 1]);
free(rir_name);
}
}
static void find_referral_server_arin(char **referral_server, const char *buf)
{
char *p;
/* ARIN referrals:
* ReferralServer: rwhois://rwhois.fuse.net:4321/
* ReferralServer: whois://whois.ripe.net
* ReferralServer: whois.ripe.net
*/
if (!strneq(buf, "ReferralServer:", 15))
return;
/* When whois.arin.net returns multiple NetRange records, they will
* appear from the less specific one to the most specific one.
* Since the range we care about is the most specific one then we
* need to use the last ReferralServer field found.
*/
if (*referral_server) {
free(*referral_server);
*referral_server = NULL;
}
if ((p = strstr(buf, "rwhois://")))
*referral_server = strdup(p + 9);
else if ((p = strstr(buf, "whois://")))
*referral_server = strdup(p + 8);
else
*referral_server = strdup(buf + 17);
if (*referral_server && (p = strpbrk(*referral_server, "/")))
*p = '\0';
}
static void find_referral_server_iana(char **referral_server, const char *buf)
{
const char *p;
if (*referral_server)
return;
/* IANA referrals:
* refer: whois.apnic.net
*/
if (!strneq(buf, "refer:", 6))
return;
p = buf + 6; /* skip until the colon */
for (; *p == ' ' || *p == '\t'; p++); /* skip white space */
*referral_server = strdup(p);
}
static void find_referral_server_recursive(char **referral_server, const char *buf)
{
static int state = 0;
const char *p;
if (*referral_server)
return;
if (state == 0 && strneq(buf, "Domain Name:", 12))
state = 1;
else if (state == 1 && strneq(buf, "Domain Name:", 12))
state = 2;
else if (state == 1 && strneq(buf, "Registrar WHOIS Server:", 23)) {
p = buf + 23; /* skip until the colon */
for (; *p && *p == ' '; p++); /* skip the spaces */
*referral_server = strdup(p);
state = 2;
}
}
static void find_referral_server_verisign(char **referral_server, const char *buf)
{
static int state = 0;
const char *p;
if (*referral_server)
return;
/* If there are multiple matches only the server of the first record
* is queried */
if (state == 0 && strneq(buf, " Domain Name:", 15)) {
state = 1;
} else if (state == 0 && strneq(buf, " Server Name:", 15)) {
*referral_server = strdup("");
state = 2;
} else if (state == 1 && strneq(buf, " Registrar WHOIS Server:", 26)) {
p = buf + 26; /* skip until the colon */
for (; *p && *p == ' '; p++); /* skip the spaces */
*referral_server = strdup(p);
state = 2;
}
}
/* returns a string which should be freed by the caller, or NULL */ /* returns a string which should be freed by the caller, or NULL */
char *query_server(const char *server, const char *port, const char *query) char *do_query(const int sock, const char *query)
{ {
char *temp, *p, buf[2000]; char *temp, *p, buf[2000];
FILE *fi; FILE *fi;
int hide = hide_discl; int hide = hide_discl;
int sock, i;
char *referral_server = NULL; char *referral_server = NULL;
void (*referral_handler)(char **referral_server, const char *buf) = NULL;
temp = malloc(strlen(query) + 2 + 1); temp = malloc(strlen(query) + 2 + 1);
strcpy(temp, query); strcpy(temp, query);
strcat(temp, "\r\n"); strcat(temp, "\r\n");
for (i = 0; server_referral_handlers[i].name; i++) {
/* If the first character is not printable then it represents
* a general category of servers in the list.
*/
if (server[0] < ' ' &&
strneq(server_referral_handlers[i].name, server, 1)) {
server++;
referral_handler = server_referral_handlers[i].handler;
break;
} else if (streq(server_referral_handlers[i].name, server)) {
referral_handler = server_referral_handlers[i].handler;
break;
}
}
sock = openconn(server, port);
fi = fdopen(sock, "r"); fi = fdopen(sock, "r");
if (!fi)
err_sys("fdopen");
if (write(sock, temp, strlen(temp)) < 0) if (write(sock, temp, strlen(temp)) < 0)
err_sys("write"); err_sys("write");
free(temp); free(temp);
while (fgets(buf, sizeof(buf), fi)) { while (fgets(buf, sizeof(buf), fi)) {
alarm(20); /* reset the timeout */ /* 6bone-style referral:
if ((p = strpbrk(buf, "\r\n"))) /* remove the trailing CR/LF */ * % referto: whois -h whois.arin.net -p 43 as 1
*p = '\0'; */
if (!referral_server && strneq(buf, "% referto:", 10)) {
char nh[256], np[16], nq[1024];
if (referral_handler) if (sscanf(buf, REFERTO_FORMAT, nh, np, nq) == 3) {
referral_handler(&referral_server, buf); /* XXX we are ignoring the new query string */
referral_server = malloc(strlen(nh) + 1 + strlen(np) + 1);
sprintf(referral_server, "%s:%s", nh, np);
}
}
/* ARIN referrals:
* ReferralServer: rwhois://rwhois.fuse.net:4321/
* ReferralServer: whois://whois.ripe.net
*/
if (!referral_server && strneq(buf, "ReferralServer:", 15)) {
if ((p = strstr(buf, "rwhois://")))
referral_server = strdup(p + 9);
else if ((p = strstr(buf, "whois://")))
referral_server = strdup(p + 8);
if (referral_server && (p = strpbrk(referral_server, "/\r\n")))
*p = '\0';
}
if (hide_line(&hide, buf)) if (hide_line(&hide, buf))
continue; continue;
if ((p = strpbrk(buf, "\r\n")))
*p = '\0';
recode_fputs(buf, stdout); recode_fputs(buf, stdout);
fputc('\n', stdout); fputc('\n', stdout);
} }
@ -1028,20 +823,16 @@ char *query_server(const char *server, const char *port, const char *query)
err_quit(_("Catastrophic error: disclaimer text has been changed.\n" err_quit(_("Catastrophic error: disclaimer text has been changed.\n"
"Please upgrade this program.\n")); "Please upgrade this program.\n"));
/* defensive programming: make sure to avoid trivial referral loops */
if (referral_server && streq(server, referral_server)) {
free(referral_server);
referral_server = NULL;
}
return referral_server; return referral_server;
} }
char *query_verisign(const char *server, const char *port, const char *query) char *query_crsnic(const int sock, const char *query)
{ {
char *temp, *p; char *temp, *p, buf[2000];
int sock; FILE *fi;
int hide = hide_discl;
char *referral_server = NULL; char *referral_server = NULL;
int state = 0;
int dotscount = 0; int dotscount = 0;
temp = malloc(strlen("domain ") + strlen(query) + 2 + 1); temp = malloc(strlen("domain ") + strlen(query) + 2 + 1);
@ -1055,9 +846,140 @@ char *query_verisign(const char *server, const char *port, const char *query)
if (dotscount == 1 && !strpbrk(query, "=~ ")) if (dotscount == 1 && !strpbrk(query, "=~ "))
strcpy(temp, "domain "); strcpy(temp, "domain ");
strcat(temp, query); strcat(temp, query);
strcat(temp, "\r\n");
referral_server = query_server(server, port, temp); fi = fdopen(sock, "r");
if (write(sock, temp, strlen(temp)) < 0)
err_sys("write");
free(temp); free(temp);
while (fgets(buf, sizeof(buf), fi)) {
/* If there are multiple matches only the server of the first record
is queried */
if (state == 0 && strneq(buf, " Domain Name:", 15))
state = 1;
if (state == 0 && strneq(buf, " Server Name:", 15)) {
referral_server = strdup("");
state = 2;
}
if (state == 1 && strneq(buf, " Registrar WHOIS Server:", 26)) {
for (p = buf; *p != ':'; p++); /* skip until the colon */
for (p++; *p == ' '; p++); /* skip the spaces */
referral_server = strdup(p);
if ((p = strpbrk(referral_server, "\r\n ")))
*p = '\0';
state = 2;
}
/* the output must not be hidden or no data will be shown for
host records and not-existing domains */
if (hide_line(&hide, buf))
continue;
if ((p = strpbrk(buf, "\r\n")))
*p = '\0';
recode_fputs(buf, stdout);
fputc('\n', stdout);
}
if (ferror(fi))
err_sys("fgets");
fclose(fi);
return referral_server;
}
char *query_afilias(const int sock, const char *query)
{
char *temp, *p, buf[2000];
FILE *fi;
int hide = hide_discl;
char *referral_server = NULL;
int state = 0;
temp = malloc(strlen(query) + 2 + 1);
strcpy(temp, query);
strcat(temp, "\r\n");
fi = fdopen(sock, "r");
if (write(sock, temp, strlen(temp)) < 0)
err_sys("write");
free(temp);
while (fgets(buf, sizeof(buf), fi)) {
/* If multiple attributes are returned then use the first result.
This is not supposed to happen. */
if (state == 0 && strneq(buf, "Domain Name:", 12))
state = 1;
if (state == 1 && strneq(buf, "Registrar WHOIS Server:", 23)) {
for (p = buf; *p != ':'; p++); /* skip until colon */
for (p++; *p == ' '; p++); /* skip colon and spaces */
referral_server = strdup(p);
if ((p = strpbrk(referral_server, "\r\n ")))
*p = '\0';
state = 2;
}
/* the output must not be hidden or no data will be shown for
host records and not-existing domains */
if (hide_line(&hide, buf))
continue;
if ((p = strpbrk(buf, "\r\n")))
*p = '\0';
recode_fputs(buf, stdout);
fputc('\n', stdout);
}
if (ferror(fi))
err_sys("fgets");
fclose(fi);
if (hide > HIDE_NOT_STARTED && hide != HIDE_TO_THE_END)
err_quit(_("Catastrophic error: disclaimer text has been changed.\n"
"Please upgrade this program.\n"));
return referral_server;
}
char *query_iana(const int sock, const char *query)
{
char *temp, *p, buf[2000];
FILE *fi;
char *referral_server = NULL;
int state = 0;
temp = malloc(strlen(query) + 2 + 1);
strcpy(temp, query);
strcat(temp, "\r\n");
fi = fdopen(sock, "r");
if (write(sock, temp, strlen(temp)) < 0)
err_sys("write");
free(temp);
while (fgets(buf, sizeof(buf), fi)) {
/* If multiple attributes are returned then use the first result.
This is not supposed to happen. */
if (state == 0 && strneq(buf, "refer:", 6)) {
for (p = buf; *p != ':'; p++); /* skip until colon */
for (p++; *p == ' '; p++); /* skip colon and spaces */
referral_server = strdup(p);
if ((p = strpbrk(referral_server, "\r\n ")))
*p = '\0';
state = 2;
}
if ((p = strpbrk(buf, "\r\n")))
*p = '\0';
recode_fputs(buf, stdout);
fputc('\n', stdout);
}
if (ferror(fi))
err_sys("fgets");
fclose(fi);
return referral_server; return referral_server;
} }
@ -1081,7 +1003,7 @@ int openconn(const char *server, const char *port)
if (AFL_MODE) if (AFL_MODE)
return dup(0); return dup(0);
alarm(20); alarm(60);
#ifdef HAVE_GETADDRINFO #ifdef HAVE_GETADDRINFO
memset(&hints, 0, sizeof(struct addrinfo)); memset(&hints, 0, sizeof(struct addrinfo));
@ -1197,7 +1119,7 @@ int connect_with_timeout(int fd, const struct sockaddr *addr,
return 0; return 0;
} }
void NORETURN alarm_handler(UNUSED int signum) void NORETURN alarm_handler(int signum)
{ {
close(sockfd); close(sockfd);
err_quit(_("Timeout.")); err_quit(_("Timeout."));
@ -1309,12 +1231,6 @@ char *normalize_domain(const char *dom)
} }
#if defined HAVE_LIBIDN || defined HAVE_LIBIDN2 #if defined HAVE_LIBIDN || defined HAVE_LIBIDN2
/* A leading ! means that this probably is a RADB query, so skip IDN
* processing because it would lower-case the command characters.
*/
if (*ret == '!')
return ret;
/* find the start of the last word if there are spaces in the query */ /* find the start of the last word if there are spaces in the query */
for (p = ret; *p; p++) for (p = ret; *p; p++)
if (*p == ' ') if (*p == ' ')
@ -1556,12 +1472,26 @@ unsigned long myinet_aton(const char *s)
return (a << 24) + (b << 16) + (c << 8) + d; return (a << 24) + (b << 16) + (c << 8) + d;
} }
unsigned long asn32_to_long(const char *s)
{
unsigned long a, b;
char junk;
if (!s)
return 0;
if (sscanf(s, "%lu.%lu%c", &a, &b, &junk) != 2)
return 0;
if (a > 65535 || b > 65535)
return 0;
return (a << 16) + b;
}
int isasciidigit(const char c) int isasciidigit(const char c)
{ {
return (c >= '0' && c <= '9') ? 1 : 0; return (c >= '0' && c <= '9') ? 1 : 0;
} }
/* https://www.ripe.net/ripe/docs/databaseref-manual.html */ /* http://www.ripe.net/ripe/docs/databaseref-manual.html */
void NORETURN usage(int error) void NORETURN usage(int error)
{ {

View File

@ -47,4 +47,3 @@ This manual page was written by Petr Písař
.RI < ppisar@redhat.com > .RI < ppisar@redhat.com >
and is licensed under the terms of the GNU General Public License, and is licensed under the terms of the GNU General Public License,
version 2 or higher. version 2 or higher.
\" SPDX-License-Identifier: GPL-2.0-or-later

13
whois.h
View File

@ -1,19 +1,23 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "utils.h" #include "utils.h"
/* 6bone referto: extension */
#define REFERTO_FORMAT "%% referto: whois -h %255s -p %15s %1021[^\n\r]"
#define HIDE_TO_THE_END -3 #define HIDE_TO_THE_END -3
#define HIDE_DISABLED -2 #define HIDE_DISABLED -2
#define HIDE_NOT_STARTED -1 #define HIDE_NOT_STARTED -1
/* prototypes */ /* prototypes */
int is_asn(const char *, int, const char *);
char *guess_server(const char *); char *guess_server(const char *);
const char *match_config_file(const char *); const char *match_config_file(const char *);
const char *whereas(const unsigned long); const char *whereas(const unsigned long);
const char *whereas32(const unsigned long);
char *queryformat(const char *, const char *, const char *); char *queryformat(const char *, const char *, const char *);
int hide_line(int *hiding, const char *const line); int hide_line(int *hiding, const char *const line);
char *query_server(const char *, const char *, const char *); char *do_query(const int, const char *);
char *query_verisign(const char *, const char *, const char *); char *query_crsnic(const int, const char *);
char *query_afilias(const int, const char *);
char *query_iana(const int, const char *);
int openconn(const char *, const char *); int openconn(const char *, const char *);
int connect_with_timeout(int, const struct sockaddr *, socklen_t, int); int connect_with_timeout(int, const struct sockaddr *, socklen_t, int);
void NORETURN usage(int error); void NORETURN usage(int error);
@ -21,6 +25,7 @@ void NORETURN alarm_handler(int);
void NORETURN sighandler(int); void NORETURN sighandler(int);
int japanese_locale(void); int japanese_locale(void);
unsigned long myinet_aton(const char *); unsigned long myinet_aton(const char *);
unsigned long asn32_to_long(const char *);
int isasciidigit(const char); int isasciidigit(const char);
int endstrcaseeq(const char *, const char *); int endstrcaseeq(const char *, const char *);
int in_domain(const char *, const char *); int in_domain(const char *, const char *);