WHMCS PowerDNS Module

7DC

New member

Summary Installation Steps
Upload Files:

modules/addons/reversedns/reversedns.php
modules/addons/reversedns/hooks.php
modules/addons/reversedns/templates/clientarea.tpl
Add Reverse DNS Link to Menu:

Add the "Reverse DNS" menu to the server service detail page by adding the above code to the hooks.php file.
3. Activate the Module:

Log in to the WHMCS admin panel.
Go to Addons > Addon Modules.
Find the "Reverse DNS Management" module and click the Activate button.
Click Configure and enter the PowerDNS API URL and your API key:
PowerDNS API URL: http://powerdns-server:8081/api/v1
PowerDNS API Key: changeme
4. Requirements:

Make sure that cURL and PHP JSON support are enabled on your server.
Make sure that access to the PowerDNS API is configured correctly.
Important Notes Getting IP Addresses: The code retrieves IP addresses using the dedicatedip field in the customer's products. If the IP addresses are stored in a different domain, you should edit the code accordingly.

Security and Validation: The module allows the customer to see and update only their own IP addresses. However, you can enhance the code if you want to add additional security checks.

Hostname Validation: A simple regex is used to check if the entered hostname is in a valid domain name format. You can add more extensive validations.

PTR Domain and Zone Calculation: in-addr.arpa is used for IPv4 addresses. If you want to add IPv6 support you must update the code.
 
Back
Top