{"id":113,"date":"2009-01-06T08:37:10","date_gmt":"2009-01-06T01:37:10","guid":{"rendered":"http:\/\/blog.binus-edu.com\/?p=113"},"modified":"2009-04-02T11:00:53","modified_gmt":"2009-04-02T04:00:53","slug":"how-to-install-nictool-client-and-server-on-centos","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=113","title":{"rendered":"How to install Nictool (Client and Server) on CentOS"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h3><span style=\"font-size: larger;\">What is Nictool ?<\/span><\/h3>\n<p style=\"text-align: justify;\">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).<\/p>\n<p class=\"rteleft\">Updates are all parsed for validity before being accepted. All changes are logged and it&#8217;s easy to determine who made any given change, and when. Permissions are extremely granular. You can delegate permission for a zone to another user, or group of users. You can even delegate only specific zone records to other users or groups. You can grant others permission to publish to your DNS servers, but not the ability to alter them.<\/p>\n<p class=\"rteleft\">NicTool is the holy grail of DNS management packages. It works great for managing one zone, or a million of them.<\/p>\n<p style=\"text-align: justify;\">&nbsp;<strong>System Requirement<\/strong><\/p>\n<p style=\"text-align: justify;\">&#8211; apache<\/p>\n<p style=\"text-align: justify;\">&#8211; mod_perl<\/p>\n<p style=\"text-align: justify;\">&#8211; perl modules<\/p>\n<p style=\"text-align: justify;\">&#8211; DNS (TinyDNS or BIND)<\/p>\n<p style=\"text-align: justify;\"><strong>Installation<\/strong><\/p>\n<p style=\"text-align: justify;\">There will be 2 part of NIctool that we need to install NictoolServer and NictoolClient, please go to http:\/\/nictool.com\/download\/ ,&nbsp; register and download the free option.<\/p>\n<p style=\"text-align: justify;\">Let&#8217;s start install the perl module through CPAN<\/p>\n<pre>\n  # perl -MCPAN -e shell\n  cpan&gt; install LWP\n  cpan&gt; install RPC::XML\n  cpan&gt; install SOAP::Lite\n  cpan&gt; install DBI\n  cpan&gt; install DBD::mysql\n  cpan&gt; install Apache2::SOAP\n\nDownload the Nictool sources on http:\/\/www.nictool.com\/download\/ , register and download it\n\n<\/pre>\n<p style=\"text-align: justify;\">1. unzip the package<\/p>\n<p style=\"text-align: justify;\"># tar -zxvf NicTool-2.07.tgz<\/p>\n<p style=\"text-align: justify;\">there will be 2 packet the nictool client and nictoolserver<\/p>\n<p style=\"text-align: justify;\">&#8211; NicToolServer-2.07.tar.gz<\/p>\n<p style=\"text-align: justify;\">&#8211; NicToolClient-2.07.tar.gz<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: larger;\">Install the NicToolClient <\/span><\/p>\n<p style=\"text-align: justify;\">2. unzip the NictoolClient package<\/p>\n<p style=\"text-align: justify;\"># tar -zxvf NicToolClient-2.07.tar.gz<\/p>\n<p style=\"text-align: justify;\">3. go to NicToolClient-2.07 folder and install the perl modules<\/p>\n<p style=\"text-align: justify;\"># cd NicToolClient-2.0<\/p>\n<p style=\"text-align: justify;\"># perl Makefile.PL<br \/>\nChecking if your kit is complete&#8230;<br \/>\nLooks good<br \/>\nWriting Makefile for NicToolClient<\/p>\n<p style=\"text-align: justify;\">common error :<\/p>\n<p style=\"text-align: justify;\">#perl Makefile.PL<br \/>\nWARNING: LICENSE is not a known parameter.<br \/>\nChecking if your kit is complete&#8230;<br \/>\nLooks good<br \/>\nWarning: prerequisite RPC::XML 1 not found.<br \/>\nWarning: prerequisite SOAP::Lite 0 not found.<br \/>\n&#8216;LICENSE&#8217; is not a known MakeMaker parameter name.<br \/>\nWriting Makefile for NicToolClient<br \/>\n&nbsp;the error means that we need to instal perl module RPC::XML and SOAP::Lite<\/p>\n<pre>\n# perl -MCPAN -e shell\n  cpan&gt; install RPC::XML\n  cpan&gt; install SOAP::Lite\n <\/pre>\n<p style=\"text-align: justify;\">Then after there is no error you can start make install<br \/>\n# make install clean<\/p>\n<p style=\"text-align: justify;\">4 .Move the distribution to your own httpd virtual domain ( in my case it is on \/home\/lineabsolute.com\/public_html\/ ) and rename it to NicToolClient<\/p>\n<blockquote><\/blockquote>\n<p style=\"text-align: justify;\"># mv NicToolClient-2.07 \/home\/line.com\/public_html\/<\/p>\n<p style=\"text-align: justify;\"># cd&nbsp; \/home\/lineabsolute.com\/public_html\/<\/p>\n<p style=\"text-align: justify;\"># mv NicToolClient-2.07 NicToolClient<\/p>\n<p style=\"text-align: justify;\">&nbsp;5. Configure Apache httpd.conf ( \/etc\/httpd\/conf\/httpd.conf )<\/p>\n<p style=\"text-align: justify;\"># vi \/etc\/httpd\/conf\/httpd.conf<\/p>\n<p style=\"text-align: justify;\">&lt;VirtualHost 101.99.111.11:80&gt;<br \/>\n&nbsp;&nbsp;&nbsp; # force a https connection<br \/>\n&nbsp;&nbsp;&nbsp; ServerName test.com<br \/>\n&nbsp;&nbsp;&nbsp; Redirect permanent \/ https:\/\/test.com\/<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>&nbsp;&lt;VirtualHost&nbsp; 101.99.111.11:443&gt;<br \/>\n&nbsp;&nbsp;&nbsp; ServerName test.com<br \/>\n&nbsp;&nbsp;&nbsp; Alias \/images\/ &quot;\/home\/line.com\/public_html\/NicToolClient\/htdocs\/images\/&quot;<br \/>\n&nbsp;&nbsp;&nbsp; DocumentRoot \/home\/line.com\/public_html\/NicToolClient\/htdocs<br \/>\n&nbsp;&nbsp;&nbsp; DirectoryIndex index.cgi<br \/>\n&nbsp;&nbsp;&nbsp; SSLEngine on<br \/>\n&nbsp;&nbsp;&nbsp; SSLCertificateFile \/etc\/pki\/tls\/certs\/ca-bundle.crt<br \/>\n&nbsp;&nbsp;&nbsp; SSLCertificateKeyFile \/etc\/postfix\/ssl\/smtpd.key<\/p>\n<p>&nbsp;&nbsp;&nbsp; &lt;Files &quot;*.cgi&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetHandler perl-script<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PerlResponseHandler ModPerl::Registry<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PerlOptions +ParseHeaders<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options +ExecCGI<br \/>\n&nbsp;&nbsp;&nbsp; &lt;\/Files&gt;<\/p>\n<p>&nbsp;&nbsp;&nbsp; &lt;Directory &quot;\/home\/line.com\/public_html\/NicToolClient\/htdocs&quot;&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride None<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Order allow,deny<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br \/>\n&nbsp;&nbsp;&nbsp; &lt;\/Directory&gt;<br \/>\n&nbsp; &lt;\/VirtualHost&gt;<br \/>\n&nbsp;<\/p>\n<blockquote><\/blockquote>\n<p style=\"text-align: justify;\">&nbsp;6. Configure nictoolclient.conf<\/p>\n<p style=\"text-align: justify;\">#vi \/home\/line.com\/public_html\/NicToolClient\/lib\/nictoolclient.conf<\/p>\n<p style=\"text-align: justify;\">changes $NicToolClient::app_dir&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; into your httpd virtual directory path , in my case it is<\/p>\n<p style=\"text-align: justify;\">BEGIN {<br \/>\n&nbsp;&nbsp;&nbsp; $NicToolClient::app_dir&nbsp;&nbsp;&nbsp;&nbsp; = &#8216;\/home\/line.com\/public_html\/NicToolClient&#8217;;<br \/>\n7. Restart the Apache<\/p>\n<p style=\"text-align: justify;\"># service httpd restart<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: larger;\">Install the NicToolServer<\/span><\/p>\n<p>1.Unzip the NicToolServer package that we have already download<\/p>\n<p># tar zxvf NicToolServer-2.07.tar.gz<\/p>\n<p style=\"text-align: justify;\">2. Install dependencies<\/p>\n<blockquote>\n<p>NicTool requires that Apache and mod_perl be installed. There&#8217;s a brief <a href=\"http:\/\/www.nictool.com\/docs\/server\/apache.shtml\">which Apache<\/a> discussion here.<\/p>\n<pre>\ncd  NicToolServer-2.07\nperl Makefile.PL\nmake deps<\/pre>\n<p>The &#8216;make deps&#8217; target will install the required perl modules via ports on FreeBSD\/Darwin and via CPAN on everything else. If ports are unavailable, CPAN is used.<\/p>\n<\/blockquote>\n<p style=\"text-align: justify;\">&nbsp;3.Install the perl modules:<\/p>\n<p style=\"text-align: justify;\">#make install clean<\/p>\n<p style=\"text-align: justify;\">4.Move the distribution to your own httpd virtual domain ( in my case it is on \/home\/line.com\/public_html\/ ) and rename it to NicToolServer<\/p>\n<p style=\"text-align: justify;\"># mv NicToolServer-2.07 \/home\/line.com\/public_html\/<\/p>\n<p style=\"text-align: justify;\"># cd&nbsp; \/home\/line.com\/public_html\/<\/p>\n<p style=\"text-align: justify;\"># mv NicToolServer-2.07 NicToolClient<\/p>\n<p style=\"text-align: justify;\">5.Configure Apache httpd.conf ( \/etc\/httpd\/conf\/httpd.conf ), add this below the nictoolclient httpd config<\/p>\n<p style=\"text-align: justify;\">&lt;IfDefine !MODPERL2&gt;<br \/>\n&nbsp;&nbsp; PerlFreshRestart On<br \/>\n&lt;\/IfDefine&gt;<br \/>\nPerlTaintCheck Off<\/p>\n<p>Listen 8082<\/p>\n<p>PerlRequire \/home\/line.com\/public_html\/NicToolServer\/nictoolserver.conf<br \/>\nPerlRequire \/home\/line.com\/public_html\/NicToolClient\/lib\/nictoolclient.conf<\/p>\n<p>&lt;VirtualHost 127.0.0.1:8082&gt;<br \/>\n&nbsp;&nbsp;&nbsp; KeepAlive Off<br \/>\n&nbsp;&nbsp;&nbsp; &lt;Location \/&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetHandler perl-script<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PerlResponseHandler NicToolServer<br \/>\n&nbsp;&nbsp;&nbsp; &lt;\/Location&gt;<br \/>\n&nbsp;&nbsp;&nbsp; &lt;Location \/soap&gt;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetHandler perl-script<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PerlResponseHandler Apache2::SOAP<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # \/ATTENTION<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PerlSetVar dispatch_to &quot;\/home\/line.com\/public_html\/NicToolServer, NicToolServer::SOAP&quot;<br \/>\n&nbsp;&nbsp;&nbsp; &lt;\/Location&gt;<br \/>\n&lt;\/VirtualHost&gt;<br \/>\n&nbsp;<\/p>\n<p style=\"text-align: justify;\">6. Create MySQL database and permissions.<\/p>\n<p style=\"text-align: justify;\">#cd \/home\/line.com\/public_html\/NicToolServer\/sql<br \/>\n#perl create_tables.pl<\/p>\n<p style=\"text-align: justify;\">7.Configure nictoolserver.conf<\/p>\n<p style=\"text-align: justify;\">&nbsp;&#8211; remove the comment of use Apache2::SOAP;&nbsp; line 21<\/p>\n<p style=\"text-align: justify;\">&#8211; set the mysql username, dbname, password on line 49 -51<\/p>\n<p style=\"text-align: justify;\">&nbsp; $NicToolServer::db&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =<br \/>\n&nbsp; $NicToolServer::db_user&nbsp;&nbsp;&nbsp; &nbsp; =<br \/>\n&nbsp; $NicToolServer::db_pass&nbsp;&nbsp;&nbsp;&nbsp; =<\/p>\n<p style=\"text-align: justify;\">8.Restart Apache<\/p>\n<p style=\"text-align: justify;\">#service httpd restart<\/p>\n<p style=\"text-align: justify;\">&nbsp;<\/p>\n<p style=\"text-align: justify;\">Now you can access it using your root username and password that you created when you run perl create_tables.pl<\/p>\n<p style=\"text-align: justify;\">&nbsp;<strong>Screen captures&nbsp;:<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong>Login<\/strong><\/p>\n<p style=\"text-align: justify;\">&nbsp;<input height=\"252\" width=\"500\" type=\"image\" src=\"http:\/\/blog.binus-edu.com\/wp-content\/uploads\/niclogin%281%29.jpg\" \/><\/p>\n<p style=\"text-align: justify;\">First page after login<\/p>\n<p style=\"text-align: justify;\"><input height=\"258\" width=\"500\" type=\"image\" src=\"http:\/\/blog.binus-edu.com\/wp-content\/uploads\/nic2.jpg\" \/><\/p>\n<p style=\"text-align: justify;\">Create zone<\/p>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" height=\"258\" width=\"500\" src=\"http:\/\/blog.binus-edu.com\/wp-content\/uploads\/nic3.jpg\" alt=\"\" \/><\/p>\n<p style=\"text-align: justify;\">Create Nameserver<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" src=\"http:\/\/blog.binus-edu.com\/wp-content\/uploads\/nic5.jpg\" alt=\"\" \/><\/p>\n<p style=\"text-align: justify;\">Create new user<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" src=\"http:\/\/blog.binus-edu.com\/wp-content\/uploads\/nic4.jpg\" alt=\"\" \/><\/p>\n<p style=\"text-align: justify;\">&nbsp;<\/p>\n<p style=\"text-align: justify;\">&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[487,492],"tags":[908],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-centos","category-nictool","tag-nictools-on-centos"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=113"}],"version-history":[{"count":1,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}