nextdns
The nextdns command group manages NextDNS Parental Control features including categories (gambling, porn, etc.) and services (TikTok, Netflix, etc.).
Commands
Section titled “Commands”List configured categories and services.
# Show from config.jsonnextdns-blocker nextdns list
# Show live status from NextDNS APInextdns-blocker nextdns list --remoteOptions:
--remote- Fetch live status from NextDNS API instead of config file--config-dir PATH- Config directory (default: auto-detect)
status
Section titled “status”Show current Parental Control status from NextDNS API.
nextdns-blocker nextdns statusDisplays:
- Global settings (safe_search, youtube_restricted_mode, block_bypass)
- Active categories
- Active services
add-category
Section titled “add-category”Activate a Parental Control category (start blocking).
nextdns-blocker nextdns add-category <CATEGORY_ID>Valid category IDs: porn, gambling, dating, piracy, social-networks
Example:
nextdns-blocker nextdns add-category gamblingremove-category
Section titled “remove-category”Deactivate a Parental Control category (stop blocking).
nextdns-blocker nextdns remove-category <CATEGORY_ID>Example:
nextdns-blocker nextdns remove-category gamblingadd-service
Section titled “add-service”Activate a Parental Control service (start blocking).
nextdns-blocker nextdns add-service <SERVICE_ID>Example:
nextdns-blocker nextdns add-service tiktoknextdns-blocker nextdns add-service fortniteremove-service
Section titled “remove-service”Deactivate a Parental Control service (stop blocking).
nextdns-blocker nextdns remove-service <SERVICE_ID>Example:
nextdns-blocker nextdns remove-service tiktokcategories
Section titled “categories”Show all valid NextDNS category IDs.
nextdns-blocker nextdns categoriesOutput:
Valid NextDNS Category IDs------------------------- - dating - gambling - piracy - porn - social-networksservices
Section titled “services”Show all valid NextDNS service IDs grouped by type.
nextdns-blocker nextdns servicesOutput shows 43 services organized by category:
- Social & Messaging (20 services)
- Streaming (9 services)
- Gaming (8 services)
- Dating (1 service)
- Other (5 services)
Panic Mode
Section titled “Panic Mode”During panic mode, these commands are blocked:
add-categoryremove-categoryadd-serviceremove-service
The list, status, categories, and services commands remain available.
Examples
Section titled “Examples”Block TikTok immediately
Section titled “Block TikTok immediately”nextdns-blocker nextdns add-service tiktokCheck what’s currently blocked
Section titled “Check what’s currently blocked”nextdns-blocker nextdns statusUnblock Netflix for the evening
Section titled “Unblock Netflix for the evening”nextdns-blocker nextdns remove-service netflixSee all available services
Section titled “See all available services”nextdns-blocker nextdns servicesSee Also
Section titled “See Also”- NextDNS Parental Control Feature - Complete configuration guide
- Sync Command - Automatic schedule-based sync