Nextdns

Learn how to use Nextdns with Composio

Overview

Enum

NEXTDNS

Description

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

Authentication Details

api_key
stringRequired

Actions

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.

Action Parameters

config
stringRequired
tld
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to add a domain to the denylist of a nextdns profile. use when blocking specific domains under a profile after obtaining its id.

Action Parameters

active
booleanDefaults to True
config
stringRequired
domain
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable block page for a configuration. use when you need to toggle whether dns blocks show a block page.

Action Parameters

config_id
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

profile_id
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

allowlist
array
denylist
array
name
stringRequired
parentalControl
object
privacy
object
security
object
settings
object

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

profile
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

profile_id
stringRequired
redirect
booleanDefaults to True

Action Response

data
object
error
string
successful
boolean
Tool to retrieve analytics aggregated by devices. use when you need per-device query metrics within a specific time frame.

Action Parameters

cursor
string
device
string
from_date
string
limit
integerDefaults to 10
profile
stringRequired
to_date
string

Action Response

data
array
error
string
meta
object
successful
boolean
Tool to retrieve analytics data for domains within a specific profile. use after confirming the profile id to get per-domain query stats.

Action Parameters

cursor
string
device
string
from_date
string
limit
integerDefaults to 10
profile
stringRequired
root
boolean
status
string
to_date
string

Action Response

data
array
error
string
meta
object
successful
boolean
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.

Action Parameters

cursor
string
device
string
from
string
limit
integerDefaults to 10
profile
stringRequired
to
string

Action Response

data
array
error
string
meta
object
successful
boolean
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.

Action Parameters

cursor
string
device
string
from
string
limit
integerDefaults to 10
profile
stringRequired
to
string

Action Response

data
array
error
string
meta
object
successful
boolean
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.

Action Parameters

cursor
string
device
string
from_date
string
limit
integerDefaults to 10
profile
stringRequired
to_date
string

Action Response

data
array
error
string
meta
object
successful
boolean
Tool to retrieve dns query counts broken down by classification reason. use after selecting a profile and specifying date filters to analyze reason distribution.

Action Parameters

cursor
string
device
string
from_date
string
limit
integer
profile
stringRequired
to_date
string

Action Response

data
array
error
string
pagination
object
successful
boolean
Tool to retrieve analytics status for a specific profile. use when you need counts of dns queries broken down by status categories.

Action Parameters

cursor
string
device
string
from
string
limit
integerDefaults to 10
profile
stringRequired
to
string

Action Response

data
array
error
string
meta
object
successful
boolean
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.

Action Parameters

cursor
string
device
string
from
string
limit
integerDefaults to 100
profile
stringRequired
raw
boolean
search
string
sort
stringDefaults to desc
status
string
to
string

Action Response

data
array
error
string
meta
object
successful
boolean
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.

Action Parameters

profileId
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to get setup information for a provided configuration (profile). use after obtaining a profile id to fetch its current settings.

Action Parameters

profile
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to list all configurations (profiles) available on the nextdns account. use after authenticating to page through profiles.

Action Parameters

cursor
string
limit
integer

Action Response

data
array
error
string
meta
object
successful
boolean
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."

Action Parameters

profile
stringRequired

Action Response

data
array
error
string
successful
boolean
Tool to list current security options for a nextdns configuration. use after obtaining the configuration id to review active security settings.

Action Parameters

config
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to list settings for a nextdns profile. use when auditing or inspecting all enabled settings before applying changes.

Action Parameters

profile_id
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

api_key
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

config_id
stringRequired
enable
booleanRequired

Action Response

data
object
error
string
successful
boolean
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."

Action Parameters

enabled
booleanRequired
profile_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to get the number of dns queries made in the current month for a profile. use after selecting a profile.

Action Parameters

profile
stringRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

config
stringRequired
tld
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to remove a domain from a profile's denylist. use after confirming the domain is currently denied to clean it up.

Action Parameters

domain
stringRequired
profile
stringRequired

Action Response

data
object
error
string
successful
boolean
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")

Action Parameters

config_id
stringRequired
name
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable ai threat detection for a nextdns configuration. use after listing security settings to toggle the ai detection flag.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable cryptojacking protection for a nextdns configuration. use when toggling unauthorized crypto mining protection after listing security settings.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

config
stringRequired
csam
booleanRequired

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable dns rebinding protection for a nextdns configuration. use when toggling dns rebinding protection after reviewing current security settings.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable homograph attack protection for a nextdns configuration. use when toggling idn homograph filtering after listing security settings.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable blocking of newly registered domains for a nextdns profile. use when updating security settings after obtaining the profile id.

Action Parameters

config
stringRequired
nrd
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable blocking of parked domains for a nextdns configuration. use when toggling parked domain blocking after listing security settings.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable google safe browsing for a nextdns configuration. use when toggling malware and phishing protection after reviewing current security settings.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable real-time threat intelligence feeds for a nextdns configuration. use after listing security settings to toggle the threatintelligencefeeds flag.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to enable or disable typosquatting protection for a nextdns configuration. use after listing security settings to toggle the typosquatting flag.

Action Parameters

config
stringRequired
enabled
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to update the linked ip for a nextdns profile. use after retrieving the profile setup to apply the current ip to the profile.

Action Parameters

config_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to update performance settings of a nextdns profile. use when adjusting performance optimizations after reviewing current settings.

Action Parameters

cacheBoost
booleanRequired
cnameFlattening
booleanRequired
config
stringRequired
ecs
booleanRequired

Action Response

data
object
error
string
successful
boolean
Tool to update privacy settings for a profile. use when you need to change blocklists, native trackers, disguisedtrackers, or allowaffiliate in one call.

Action Parameters

allowAffiliate
boolean
blocklists
array
config
stringRequired
disguisedTrackers
boolean
natives
array

Action Response

data
object
error
string
successful
boolean
Tool to update an existing profile. use after retrieving a profile's current settings to apply changes.

Action Parameters

allowlist
array
denylist
array
name
string
parentalControl
object
privacy
object
profile
stringRequired
security
object
settings
object

Action Response

data
object
error
string
successful
boolean