Skip to Content
IntegrationsSaaS

Secure NextDNS with Mondoo

Continuously scan your NextDNS profiles for misconfigurations and security issues.

To connect NextDNS to Mondoo, you copy your NextDNS API key and add it to a NextDNS integration in your space.

Mondoo discovers every profile in the NextDNS account and adds each one as a NextDNS Profile asset. For each profile, Mondoo assesses threat protection (such as threat intelligence feeds, Google Safe Browsing, DNS rebinding protection, and blocking of newly registered domains), block-bypass protection, and query-logging settings.

Before you begin

  • Editor or Owner access to the Mondoo space, or another role with permission to add integrations. To see every role, read Roles and permissions.
  • A NextDNS account with one or more profiles

Find your NextDNS API key

Mondoo authenticates to NextDNS with your account's API key.

  1. Sign in to your NextDNS account page.

  2. Scroll to the API section at the bottom of the page.

  3. Copy the API key.

NextDNS API keys don't have scopes: the key grants access to every profile in the account. Mondoo only reads profile configuration and never changes it.

Treat the API key like a password. Don't commit it to source control. If the key is exposed, regenerate it on the NextDNS account page and rotate the key in Mondoo.

Add a NextDNS integration

You need the Editor or Owner role, or another role with this permission. To see every role, read Roles and permissions.

In the Mondoo App, navigate to the space where you want to add the integration. Some integrations can also be added once at the organization level to cover every space with one connection. To see which ones, read Set up integrations once for your whole organization.

In the space's side navigation bar, select Integrations. In the top right, select INSTALL. On the Install Integration page, find the integration you want by browsing a category or searching by name:

  1. Under SaaS Security, select NextDNS.

    Add a NextDNS integration in Mondoo

  2. In the Choose an integration name box, enter a name that identifies the NextDNS account.

  3. Paste the API key into the Provide your NextDNS API key box.

  4. (Optional) Under Enable security policies, review the policies that apply to NextDNS. The Mondoo NextDNS Security policy checks threat protection, filtering integrity, and query logging. If a policy isn't enabled in the space yet, select ENABLE. A policy you enable here applies to the whole space, not only this integration.

  5. Select CREATE INTEGRATION.

Mondoo starts the first scan as soon as the integration is created. To learn how policies work, read Manage Policies.

Verify the integration

When you select CREATE INTEGRATION, Mondoo starts the first scan and opens the integration's page. Status shows Active once the scan is queued, and Most Recent Activity lists each scan and any errors it reports.

The Integration Details section of an integration page, with the status Active and a SHOW ASSETS button

Mondoo adds a NextDNS Profile asset for each profile to the space inventory. To review them, navigate to the space and select Inventory. To see how the profiles score against the policy, select Findings > Policies and choose Mondoo NextDNS Security. To learn what each integration status means, read Integration status and troubleshooting.

Troubleshoot

MessageCauseFix
NextDNS rejected the credential. Check it and try again. or NextDNS rejected the request. Check the credential and that it has the permissions the integration needs. when you create the integrationThe API key is mistyped, or it was regenerated on the NextDNS account page.Copy the current key from the API section of the account page and try again.
Scans are paused at the top of the integration pageThe integration's API key was rejected by NextDNS, usually because it was regenerated.Rotate the API key.

Manage your integration

To open the integration, navigate to the space, select Integrations > NextDNS, and choose the integration.

From the integration detail page, you can:

  • Scan now. Select RUN.
  • Pause or resume scanning. Select the more actions menu, then Pause or Resume.
  • Edit settings. Select the pencil icon to rename the integration. If the integration stores its own API key, you can also replace the key here.
  • Remove the integration. Select the trash can icon and confirm. Mondoo stops scanning the NextDNS account.

Rotate the API key

How you replace the key depends on how Mondoo stored it when the integration was created. Integrations added by someone with permission to create and view credentials store the key as a credential. Older integrations, and integrations added by someone without that permission, keep the key on the integration.

  • If the integration uses a credential: The integration detail page shows a Credential section, and the edit form shows Managed by a credential in place of the key box. Select the credential's name to open it, then select Rotate and enter the new key. Every integration that uses the credential switches to the new key. To learn more, read Manage Integration Credentials.

    The Credential section of an integration page, showing a Healthy credential, its expiry date, and when it was last tested

  • If the integration stores its own key: Select the pencil icon. In API key (optional update), enter the new key, then select SAVE CHANGES. Leave the box empty to keep the existing key.

Scan NextDNS from the command line

The integration scans continuously from the Mondoo Platform. To scan NextDNS from your workstation or a CI pipeline instead, see Secure NextDNS with cnspec.

Next steps

Last updated on

On this page