Get your
domain name

How to automatically push DKIM and _acme-challenge Records with Direct Admin to our nameservers?

When you use DirectAdmin in combination with our nameservers, you can significantly simplify the process of managing DKIM records and _acme challenge records (for obtaining SSL certificates). This article will walk you through step-by-step how to automatically push those records to our nameservers, allowing a seamless integration for your web management.


What do you need?

  1. DirectAdmin access
  2. API user in our system
  3. Your whitelisted IP address


Step 1: Creating an API user

- Log in to your account dashboard

- Go to "Account data"

- Scroll down and click on "+ new..." to add an extra user

- Complete the required contact fields, choose a secure password and select the option that this is an API user

After confirming, you'll be shown the username (UID), which you'll need later


Step 2: Whitelisting your IP address

Send us an email with the IP address from which the API requests Download het script van https://cdn.bnamed.net/files/dns_write_post.sh.zip en pak het uit.


Step 3: Installing the Script

- Download the script from https://cdn.bnamed.net/files/dns_write_post.sh.zip and extract it

- Place the script in your DirectAdmin installation under the scripts/custom/ folder

- Open the script in the text editor and adjust the UID and Password values at the top with your own information


Step 4: Making the Script executable

Run the following command in your terminal or via SSH:


chmod +x dns_write_post.sh

This will make the script executable, allowing it to be used to make changes


Result

After you've completed these steps; both DKIM and _acme-challenge records will be automatically pushed to our nameservers when DirectAdmin makes DNS changes.