1 | $Id: INSTALL 218 2012-01-05 23:04:18Z kdeugau $
|
---|
2 |
|
---|
3 | Requirements
|
---|
4 | ============
|
---|
5 |
|
---|
6 | - Any CGI-capable web server that can execute arbitrary files or
|
---|
7 | files with administrator-defineable extensions
|
---|
8 | - PostgreSQL >= 7.4. It should be possible to trivially convert to
|
---|
9 | other DBMSes, however I recommend against any that don't fully
|
---|
10 | support transactions on all changes.
|
---|
11 | - Perl >= 5.6
|
---|
12 | - Standard modules:
|
---|
13 | These should be included in any base Perl install
|
---|
14 | - CGI::Carp
|
---|
15 | - POSIX
|
---|
16 | - Text::Wrap - for WHOIS response linewrapping
|
---|
17 | - Extra modules:
|
---|
18 | - CGI::Simple
|
---|
19 | - HTML::Template
|
---|
20 | - CGI::Session
|
---|
21 | - Crypt::PasswdMD5 (primary password encryption)
|
---|
22 | - Digest::MD5 (for imported VegaDNS passwords)
|
---|
23 | - Net::Whois::Raw
|
---|
24 | - Net::DNS
|
---|
25 | - DBI
|
---|
26 | - DBD::Pg
|
---|
27 | - NetAddr::IP >= 4.x. 3.x may work, however 4.x has been out for
|
---|
28 | more than 4 years.
|
---|
29 | - tinydns - support for other DNS server software is planned
|
---|
30 |
|
---|
31 | Installing DeepNet DNS Administrator
|
---|
32 | ====================================
|
---|
33 |
|
---|
34 | 1) Untar in a convenient location. You should be able to simply use the
|
---|
35 | unpacked tarball as-is, or you can run "make install" to install files
|
---|
36 | in /usr/local/share/dnsadmin-#VERSION#, with configuration in
|
---|
37 | /usr/local/etc/dnsdb.
|
---|
38 |
|
---|
39 | The Makefile supports substitution on most standard GNU/FHS-ish paths,
|
---|
40 | so you could also run:
|
---|
41 |
|
---|
42 | make install prefix=/opt
|
---|
43 |
|
---|
44 | to install it under /opt.
|
---|
45 |
|
---|
46 | The Makefile also supports DESTDIR for packaging, so you can use:
|
---|
47 |
|
---|
48 | make install datadir=/usr/share sysconfdir=/etc DESTDIR=/tmp/dnsdbpkgroot
|
---|
49 |
|
---|
50 | to install for packaging under /tmp/dnsdbpkgroot with the core scripts
|
---|
51 | and HTML packaged under /usr/share/dnsdb-#VERSION#, and the configuration
|
---|
52 | packaged under /etc/dnsdb.
|
---|
53 |
|
---|
54 | 2) Configuration: By default DNS Administrator looks for configuration in
|
---|
55 | /etc/dnsdb/dnsdb.conf. Edit this file with the database name, user, and
|
---|
56 | password, and the database host if necessary.
|
---|
57 |
|
---|
58 | Setting the options under the "mail" heading is also recommended.
|
---|
59 |
|
---|
60 | 3) As a Postgres superuser, create a database user and the database (replace
|
---|
61 | the database name, user and password as appropriate):
|
---|
62 |
|
---|
63 | shell> psql template1
|
---|
64 | pg# create user dnsdb with password "dnsdbpwd";
|
---|
65 | pg# create database dnsdb owner dnsdb;
|
---|
66 |
|
---|
67 | Create the inital tables using dns.sql:
|
---|
68 |
|
---|
69 | shell> psql -U dnsdb dnsdb <dns.sql
|
---|
70 |
|
---|
71 |
|
---|
72 | ##work
|
---|
73 | 4) Configure your webserver to call the DNS Administrator scripts
|
---|
74 | at an appropriate web path. A webroot pointing to the HTML files
|
---|
75 | (first level under the dnsadmin-#VERSION#/ tarball directory, or
|
---|
76 | /usr/local/lib/dnsadmin-#VERSION#) should work fine; a server
|
---|
77 | alias under an existing virtual host should work as well.
|
---|
78 |
|
---|
79 | The directory containing the HTML and scripts must have at least the
|
---|
80 | following Apache directives (or other server equivalent) set:
|
---|
81 |
|
---|
82 | Options ExecCGI IncludesNoEXEC
|
---|
83 |
|
---|
84 | 5) A default user "admin", password "admin" is created when you create
|
---|
85 | the initial tables in step 3. You should at least change the password
|
---|
86 | on this account, or create another superuser account and remove this
|
---|
87 | one.
|
---|
88 |
|
---|
89 | ---
|
---|
90 |
|
---|
91 | Basic installation should now be complete! Log in and start adding
|
---|
92 | your domains and domain records.
|
---|
93 |
|
---|
94 | A minimal export script is included (export.pl). This should be modified
|
---|
95 | to create the tinydns data file where appropriate for your installation,
|
---|
96 | and set to be called from cron on a regular basis.
|
---|