---
title: Agent on cPanel PowerDNS
description: "## Agent on cPanel with PowerDNS   ### Adding the repository #### ``` yum install https://repo.nixpal.com/el/nixpal.rpm ```   ### Installing zcloudagent ``` yum clean all yum install zcloudagent ```   ## Configuring and starting zonecloud - /etc/zcloudagent.conf Add the -…"
url: "https://zonecloud.io/documentation/agent-on-cpanel-powerdns/"
updated: "2024-12-05"
category: Agent (Web Servers)
---

# Agent on cPanel PowerDNS

## Agent on cPanel with PowerDNS

 

### Adding the repository

####

```
yum install https://repo.nixpal.com/el/nixpal.rpm
```

 

### Installing zcloudagent

```
yum clean all
yum install zcloudagent
```

 

## Configuring and starting zonecloud - /etc/zcloudagent.conf

Add the

- **SERVER_HOSTNAME**:* your***controller’s** *hostname*
- **LICENSE**: *Obtained from us*
- **TOKEN**: *Obtained from the controller*
- DNS_SERVER_TYPE=PDNS
- PDNSUTIL_BINARY_PATH=/usr/bin/pdnsutil

fields in `/etc/zcloudagent.conf`.

```
ZONES_FILE=/etc/named.conf
TOKEN=Token_From_zCloud_Server
SERVER_HOSTNAME=controller.yourdomain.com
UPDATE_INTERVAL=60
LOG_LEVEL=1
LICENSE=ZCAgent-xxxxxxxxxxx
//If your server uses PowerDNS uncomment the following 2 lines
DNS_SERVER_TYPE=PDNS
PDNSUTIL_BINARY_PATH=/usr/bin/pdnsutil
```

 

Enabling and Staring agent:

####

```
systemctl enable zcloudagent --now
```

 

Check service if started  with “status”

`systemctl status zcloudagent`

 

Also, check Controller web interface if the agent is sending zone information.

### Configuring pdns.conf

- There is now automated way to copy/paste/configure named.conf and pdns.conf from inside the Controller.

 

[![](https://zonecloud.io/wp-content/uploads/2022/12/1servers-1024x363.png)](https://zonecloud.io/wp-content/uploads/2022/12/1servers.png)

And just copy/paste the appropriate configuration

[![](https://zonecloud.io/wp-content/uploads/2022/12/2configuration-1024x336.png)](https://zonecloud.io/wp-content/uploads/2022/12/2configuration.png)

 

 

Let's assume our nodes DNS Servers IP's are: 1.1.1.1 , 2.2.2.2, 3.3.3.3 and 4.4.4.4 for this example.

> Note** Depending on your version you might need to change primary yes to master yes:
>  [https://doc.powerdns.com/authoritative/settings.html#setting-primary](https://doc.powerdns.com/authoritative/settings.html#setting-primary)
>  Changed in version 4.5.0: This was called [master](https://doc.powerdns.com/authoritative/settings.html#setting-master) before 4.5.0.

####

 ***pdns.conf :***

```
primary = yes
disable-axfr=no
allow-axfr-ips=127.0.0.0/8, 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
allow-notify-from=0.0.0.0/0,::/0, 1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
also-notify=1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
allow-unsigned-notify=yes
forward-notify=1.1.1.1, 2.2.2.2, 3.3.3.3, 4.4.4.4
```

Restart pdns and check Nodes.

 
