# PowerDNS

## Overview

HPE Morpheus Enterprise integrates directly with PowerDNS to automatically create DNS entries for Instances provisioned to a configured Cloud or Group. HPE Morpheus Enterprise also syncs in PowerDNS Domains for easy selection while provisioning, or setting as the default Domain on a Cloud or Network.

## Add PowerDNS Integration

### About this task

PowerDNS can be added in the Administration or Infrastructure sections:

### Procedure

1. In Administration > Integrations, select + New Integration
2. In Infrastructure  >  Networks  >  Services, select Add Service
3. Provide the following: 

   TYPE
   :   PowerDNS

   NAME
   :   Name for the Integration in HPE Morpheus Enterprise

   API HOST
   :   URL of PowerDNS API. Example: `http://10.30.20.10:8081`

   Token
   :   PowerDNS API Token

   Version
   :   PowerDNS API Version
4. Once saved the Integration will be added and visible in both Administration > Integrations and Infrastructure  >  Networks  >  Services

### Results

NOTE

All fields can be edited after saving.

## Domains

Once the integration is added, PowerDNS Domains will sync and listed under Infrastructure  >  Networks  >  Domains.

NOTE

Default Domains can be set on Networks and Clouds, and can be selected when provisioning. Additional configuration options are available by editing a domain in Networks  >  Domains

## Configuring PowerDNS with Clouds and Groups

DNS Integrations are available in the DNS Integration dropdown in Cloud and Group settings.

HPE Morpheus Enterprise will register Instances with the DNS provider when provisioned into a Cloud or Group with a DNS Integration added.

### Add DNS Integration to a Cloud

#### Procedure

1. In Infrastructure  >  Clouds edit the target Cloud.
2. Expand the Advanced Options section.
3. In the DNS Integration dropdown, select an available DNS Integration.
4. Save Changes

### Add DNS Integration to a Group

#### Procedure

1. In Infrastructure  >  Groups select the target Group.
2. Select the Edit button for the Group
3. Expand the Advanced Options section.
4. In the DNS Integration dropdown, select an available DNS Integration.
5. Save Changes

#### Results

NOTE

Instances provisioned into a Cloud or Group with a DNS Integration added will be registered as instancename.domain with the DNS Provider during provisioning, and de-registered at teardown.
