diff --git a/Makefile b/Makefile index 9e97ace..1f84e2f 100644 --- a/Makefile +++ b/Makefile @@ -93,8 +93,10 @@ install: install-whois install-mkpasswd install-pos install-whois: whois $(INSTALL) -d $(BASEDIR)$(prefix)/bin/ $(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/ + $(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man5/ $(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/ $(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/ + $(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/share/man/man5/ install-mkpasswd: mkpasswd $(INSTALL) -d $(BASEDIR)$(prefix)/bin/ diff --git a/whois.1 b/whois.1 index 4eb089a..595199f 100644 --- a/whois.1 +++ b/whois.1 @@ -200,6 +200,8 @@ This server will be queried if the program cannot guess where some kind of objects are located. If the variable does not exist then \fIwhois.arin.net\fP will be queried. .SH "SEE ALSO" +\fBwhois.conf\fP(5) +.PP \fIRFC 3912\fP: WHOIS Protocol Specification .PP \fIRIPE Database Query Reference Manual:\fP diff --git a/whois.conf.5 b/whois.conf.5 new file mode 100644 index 0000000..27cc66d --- /dev/null +++ b/whois.conf.5 @@ -0,0 +1,44 @@ +.TH "WHOIS.CONF" "5" "9 April 2013" "Petr Písař" "Debian GNU/Linux" + +.SH "NAME" +whois.conf \- alternative WHOIS servers list for whois client + +.SH "SYNOPSIS" +.B /etc/whois.conf + +.SH "DESCRIPTION" +This file contains a list of WHOIS servers which can augment or override +the built-in list of the client. + +It's a plain text file in ASCII encoding. Each line consists of two fields: +a pattern to match WHOIS object identifier and a corresponding WHOIS server +domain name. + +Fields are separated by non-empty sequence of space or a tabular characters. +A line starting with a hash character is a free comment and it's not +considered. + +The pattern is case-insensitive extended regular expression if whois client +has been compiled with POSIX regular expressions support. Otherwise, simple +case-insensitive suffix comparison against WHOIS object identifier is used. + +Internationalized domain names (IDN) must be specified in ascii-compatible +encoding (ACE) format. + +.SH "EXAMPLE" +\\.nz$ nz.whois-servers.net +.br +# Hangul Korean TLD +.br +\\.xn--3e0b707e$ whois.kr + +.SH "FILES" +/etc/whois.conf + +.SH "SEE ALSO" +\fBwhois\fP(1) + +.SH "AUTHOR" +This manual page was written by Petr Písař <\fIppisar@redhat.com\fP> +and is licensed under the terms of the GNU General Public License, +version 2 or higher.