| 1 | $Id: INSTALL 530 2013-06-25 21:55:27Z 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 | - Net::SMTP
|
|---|
| 26 | - DBI
|
|---|
| 27 | - DBD::Pg
|
|---|
| 28 | - NetAddr::IP >= 4.x. 3.x may work, however 4.x has been out for
|
|---|
| 29 | more than 4 years.
|
|---|
| 30 | - Frontier::Responder (only required if using dns-rpc.cgi)
|
|---|
| 31 | - FCGI (only required if you want to run the RPC script as FastCGI)
|
|---|
| 32 | - tinydns - support for other DNS server software is planned
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | Installing DeepNet DNS Administrator
|
|---|
| 36 | ====================================
|
|---|
| 37 |
|
|---|
| 38 | 1) Untar in a convenient location. You should be able to simply use the
|
|---|
| 39 | unpacked tarball as-is, or you can run "make install" to install files
|
|---|
| 40 | in /usr/local/share/dnsadmin-#VERSION#, with configuration in
|
|---|
| 41 | /usr/local/etc/dnsdb.
|
|---|
| 42 |
|
|---|
| 43 | The Makefile supports substitution on most standard GNU/FHS-ish paths,
|
|---|
| 44 | so you could also run:
|
|---|
| 45 |
|
|---|
| 46 | make install prefix=/opt
|
|---|
| 47 |
|
|---|
| 48 | to install it under /opt.
|
|---|
| 49 |
|
|---|
| 50 | The Makefile also supports DESTDIR for packaging, so you can use:
|
|---|
| 51 |
|
|---|
| 52 | make install datadir=/usr/share sysconfdir=/etc DESTDIR=/tmp/dnsdbpkgroot
|
|---|
| 53 |
|
|---|
| 54 | to install for packaging under /tmp/dnsdbpkgroot with the core scripts
|
|---|
| 55 | and HTML packaged under /usr/share/dnsdb-#VERSION#, and the configuration
|
|---|
| 56 | packaged under /etc/dnsdb.
|
|---|
| 57 |
|
|---|
| 58 | 2) Configuration: By default DNS Administrator looks for configuration in
|
|---|
| 59 | /etc/dnsdb/dnsdb.conf. Edit this file with the database name, user, and
|
|---|
| 60 | password, and the database host if necessary.
|
|---|
| 61 |
|
|---|
| 62 | Setting the options under the "mail" heading is also recommended.
|
|---|
| 63 |
|
|---|
| 64 | 3) As a Postgres superuser, create a database user and the database (replace
|
|---|
| 65 | the database name, user and password as appropriate):
|
|---|
| 66 |
|
|---|
| 67 | shell> psql template1
|
|---|
| 68 | pg# create user dnsdb with password "dnsdbpwd";
|
|---|
| 69 | pg# create database dnsdb owner dnsdb;
|
|---|
| 70 |
|
|---|
| 71 | Create the inital tables using dns.sql:
|
|---|
| 72 |
|
|---|
| 73 | shell> psql -U dnsdb dnsdb <dns.sql
|
|---|
| 74 |
|
|---|
| 75 | 4) Configure your webserver to call the DNS Administrator scripts
|
|---|
| 76 | at an appropriate web path. A webroot pointing to the unpacked tarball
|
|---|
| 77 | directory or the default install location /usr/local/lib/dnsadmin-#VERSION#
|
|---|
| 78 | should work fine; a directory alias under an existing virtual host should
|
|---|
| 79 | work as well.
|
|---|
| 80 |
|
|---|
| 81 | The directory containing the HTML and scripts must have at least the
|
|---|
| 82 | following Apache directives (or other server equivalent) set:
|
|---|
| 83 |
|
|---|
| 84 | Options ExecCGI IncludesNoEXEC
|
|---|
| 85 |
|
|---|
| 86 | 5) A default user "admin", password "admin" is created when you create
|
|---|
| 87 | the initial tables in step 3. You should at least change the password
|
|---|
| 88 | on this account, or create another superuser account and remove this
|
|---|
| 89 | one.
|
|---|
| 90 |
|
|---|
| 91 | ---
|
|---|
| 92 |
|
|---|
| 93 | Basic installation should now be complete! Log in and start adding
|
|---|
| 94 | your domains and reverse zones and their records.
|
|---|
| 95 |
|
|---|
| 96 | A minimal export script is included (export.pl). This should be modified
|
|---|
| 97 | to create the tinydns data file where appropriate for your installation,
|
|---|
| 98 | and set to be called from cron on a regular basis.
|
|---|