Personal tools
Namespaces

Variants
Actions

DNS Manager For WHMCS

From ModulesGarden Wiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
  
 
{|
 
{|
|style="padding: 0px 0px 10px 0px;"|
+
|style="padding: 0px 0px 10px 0px;"|=About DNS Manager For WHMCS=
 
|}
 
|}
  
=About DNS Manager For WHMCS=
+
 
 
{|
 
{|
 
|style="padding: 0px 0px 10px 0px;"|'''ModulesGarden's DNS Manager For WHMCS''' is fully featured addon module that allows your customers to manage their DNS zones.<br />
 
|style="padding: 0px 0px 10px 0px;"|'''ModulesGarden's DNS Manager For WHMCS''' is fully featured addon module that allows your customers to manage their DNS zones.<br />

Revision as of 12:50, 25 October 2012

=About DNS Manager For WHMCS=


ModulesGarden's DNS Manager For WHMCS is fully featured addon module that allows your customers to manage their DNS zones.

Owing to great choice of submodules and unprecedented functionality DNS Manager for WHMCS easily adapts to your specific needs.
As an administrator you have full control over DNS zones and also access to broad range of options.

  • DNS Manager supports following modules:
✔ cPanel
✔ Rage4 DNS
✔ 4PSA
✔ Zonomi
✔ PowerDNS
✔ Opensrs
✔ Rackspace
✔ DNS.com
✔ SimpleDNS
✔ DirectAdmin
  • DNS Manager functionality:
✔ Multiservers Functionality
✔ Reverse DNS: Supported by cPanel, StormOfDemand And SimpleDNS
✔ History Logs
✔ Zones Synchronization with CRON + Whitelist (Deactivate Domains With Wrong Nameservers)
✔ SimpleDNS rDNS Functionality
✔ Disable Records Functionality
✔ Import Tool: cPanel, 4PSA, HostBill
✔ Filtering And Paging In Clientarea
✔ 'Manage DNS' Button In Zones List In Admin Area
✔ Balloon Descriptions Implemented To Facilitate Understanding Of DNS Manager
✔ IDN Zones Supported
✔ Add/Delete Zones
✔ Add/Edit/Delete Zone Records
✔ TWO CLIENT AREA TEMPLATES: 'One Page' and 'Subpages'
✔ Allow Users To Create Zones
✔ Providing DNS Management Only Together With The Order Of Specific Domain/Product/Addon
✔ Default Records Configuration
✔ NameServers Configuration
✔ List Zones Management in Admin Area
✔ MULTILANGUAGE
✔ WHMCS V4 and V5 Compatibility

Contents

Installation

In this short tutorial we will show you how to successfully install DNS Manager For WHMCS.

We will guide you step by step through the whole installation process.

1. Login to your clientarea and download DNS Manager.
Step1DNSb.png
2. Upload and extract the module into the main whmcs directory.
Files in your WHMCS directory should look like this.
File:Step2DNSb.png
3. Now you have to activate the module in your WHMCS system.
Login to your WHMCS admin area. Click 'Setup' then choose 'Addon Modules' .
Afterwards find 'DNS Manager' and press 'Activate' button.
File:Step3DNSb.png
4. In next step you need to permit access to this module. To do so choose 'Full Administrator' and press 'Save Changes' .
File:Step5DNSb.png
5. When you install DNS Manager for the first time you have to rename 'license_RENAME.php' file.
File is located at 'modules/addons/dns_manager/license_RENAME.php.' Rename it from 'license_RENAME.php' to 'license.php' .
File:Step6DNS.png
6. In order to configure your license key you have to edit a previously renamed 'license.php' file.
Enter your licence key between quotation marks as presented on the following screen. You can find your license key at your clientarea -> 'My Products' .
File:Step7DNS.png
7. After correct configuration of your license key, you have to configure 'clientareahome.tpl' file located in your currently used templates directory.
The screen below shows how you should properly configure 'clientareahome.tpl' file.
File:Step8DNS.png
Copy and paste the following code at the beginning of your 'clientareahome.tpl' file:
{php} 
if(isset($_GET['managedns'])) {
require_once substr($this->template_dir, 0 , strpos($this->template_dir, '/templates'))."/templates/dns_templates/dns_controller.php";
}{/php}
{if !$dnsmanagement}
Now copy and paste the following code as the last line in the 'clientareahome.tpl' file:
{/if}
For the purposes of presentation we will edit file in default template. Its localization is 'whmcs/templates/default/clientareahome.tpl' .
Here you can download 'clientareahome.tpl' file to see how this file should look like after proper configuring.
7*. If you are using WHMCS v4, you have to rename (ex. dns_hooks.php) and copy 'modules/addons/dns_manager/hooks.php' to the 'includes/hooks/' directory.
8. Good job! You have just successfully installed DNS Manager For WHMCS! Now in your WHMCS system press 'Addons' then press 'DNS Manager' .
You should see a following screen.
File:Step9DNSx.png
To provide a DNS management in clientarea simply use this adress 'your_whmcs_url/clientarea.php?managedns' . Replace 'your_whmcs_url' with adress of your whmcs directory.
After you type the correct address you will see a screen as shown below. That's the proof that the entire installation process was successfully completed.
File:Step10DNSb.png

Configuration

Connection and Basic Configuration

At the beginning let's connect DNS Manager with your module. We will show you this process by connecting with cPanel.
In your WHMCS click on 'Addons' then choose 'DNS Manager' . Go to 'Configuration -> Connection' section.
Choose Cpanel from a dropdown menu. Enter your username, user password, Hostname/IP and press 'Test Connection' .
After the appearance of the green sentence 'Connect Succuessful' you can press 'Save' .
Here you can also allow to create DNS zones when already in cPanel as account.
File:DNS1x.png
Now press 'Name Servers' and enter the nameservers that will be visible for your customers in their clientarea.
File:DNS2x.png

Configuration of Processing

In configuration section press 'Processing' . You will see a following screen.
File:DNS3x.png
There are several configuration options. We will present you each one of them.
You can allow DNS zones to create automatically with certain domains, products or products addons. You can also enable Reverse DNS here.
Beneath 'Automatically create zones:' mark for example 'With Product Addons' and select previously created addon/s. We chose 'Great Addon' .
That's it, press Save button. From now on DNS zones will be automatically created with product addon 'Great Addon' .
File:DNS4x.png
You can allow your customers to create their own DNS zones from clientarea for free. For this purpose tick 'Allow to create own zones' -> 'Free for all registered customers' and press 'Save' .
Afterwards all your registered clients will be allowed to create their own DNS zones regardless of registered domains or chosen products.
File:DNS5x.png
There is also an option to allow your customers to create their own DNS zones with for example certain product.
Tick 'Allow to create own zones' -> 'WithProducts' and select previously created product/s. We chose 'DNS Management Product' .
That's all, press Save button. Afterwards your customers will be allowed to create their own DNS zones only together with the order of this product.
File:DNS6x.png
Please note that while using 'Allow to create own zones' option client's product should have a Dedicated IP to allow create own zones.

If client's product doesn't have Dedicated IP then client will see a following screen and won't be allowed to create and new zone.

File:DNS23.png
In order to add a Dedicated IP go to 'Clients Profile' -> 'Products/Services' and enter the IP in the marked field. Afterwards press 'Save Changes' .
File:DNS25.png
As you can see on the following screen our previously added IP appeared so we can proceed with adding our zone.
File:DNS24.png

Management of Multiservers

Multiservers allows you to use many different servers not necessarily using the same module.

For example you can have 3 different servers to manage your DNS zones with cPanel, Rackspace and PowerDNS.
Using Multiservers in DNS Manager is very simple. To start, tick 'Multiservers functionality' in 'Configuration' section.
Choose the template, enter your new server name and press 'Add Server.'

File:DNS30x.png
Now you can customize your new server according to your needs.
File:DNS31x.png

Management of Records

'Disable Editing Records' as then name indicates allows you to disallow editing certain record types.

In order to use this feature simply tick record type you want to disable and press 'Save Changes' .

File:DNS29x.png

Management of DNS Zones In Clientarea

Adding new DNS zone is very simple. First you need to provide a DNS management in clientarea.
For that purpose simply use this adress 'your_whmcs_url/clientarea.php?managedns' and replace 'your_whmcs_url' with adress of your whmcs directory.
Afterwards press 'Add Zone'
File:DNS11.png
In next step enter your zone name, IP adress and press 'Add Zone' .
File:DNS12.png
If the operation was successful, you will see a following screen.
In order to check your new DNS zone details press Edit button.
File:DNS13.png
You will see a screen similar to the one shown below. Here you can view and edit your zone's details.
File:DNS14.png

Adding Default Records

DNS Manager allows you to add your own default records to each DNS zone. In order to add new default record press 'Default Records' and 'Add New Record' .
File:DNS7x.png
Afterwards choose your record type from a dropdown menu, enter adress, proper TTL, value and press 'Save Changes' .
File:DNS9x.png
Now we will create new DNS zone to present you our new default record. Press the Edit button next to our new DNS zone.
Keep in mind that new default records will be added only to DNS zones created after adding a new record. Operation will not affect the already existing DNS zones.
File:DNS15.png
On the following screen you see can new default record successfully added to our DNS zone.
File:DNS16.png

Management of Reverse DNS

In order to enable Reverse DNS log in to your WHMCS. Press 'Addons' -> 'DNS Manager' -> 'Processing' and tick 'Enable Reverse DNS' .

Modules that currently support Reverse DNS are cPanel, StormOfDemand and SimpleDNS.

File:DNS22x.png
Now in your clientarea: 'your_whmcs_url/clientarea.php?managedns' click on 'Manage Reverse DNS' .
File:DNS10.png
Next, press Add button.
File:DNS17.png
Afterwards enter zone name, IP adress, value and press Add button once again.
File:DNS18.png
Your DNS zone and record have been successfully created. Now you can also edit your DNS zones.
File:DNS19.png

Management of Zones List

Zones List allows you to monitor and manage your DNS zones. You can synchronize, create or delete zones from here.
Let's for example synchronize one of our DNS zones with the WHMCS system. For that purpose simply press 'Synchronize' .
File:DNS26x.png
As shown on the screen below our synchronization was successful and our zone exists.

Zones List allows you also to manage each zone. For this purpose simply click 'Manage Zone' .

File:DNS27x.png
As you can see DNS Management for our zone appeared. Very convenient, isn't it?
File:DNS28.png

Management of Import Tool

Import Tool lets you to quickly import your zones from chosen cPanel, Hostbill or 4PSA server.

As an example we will show you how to import your zones from cPanel server.
First in your main menu click 'Import Tool' . Then enter your server details and press 'Show Zones' .

File:DNS32x1.png
If you would like to import zones from same cPanel server that you set in 'Connection' section, you can do this in a more convenient way.

In such a case you can avoid entering server details. To do so simply tick 'Use your current cPanel module connection settings:' as shown on the screen below.

File:DNS32x.png
As you can see entire list of zones has been successfully displayed. Let's import several zones.

For this purpose choose your zones and assign a client to each of them through using dropdown menu. Afterwards press 'Import Zones' .

File:DNS33x.png
The following message will appear as a confirmation of the successful accomplishment of the operation.
File:DNS34x.png
Now let's check your new zones in the Zones List. As you can see on the screen, they have been properly imported.
File:DNS35x.png

Management of Synchronization

Here you can set up automatical termination of unused zones.

For this purpose simply set up new Cron task provided by DNS Manager.
In 'Synchronization' section you can also whitelist your domains. To perform this action click at 'Select' button.

File:DNS36x.png
Whitelist is used to avoid of accidental deletion of domains.
File:DNS37.png

DNS Manager Logs

Logs help you keep track of all the activities carried out in DNS Manager.
File:DNS38x3.png

Tips

1. To provide a DNS management in clientarea simply use this adress 'your_whmcs_url/clientarea.php?managedns' . Replace 'your_whmcs_url' with adress of your whmcs directory.
2. When you set up processing to create zones with domains, the zones will be automatically created while ordering a new domain.

If you would like to add zone to your already exisiting domain you can do it manually.

3. We recommend to run Cron once per hour.
4. Cron checks up to 100 zones. If you have for example 200 zones, Cron will check zones from 1 to 100 first, then it will check zones from 101 to 200.
5. If the zone is inactive or missconfigured for longer than 24 hours, Cron will automatically delete it. Single Cron run removes up to 5 such zones.
6. 'Default IP' as the name suggests is default IP address of the zone. If you don't specify an IP adress when you create a new zone, default IP will be used.

In case you don't provide default IP neither zone IP, you won't be able to create new zone.

7. 'Name' in PowerDNS module 'Connection' tab is the field called 'name' in the SOA record. This record is added when the zone is created.

You can define SOA record format in the configuration of the module. Available is a {domain} shortcut in fields: 'Name' , 'Primary' , 'Hostmaster' .

Common Problems

1. If after install, you get IonCube encoder problem (wrong version), please open a support ticket. We will provide you different version of the module encyrpted with the old version of IonCube.
2. If after successful installation in your clientarea you receive following or similar error:
Fatal error: main() [function.require]: Failed opening required '/var/www/html/client/templates/dns_templates//lang/english.php'
(include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/client/templates/dns_templates/dns_controller.php on line 0

That means that you have forgotten to configure and save processing of your addon. Tutorial on how to configure processing you can find here
This was fixed in DNS Manager 1.6

3. Access denied error on Test Connection it's a bug which might appear with dns only servers OR banned IP in cphulk.
4. If you see a blank page right after installation process please make sure that you configured and saved processing options.
5. 4PSA platform is very specific therefore it can cause some problems with DNS Manager. You may encounter problem with file priviliges.

When connecting 4PSA module requires to download .wsdl file to 'include/dns_modules/4psa/tmp/wsdl' . It might appear that after connecting, the DNS Manager won't work properly.
To fix it you can create this directory on your own and set chmod 777 privileges. Afterwards try to connect and check whether the directory was created.
If directory has been created and you still have problems, you will need to edit a following files:

- includes/dns_modules/4psa/tmp/wsdl/xxx.xxx.xxx.xxx_port/soap/schema/1.5/Client/Client.wsdl
- includes/dns_modules/4psa/tmp/wsdl/xxx.xxx.xxx.xxx_port/soap/schema/1.5/DNSZone/DNSZone.wsdl
- includes/dns_modules/4psa/tmp/wsdl/xxx.xxx.xxx.xxx_port/soap/schema/1.5/System/System.wsdl

Afterwards please change the content of the files below:
FROM:
<soap:address location="https://some_hostname:port/soap/client_agent.php"/>
TO:
<soap:address location="https://YOUR_IP:port/soap/client_agent.php"/>

6. If you get an error: 'Unable to create zone:Sorry, you must enter an IP.' , please make sure that your default IP or zone IP is not missing.
7. If you have problems with connection make sure that port 2086 is open (for no SSL connections) or port 2087 is open (for SSL connections).
Navigation
WHMCS Modules
WHMCS Widgets
Translations
cPanel Modules
General
FAQ
Community
DNS Manager For WHMCS