# Nextdns

> NextDNS is a DNS service that enhances internet security and privacy by blocking malicious websites, tracking scripts, and ads before they reach your devi…

NextDNS is a DNS service that enhances internet security and privacy by blocking malicious websites, tracking scripts, and ads before they reach your device.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Nextdns** authenticates with an API key. Generate the credential in your Nextdns account, then paste it into FlyMyAI the first time an agent uses a Nextdns action.

[Get your Nextdns credential →](https://my.nextdns.io/account)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `NextDNS API Key` | Your NextDNS API key, found at the bottom of your account page. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `NEXTDNS_ADD_BLOCKED_TLD` | Tool to add a top-level domain to the security blocklist for a nextdns profile. use after listing current security settings to ensure the tld is not already blocked. | `config`, `tld` |
| `NEXTDNS_ADD_DENYLIST_DOMAIN` | Tool to add a domain to the denylist of a nextdns profile. use when blocking specific domains under a profile after obtaining its id. | `config`, `domain` |
| `NEXTDNS_BLOCK_PAGE` | Tool to enable or disable block page for a configuration. use when you need to toggle whether dns blocks show a block page. | `config_id`, `enabled` |
| `NEXTDNS_CLEAR_LOGS` | Tool to clear dns logs for a nextdns profile. use when you want to remove all existing query logs for a given profile. note: this operation cannot be undone. | `profile_id` |
| `NEXTDNS_CREATE_PROFILE` | This tool allows users to create a new nextdns profile. it uses the post method at the endpoint https://api.nextdns.io/profiles. a profile is a distinct configuration set for dns filtering and security settings. | `name` |
| `NEXTDNS_DELETE_CONFIG` | Tool to delete a nextdns configuration profile. use when you need to remove an existing profile by its id. use after confirming the profile exists. | `profile` |
| `NEXTDNS_DOWNLOAD_LOGS` | Tool to download dns logs for a profile. use when you need the url of the exported logs. use after confirming the profile id is valid. supports getting a redirect url or json. | `profile_id` |
| `NEXTDNS_GET_ANALYTICS_DEVICES` | Tool to retrieve analytics aggregated by devices. use when you need per-device query metrics within a specific time frame. | `profile` |
| `NEXTDNS_GET_ANALYTICS_DOMAINS` | Tool to retrieve analytics data for domains within a specific profile. use after confirming the profile id to get per-domain query stats. | `profile` |
| `NEXTDNS_GET_ANALYTICS_IPS` | Tool to retrieve analytics aggregated by client ip addresses. use when you need to analyze dns query distribution per client ip for a given profile. | `profile` |
| `NEXTDNS_GET_ANALYTICS_IP_VERSIONS` | Tool to retrieve analytics grouped by ip version within a specific profile. use after you have a profile id to see ipv4 vs ipv6 query counts. | `profile` |
| `NEXTDNS_GET_ANALYTICS_QUERY_TYPES` | Tool to retrieve dns query counts broken down by query type. use after selecting a profile and specifying date filters to analyze distribution by type. | `profile` |
| `NEXTDNS_GET_ANALYTICS_REASONS` | Tool to retrieve dns query counts broken down by classification reason. use after selecting a profile and specifying date filters to analyze reason distribution. | `profile` |
| `NEXTDNS_GET_ANALYTICS_STATUS` | Tool to retrieve analytics status for a specific profile. use when you need counts of dns queries broken down by status categories. | `profile` |
| `NEXTDNS_GET_LOGS` | Tool to retrieve logs for a specific nextdns profile with optional filters. use after confirming the profile id to fetch raw or filtered dns logs. | `profile` |
| `NEXTDNS_GET_PROFILE` | Retrieves the details of a specific nextdns profile. it requires a 'profileid' as a path parameter and returns the profile details including name, security, privacy, parental control, denylist, allowlist, and general settings. | `profileId` |
| `NEXTDNS_GET_SETUP_INFO` | Tool to get setup information for a provided configuration (profile). use after obtaining a profile id to fetch its current settings. | `profile` |
| `NEXTDNS_LIST_CONFIGURATIONS` | Tool to list all configurations (profiles) available on the nextdns account. use after authenticating to page through profiles. | - |
| `NEXTDNS_LIST_DENYLIST_DOMAINS` | Tool to list domains in the denylist for a profile. use after confirming the profile id to review all blocked domains. example: "list denylist domains for profile abc123." | `profile` |
| `NEXTDNS_LIST_SECURITY_SETTINGS` | Tool to list current security options for a nextdns configuration. use after obtaining the configuration id to review active security settings. | `config` |
| `NEXTDNS_LIST_SETTINGS` | Tool to list settings for a nextdns profile. use when auditing or inspecting all enabled settings before applying changes. | `profile_id` |
| `NEXTDNS_LOGIN` | Tool to authenticate to the nextdns api. use when you have an api key and need to verify credentials and obtain session headers and cookies for subsequent requests. | `api_key` |
| `NEXTDNS_LOG_CLIENT_IPS` | Tool to enable or disable logging of client ips for a nextdns configuration. use when you need to toggle whether client ips are recorded in dns logs. | `config_id`, `enable` |
| `NEXTDNS_LOG_DOMAINS` | Tool to enable or disable logging of domains for a nextdns profile. use after retrieving profile settings when you need to adjust domain logging. example: "enable domain logging for profile abc123." | `profile_id`, `enabled` |
| `NEXTDNS_MONTHLY_QUERIES` | Tool to get the number of dns queries made in the current month for a profile. use after selecting a profile. | `profile` |
| `NEXTDNS_REMOVE_BLOCKED_TLD` | Tool to remove a top-level domain from the security blocklist for a nextdns profile. use after listing current security settings to confirm the tld is currently blocked. | `config`, `tld` |
| `NEXTDNS_REMOVE_DENYLIST_DOMAIN` | Tool to remove a domain from a profile's denylist. use after confirming the domain is currently denied to clean it up. | `profile`, `domain` |
| `NEXTDNS_RENAME_CONFIG` | Tool to rename a nextdns configuration (profile). use when you need to update a profile's name after obtaining its id. example: renameconfig(name="home profile", config id="d46a5b") | `config_id`, `name` |
| `NEXTDNS_SET_AI_DETECTION` | Tool to enable or disable ai threat detection for a nextdns configuration. use after listing security settings to toggle the ai detection flag. | `config`, `enabled` |
| `NEXTDNS_SET_CRYPTOJACKING` | Tool to enable or disable cryptojacking protection for a nextdns configuration. use when toggling unauthorized crypto mining protection after listing security settings. | `config`, `enabled` |
| `NEXTDNS_SET_CSAM` | Tool to enable or disable blocking of child sexual abuse material domains for a nextdns profile. use when updating security settings after obtaining the profile id. | `config`, `csam` |
| `NEXTDNS_SET_DGA` | Tool to enable or disable dga (domain generation algorithm) protection for a nextdns configuration. use when toggling algorithm-generated domains protection after listing security settings. | `config`, `enabled` |
| `NEXTDNS_SET_DNS_REBINDING` | Tool to enable or disable dns rebinding protection for a nextdns configuration. use when toggling dns rebinding protection after reviewing current security settings. | `config`, `enabled` |
| `NEXTDNS_SET_HOMOGRAPH` | Tool to enable or disable homograph attack protection for a nextdns configuration. use when toggling idn homograph filtering after listing security settings. | `config`, `enabled` |
| `NEXTDNS_SET_NEW_DOMAINS` | Tool to enable or disable blocking of newly registered domains for a nextdns profile. use when updating security settings after obtaining the profile id. | `config`, `nrd` |
| `NEXTDNS_SET_PARKED` | Tool to enable or disable blocking of parked domains for a nextdns configuration. use when toggling parked domain blocking after listing security settings. | `config`, `enabled` |
| `NEXTDNS_SET_SAFE_BROWSING` | Tool to enable or disable google safe browsing for a nextdns configuration. use when toggling malware and phishing protection after reviewing current security settings. | `config`, `enabled` |
| `NEXTDNS_SET_THREAT_INTELLIGENCE_FEEDS` | Tool to enable or disable real-time threat intelligence feeds for a nextdns configuration. use after listing security settings to toggle the threatintelligencefeeds flag. | `config`, `enabled` |
| `NEXTDNS_SET_TYPOSQUATTING` | Tool to enable or disable typosquatting protection for a nextdns configuration. use after listing security settings to toggle the typosquatting flag. | `config`, `enabled` |
| `NEXTDNS_UPDATE_LINKED_IP` | Tool to update the linked ip for a nextdns profile. use after retrieving the profile setup to apply the current ip to the profile. | `config_id` |
| `NEXTDNS_UPDATE_PERFORMANCE_SETTINGS` | Tool to update performance settings of a nextdns profile. use when adjusting performance optimizations after reviewing current settings. | `config`, `ecs`, `cacheBoost`, `cnameFlattening` |
| `NEXTDNS_UPDATE_PRIVACY_SETTINGS` | Tool to update privacy settings for a profile. use when you need to change blocklists, native trackers, disguisedtrackers, or allowaffiliate in one call. | `config` |
| `NEXTDNS_UPDATE_PROFILE` | Tool to update an existing profile. use after retrieving a profile's current settings to apply changes. | `profile` |

## Links

- [Nextdns website](https://nextdns.io/)
- [Get API key / credential](https://my.nextdns.io/account)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
