[PREVIOUS CHAPTER]
[NEXT CHAPTER]
6 Whois Database
"whois" is FMl local database access method. It is a series of
commands e.g. "whois", "iam", "who". Please see help file for the
usage.
6.1 Introduction
"whois" command of FML provides both local data access
(var/db/whoisdb) and tcp/ip based relay to whois servers at other
hosts. The data format of local database is plain text not usual DB
such as Berkeley DB. "-h host" option makes FML relay the query to the
host whois. If without -h option, FML uses the local database.
6.2 Whois command
$USE_WHOIS = 0; (default 0)
If 0 (default), FML does not use whois database. If you use it, set 1.
This is based on the FML design policy that you can use additional
functions if you explicitly permit it.
Example 1: search the local database for fukachan
% echo "whois fukachan" | Mail Elena-ctl@phys.titech.ac.jp
Example 2: query fukachan to whois of the host
% echo "whois -h host fukachan" | Mail Elena-ctl@phys.titech.ac.jp
6.3 Whois Variables
$DEFAULT_WHOIS_SERVER (default "localhost")
This variable is the default whois sever. However without -h option is
local database search, so the default of whois server is of no mean.
$WHOIS_DB (default "$FP_VARLOG_DIR/whoisdb")
local database file (default $FP_VARLOG_DIR/whoisdb).
6.4 Whois And Japanese Code Translation
$WHOIS_JCODE_P (default 0)
using jcode to translate the result to JIS. Default is 0 (do not translate).
[PREVIOUS CHAPTER]
[NEXT CHAPTER]