> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/b/bluecat-enterprise-dns.md).

# BlueCat Enterprise DNS

BlueCat Enterprise DNS is managed through BlueCat Address Manager (BAM). OctoXLabs reads IP addresses from BAM as devices and the DNS resource records as domains. A device is named after the DNS host record linked to its IP address. An address without a host record is identified by its MAC address, else by the IP address.

## Use cases

* List devices that BAM knows with a MAC address (Devices).

```
Adapters = bluecat-enterprise-dns AND MacAddresses = *
```

* List MX records in your DNS data (Domains).

```
Adapters = bluecat-enterprise-dns AND Type = MX
```

## Before you begin

### Network

| Source              | Destination                                         | Port               | Protocol                                                               |
| ------------------- | --------------------------------------------------- | ------------------ | ---------------------------------------------------------------------- |
| OctoXLabs connector | BlueCat Address Manager (IP or host name you enter) | 443 (configurable) | HTTPS (HTTP, for example port 80, only if HTTPS is not enabled on BAM) |

### Required permissions

| Scope or role                                           | Permission                                         | Needed for                     |
| ------------------------------------------------------- | -------------------------------------------------- | ------------------------------ |
| Address Manager user with access type API or UI and API | View access right on each configuration to collect | Addresses and resource records |

## Create credentials in BlueCat Enterprise DNS

{% stepper %}
{% step %}

### Check the version

The adapter uses the Address Manager RESTful v2 API, available from Address Manager 9.5.
{% endstep %}

{% step %}

### Create a user

Create an Address Manager user whose access type is **API** or **UI and API**. A non-administrator user is enough if it has the **View** access right on each configuration you want to collect.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type    | Default                                          | Description                                                                                                                                                                                                                |
| -------------- | -------- | ------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| IP             | Yes      | String  |                                                  | Host name or IP address of the Address Manager.                                                                                                                                                                            |
| Port           | No       | Integer | 443                                              | Port of the web service.                                                                                                                                                                                                   |
| Is Secure      | No       | Boolean | True                                             | Use HTTPS. Set to False (with port 80) only if HTTPS is not enabled on BAM.                                                                                                                                                |
| Username       | Yes      | String  |                                                  | Address Manager user.                                                                                                                                                                                                      |
| Password       | Yes      | String  |                                                  | Password of that user.                                                                                                                                                                                                     |
| Address States | No       | List    | STATIC, DHCP\_ALLOCATED, DHCP\_RESERVED, GATEWAY | States of the IP addresses collected as devices. Allowed: STATIC, DHCP\_ALLOCATED, DHCP\_RESERVED, GATEWAY, RESERVED, DHCP\_LEASED, DHCP\_FREE, DHCP\_ABANDONED, DHCP\_EXCLUDED, DHCP\_UNASSIGNED, RESTRICTED, UNASSIGNED. |
| Page Size      | No       | Integer | 1000                                             | Addresses or records per request. Min 1, max 100000.                                                                                                                                                                       |
| Timeout        | No       | Integer | 30                                               | Seconds to wait for API responses.                                                                                                                                                                                         |

## Troubleshooting

| Error message                                                  | Cause                                                                                                                                  | Fix                                                                                                  |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| The session response has no basicAuthenticationCredentials:    | The login worked but returned no session credentials.                                                                                  | Check the user and the access type.                                                                  |
| Max retries exceeded for :                                     | The API kept answering 401 or 429.                                                                                                     | Check the user and the BAM session timeout, then retry.                                              |
| Offset returned the previous page again, stopping the listing. | The API repeated a page.                                                                                                               | Run the discovery again.                                                                             |
| Status Code: `, URL, Method`                                   | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history

{% hint style="info" %}
Available starting from version 6.9.0.
{% endhint %}
