:: 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

# aptitude install apache2 apache2-dev libapache2-mod-perl2

+ Enable mod_pel on apache2

# a2enmod perl

+ Installing perl modules

# 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 //www.nictool.com/download/
 
:: Extracting Nictool

# tar -xf NicTool-2.08.tar

 
:: Installing NicTool Client
+ Compiling NicTool Client

# tar -xzf NicToolClient-2.08.tar.gz
# cd NicToolClient-2.08/
# perl Makefile.PL
# make install clean

+ Moving to our DocumentRoot

# mv ../NicToolClient-2.08 /var/www/NicToolClient

+ Configure nictoolclient.conf

# vi /var/www/NicToolClient/lib/nictoolclient.conf

change:

$NicToolClient::app_dir     = '/usr/local/www/NicToolClient';

to

$NicToolClient::app_dir     = '/var/www/NicToolClient';

 
:: Installing Nictool Server
+ Compiling

# tar -xzf NicToolServer-2.08.tar.gz
# cd NicToolServer-2.08/
# perl Makefile.PL
# make deps
# make install clean

+ Move to our DocumentRoot

# mv ../NicToolServer-2.08 /var/www/NicToolServer

+ Configure VirtualHost on Apache

# 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

# cd /var/www/NicToolServer/sql/
# perl create_tables.pl

+ Configure nictoolserver.conf

# 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

# cd /var/www/NicToolServer/
# vi t/test.cfg
# perl Makefile.PL

+ Restarting Apache2

# /etc/init.d/apache2 restart

 

:: Login on NicTool

 
:: Links
+ Google
+ NicToolServer
+ LinuxPower
+ Adityo

Hi, I’m Sysadmin.ID

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *