1# PWHOIS SERVER CONFIGURATION
2
3#################################################################
4# File Format
5#################################################################
6
7# The format of this file is a simple key=value pair file
8# where the key must be a specific string predefined, and the value
9# may be a word, or muliple words with spaces or other special
10# characters enclosed in quotations.
11#
12# blank lines and lines that begin with '#' sign are ignored.
13
14#################################################################
15# Database Connection Settings
16#################################################################
17
18# supported types are 'mysql'
19# for mysql, the database is assumed to be local (uses Unix domain socket
20# instead of TCP socket) and the db.server name setting is ignored.
21
22db.type=mysql
23# db.server=localhost
24db.name=pwhois
25db.user=pwhois
26db.password="pwhois"
27
28#################################################################
29# Route View Server Settings
30#################################################################
31
32routeview.1=route-views2.routeviews.org
33routeview.1.port=23
34#routeview.1.user=pwhois
35#routeview.1.password=pwhois
36routeview.1.send-keep-alive=1
37#routeview.1.filter-by-source-as=<asn>
38
39# FUTURE USE
40#routeview.2=
41#routeview.3=
42
43# override the dataset the server will respond to queries with and
44# select only from one source router -- this is useful only at
45# this point for testing purposes, as the server doesn't support
46# response from multiple sources yet -- see pwhois-updatedb --help
47# for details on controlling the router-id when loading data from
48# a file and not directly on the TCP socket
49#pwhoisd.router-id=1.2.3.4
50
51#################################################################
52# General Server Settings
53#################################################################
54
55# verbose (debug is 2 or greater)
56pwhoisd.verbose=1
57# use syslog (LOCAL1 facility)
58pwhoisd.logfile=syslog
59# write directly to a log file
60#pwhoisd.logfile=/var/log/pwhois/pwhoisd.log
61#pwhoisd.pidfile=/var/run/pwhoisd.pid
62
63# socket information
64
65#pwhoisd.bind=127.0.0.1
66#pwhoisd.port=43
67
68# UID/GID to run as (drop privledges to after bind on socket)
69pwhoisd.uid=512
70pwhoisd.gid=512
71
72#pwhoisd.default.queries.max=5000
73
74# information for pwhois-updatedb process
75
76# verbose (debug is 2 or greater)
77pwhois-updatedb.verbose=1
78pwhois-updatedb.logfile=/var/log/pwhois/pwhois-updatedb.log
79
80#performance control parameters
81#length of established connections queue
82pwhoisd.listenq=5
83#length of threads pool
84pwhoisd.threadsq=20
85
86#################################################################
87# Registry (WHOIS) Database Settings
88#################################################################
89
90# enable registry database lookups and loading of netnames
91
92registry.database=1
93
94# This required the loading of the data from ARIN or another provider
95# via the 'pwhois-update --import-whois-dump -i <file>' command
96# Is this is enabled, and no registry data is available, it shouldn't
97# cause any problems but will slow down the startup of the server
98# process
99# Data in RPSL format can be loaded with --import-rpsl-dump
100
101
102#################################################################
103# GEO Database Settings
104#################################################################
105
106# enable geo database resolution of geo location information
107# this requires an external GEO data source and loading the
108# geo data into those database tables.  We unfortunately can not
109# include the GEO data the release, as we have not found a free
110# source of this data that will allow this.  See however
111# the geo-update.sql script under mysql/ for more information on how
112# to load the data once you get access to it from your provider.
113
114geo.database=1
115
116#################################################################
117# Fast LOAD  -- load data from binary cache files, not from db
118#################################################################
119
120fastload.acldb=/var/db/pwhois/acl.pwdump
121fastload.asndb=/var/db/pwhois/asn.pwdump
122fastload.geodb=/var/db/pwhois/geo.pwdump
123fastload.netdb=/var/db/pwhois/net.pwdump
124fastload.orgdb=/var/db/pwhois/org.pwdump
125fastload.pocdb=/var/db/pwhois/poc.pwdump
126fastload.roudb=/var/db/pwhois/rou.pwdump
127fastload=1
128
129# NOTE: the prepwpdump program reads these values above and will
130# store new files it downloads in this directory with the same file
131# name but with a .tmp extension (not to overwrite your existing files)
132# just move these over the old ones and then send a SIGHUP to pwhoisd
133# to have it reread these files and load the new data.
134