Skip to content

nextdns

The nextdns command group manages NextDNS Parental Control features including categories (gambling, porn, etc.) and services (TikTok, Netflix, etc.).

List configured categories and services.

Terminal window
# Show from config.json
nextdns-blocker nextdns list
# Show live status from NextDNS API
nextdns-blocker nextdns list --remote

Options:

  • --remote - Fetch live status from NextDNS API instead of config file
  • --config-dir PATH - Config directory (default: auto-detect)

Show current Parental Control status from NextDNS API.

Terminal window
nextdns-blocker nextdns status

Displays:

  • Global settings (safe_search, youtube_restricted_mode, block_bypass)
  • Active categories
  • Active services

Activate a Parental Control category (start blocking).

Terminal window
nextdns-blocker nextdns add-category <CATEGORY_ID>

Valid category IDs: porn, gambling, dating, piracy, social-networks

Example:

Terminal window
nextdns-blocker nextdns add-category gambling

Deactivate a Parental Control category (stop blocking).

Terminal window
nextdns-blocker nextdns remove-category <CATEGORY_ID>

Example:

Terminal window
nextdns-blocker nextdns remove-category gambling

Activate a Parental Control service (start blocking).

Terminal window
nextdns-blocker nextdns add-service <SERVICE_ID>

Example:

Terminal window
nextdns-blocker nextdns add-service tiktok
nextdns-blocker nextdns add-service fortnite

Deactivate a Parental Control service (stop blocking).

Terminal window
nextdns-blocker nextdns remove-service <SERVICE_ID>

Example:

Terminal window
nextdns-blocker nextdns remove-service tiktok

Show all valid NextDNS category IDs.

Terminal window
nextdns-blocker nextdns categories

Output:

Valid NextDNS Category IDs
-------------------------
- dating
- gambling
- piracy
- porn
- social-networks

Show all valid NextDNS service IDs grouped by type.

Terminal window
nextdns-blocker nextdns services

Output shows 43 services organized by category:

  • Social & Messaging (20 services)
  • Streaming (9 services)
  • Gaming (8 services)
  • Dating (1 service)
  • Other (5 services)

During panic mode, these commands are blocked:

  • add-category
  • remove-category
  • add-service
  • remove-service

The list, status, categories, and services commands remain available.

Terminal window
nextdns-blocker nextdns add-service tiktok
Terminal window
nextdns-blocker nextdns status
Terminal window
nextdns-blocker nextdns remove-service netflix
Terminal window
nextdns-blocker nextdns services