:: What is NicTool
NicTool is a free DNS management suite that takes all the headaches out of managing DNS. It includes an attractive web interface for users, admins, and clients to access and update their DNS zone data as well as a rich API for provisioning systems to interact with. All zone data is stored in MySQL and is extracted by export scripts to the DNS server of choice (tinydns, BIND, PowerDNS). :: nictool.com
:: Installing Dependency
+ Installing Apache and mod_perl
|
1 |
# aptitude install apache2 apache2-dev libapache2-mod-perl2 |
+ Enable mod_pel on apache2
|
1 |
# a2enmod perl |
+ Installing perl modules
|
1 2 3 4 5 6 7 8 |
# perl -MCPAN -e shell
install LWP
install RPC::XML
install SOAP::Lite
install DBI
install DBD::mysql
install Apache2::SOAP
install Digest::HMAC_SHA1 |
+ Installing DNS Server (BIND / TinyDNS)
:: Download Nictool
Register and download Nictool Package on http://www.nictool.com/download/
:: Extracting Nictool
|
1 |
# tar -xf NicTool-2.08.tar |
:: Installing NicTool Client
+ Compiling NicTool Client
|
1 2 3 4 |
# tar -xzf NicToolClient-2.08.tar.gz
# cd NicToolClient-2.08/
# perl Makefile.PL
# make install clean |
+ Moving to our DocumentRoot
|
1 |
# mv ../NicToolClient-2.08 /var/www/NicToolClient |
+ Configure nictoolclient.conf
|
1 |
# vi /var/www/NicToolClient/lib/nictoolclient.conf |
change:
|
1 |
$NicToolClient::app_dir = '/usr/local/www/NicToolClient'; |
to
|
1 |
$NicToolClient::app_dir = '/var/www/NicToolClient'; |
:: Installing Nictool Server
+ Compiling
|
1 2 3 4 5 |
# tar -xzf NicToolServer-2.08.tar.gz
# cd NicToolServer-2.08/
# perl Makefile.PL
# make deps
# make install clean |
+ Move to our DocumentRoot
|
1 |
# mv ../NicToolServer-2.08 /var/www/NicToolServer |
+ Configure VirtualHost on Apache
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# vi /etc/apache2/conf.d/nictool.conf
############
# NicToolServer
############
<IfDefine !MODPERL2>
PerlFreshRestart On
</IfDefine>
PerlTaintCheck Off
Listen 8082
PerlRequire /var/www/NicToolServer/nictoolserver.conf
PerlRequire /var/www/NicToolClient/lib/nictoolclient.conf
<VirtualHost 127.0.0.1:8082>
KeepAlive Off
<Location />
SetHandler perl-script
PerlResponseHandler NicToolServer
</Location>
<Location /soap>
SetHandler perl-script
# ATTENTION: Comment out one or the other!
#PerlResponseHandler Apache::SOAP
PerlResponseHandler Apache2::SOAP
# /ATTENTION
PerlSetVar dispatch_to "/var/www/NicToolServer, NicToolServer::SOAP"
</Location>
</VirtualHost>
###########
# NicToolClient
##########
Listen 8081
<VirtualHost *:8081>
ServerName konsole.com
Alias /images/ "/var/www/NicToolClient/htdocs/images/"
DocumentRoot /var/www/NicToolClient/htdocs
DirectoryIndex index.cgi
<Files "*.cgi">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Files>
<Directory "/var/www/NicToolClient/htdocs">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
You can use different port number.
+ Setup MySQL Databases
|
1 2 |
# cd /var/www/NicToolServer/sql/
# perl create_tables.pl |
+ Configure nictoolserver.conf
|
1 2 3 4 5 6 7 8 |
# vi /var/www/NicToolServer/nictoolserver.conf
#### change on these line, like:
$NicToolServer::db_engine = 'mysql';
$NicToolServer::db_host = 'localhost';
$NicToolServer::db_port = 3306;
$NicToolServer::db = 'nictool';
$NicToolServer::db_user = 'nictool';
$NicToolServer::db_pass = 'nictool'; |
+ Testing Installation
|
1 2 3 |
# cd /var/www/NicToolServer/
# vi t/test.cfg
# perl Makefile.PL |
+ Restarting Apache2
|
1 |
# /etc/init.d/apache2 restart |
:: Login on NicTool


:: Links
+ Google
+ NicToolServer
+ LinuxPower
+ Adityo