FAQ
Answers to common questions about NextDNS Blocker.
General
Section titled “General”What is NextDNS Blocker?
Section titled “What is NextDNS Blocker?”NextDNS Blocker is a command-line tool that automates domain blocking using the NextDNS API. It provides:
- Per-domain scheduling (block during work, allow during breaks)
- Unblock delays (friction against impulsive access)
- Emergency panic mode
- Automatic synchronization
How is this different from the NextDNS dashboard?
Section titled “How is this different from the NextDNS dashboard?”The NextDNS dashboard allows manual blocking, but NextDNS Blocker adds:
- Automated scheduling: Domains block/unblock based on time
- Watchdog enforcement: Automatically re-applies rules
- Unblock delays: Creates friction for manual unblocking
- Panic mode: Emergency lockdown feature
Is this an official NextDNS product?
Section titled “Is this an official NextDNS product?”No, NextDNS Blocker is a community project that uses the official NextDNS API.
Is it free?
Section titled “Is it free?”Yes, NextDNS Blocker is free and open source (MIT license). You need a NextDNS account, which has free and paid tiers.
How do I get my API key?
Section titled “How do I get my API key?”- Go to my.nextdns.io/account
- Scroll to the “API” section
- Click to reveal and copy your key
How do I find my Profile ID?
Section titled “How do I find my Profile ID?”Your Profile ID is the 6-character code in your NextDNS URL:
- URL:
https://my.nextdns.io/abc123/setup - Profile ID:
abc123
Can I use multiple profiles?
Section titled “Can I use multiple profiles?”Yes, but each installation of NextDNS Blocker manages one profile. For multiple profiles:
- Run separate instances with different
.envfiles - Or use Docker with multiple containers
Does this work on my phone?
Section titled “Does this work on my phone?”NextDNS Blocker runs on computers (macOS, Linux, Windows). For phone blocking:
- Use NextDNS directly on your phone
- Or let NextDNS Blocker manage your router’s DNS
Blocking
Section titled “Blocking”What exactly gets blocked?
Section titled “What exactly gets blocked?”When a domain is blocked:
- NextDNS Blocker adds it to your NextDNS denylist
- NextDNS returns NXDOMAIN for DNS queries
- Your browser/app can’t resolve the domain
Does it block subdomains too?
Section titled “Does it block subdomains too?”Yes, blocking reddit.com blocks:
reddit.comwww.reddit.comold.reddit.com- All
*.reddit.com
Can I allow a subdomain while blocking the parent?
Section titled “Can I allow a subdomain while blocking the parent?”Yes, use the allowlist:
{ "blocklist": [{"domain": "amazon.com"}], "allowlist": [{"domain": "aws.amazon.com"}]}Does this block ads?
Section titled “Does this block ads?”No, NextDNS Blocker manages access policies (which websites you can visit). For ad blocking, enable NextDNS’s built-in ad blocking in the dashboard.
Schedules
Section titled “Schedules”How does scheduling work?
Section titled “How does scheduling work?”You define available_hours - when a domain is accessible. Outside those hours, it’s blocked.
{ "schedule": { "available_hours": [ { "days": ["monday", "friday"], "time_ranges": [{"start": "18:00", "end": "22:00"}] } ] }}What timezone is used?
Section titled “What timezone is used?”The timezone from your config.json:
{ "settings": { "timezone": "America/New_York" }}Auto-detected during init, or set with:
nextdns-blocker config set timezone America/Los_AngelesCan I have overnight schedules?
Section titled “Can I have overnight schedules?”Yes, use time ranges that cross midnight:
{"start": "22:00", "end": "02:00"}This allows access from 10 PM to 2 AM.
Unblock Delays
Section titled “Unblock Delays”What are unblock delays?
Section titled “What are unblock delays?”Delays that create friction between requesting access and receiving it:
| Delay | What happens |
|---|---|
"0" | Instant unblock |
"30m" | Wait 30 minutes |
"24h" | Wait 24 hours |
"never" | Cannot unblock |
Why use delays?
Section titled “Why use delays?”Research shows cravings fade after 20-30 minutes. The delay:
- Interrupts autopilot behavior
- Creates time for reflection
- Allows cancellation if urge passes
Can I cancel a pending unblock?
Section titled “Can I cancel a pending unblock?”Yes:
nextdns-blocker pending list # See pending actionsnextdns-blocker pending cancel ID # Cancel specific actionPanic Mode
Section titled “Panic Mode”What is panic mode?
Section titled “What is panic mode?”Emergency lockdown that:
- Blocks all domains immediately
- Hides dangerous commands
- Cannot be disabled early
When should I use it?
Section titled “When should I use it?”- Feeling strong urges
- After a “slip”
- During vulnerable moments
- When you need absolute protection
Can I end panic mode early?
Section titled “Can I end panic mode early?”No, by design. Wait for the timer or extend it:
nextdns-blocker panic extend 30 # Add more timeWatchdog
Section titled “Watchdog”What is the watchdog?
Section titled “What is the watchdog?”The watchdog:
- Runs sync every 2 minutes
- Restores itself if deleted
- Ensures consistent enforcement
Why does it restore itself?
Section titled “Why does it restore itself?”To prevent circumvention. If you or something else deletes the sync job, the watchdog recreates it.
Can I disable it?
Section titled “Can I disable it?”Temporarily:
nextdns-blocker watchdog disable 4 # Disable for 4 hoursPermanently:
nextdns-blocker watchdog uninstallTroubleshooting
Section titled “Troubleshooting”Domains not blocking
Section titled “Domains not blocking”- Check schedule: Is it outside available hours?
- Check timezone: Is it correct?
- Check watchdog: Is it running?
- Force sync:
nextdns-blocker config push - Flush DNS cache
Commands not working
Section titled “Commands not working”Check if panic mode is active:
nextdns-blocker panic statusMany commands are hidden during panic mode.
”API authentication failed”
Section titled “”API authentication failed””Your API key is invalid. Re-run setup:
nextdns-blocker initSites still accessible after blocking
Section titled “Sites still accessible after blocking”- Flush DNS cache
- Clear browser cache
- Try incognito mode
- Verify device uses NextDNS
Privacy & Security
Section titled “Privacy & Security”What data is sent to NextDNS?
Section titled “What data is sent to NextDNS?”Only domain names to add/remove from denylist. No browsing history is sent.
What data is logged locally?
Section titled “What data is logged locally?”- Domain blocking events
- Timestamps
- Panic mode usage
- No API credentials
Is my API key secure?
Section titled “Is my API key secure?”Yes, if you:
- Keep
.envfile private (0600 permissions) - Don’t commit it to git
- Don’t share your configuration
Compatibility
Section titled “Compatibility”Which platforms are supported?
Section titled “Which platforms are supported?”- macOS (Apple Silicon and Intel)
- Linux (all major distributions)
- Windows 10/11
- Docker
- WSL
Which Python versions work?
Section titled “Which Python versions work?”Python 3.9 or newer. Recommended: Python 3.11+.
Does it work with VPNs?
Section titled “Does it work with VPNs?”If your VPN routes DNS through NextDNS, yes. If not, blocking may not work when VPN is active.
Contributing
Section titled “Contributing”How can I contribute?
Section titled “How can I contribute?”See CONTRIBUTING.md:
- Bug reports and fixes
- Feature suggestions
- Documentation improvements
- Translations
Where do I report bugs?
Section titled “Where do I report bugs?”Include:
- NextDNS Blocker version
- Platform
- Steps to reproduce
- Relevant logs