A CLI tool for managing NextDNS profiles
Project description
nextdnsctl
A community-driven CLI tool for managing NextDNS profiles declaratively.
Disclaimer: This is an unofficial tool, not affiliated with NextDNS. Built by a user, for users.
Features
- Bulk add/remove domains to the NextDNS denylist and allowlist.
- Import domains from a file or URL to the denylist and allowlist.
- List all profiles to find their IDs.
- More to come: full config sync, etc.
Installation
- Install Python 3.6+.
- Clone or install:
pip install nextdnsctl
Usage
- Set up your API key (find it at https://my.nextdns.io/account):
nextdnsctl auth <your-api-key>
- List profiles:
nextdnsctl profile-list
Denylist Management
- Add domains to denylist:
nextdnsctl denylist add <profile_id> bad.com evil.com
- Remove domains from denylist:
nextdnsctl denylist remove <profile_id> bad.com
- Import domains from a file or URL:
- From a file:
nextdnsctl denylist import <profile_id> /path/to/blocklist.txt
- From a URL:
nextdnsctl denylist import <profile_id> https://example.com/blocklist.txt
- Use
--inactiveto add domains as inactive (not blocked):nextdnsctl denylist import <profile_id> blocklist.txt --inactive
- From a file:
Allowlist Management
- Add domains to allowlist:
nextdnsctl allowlist add <profile_id> good.com trusted.com
- Remove domains from allowlist:
nextdnsctl allowlist remove <profile_id> good.com
- Import domains from a file or URL:
- From a file:
nextdnsctl allowlist import <profile_id> /path/to/allowlist.txt
- From a URL:
nextdnsctl allowlist import <profile_id> https://example.com/allowlist.txt
- Use
--inactiveto add domains as inactive (not allowed):nextdnsctl allowlist import <profile_id> allowlist.txt --inactive
- From a file:
Contributing
Pull requests welcome! See docs/contributing.md for details.
License
MIT License - see LICENSE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nextdnsctl-0.2.0.tar.gz.
File metadata
- Download URL: nextdnsctl-0.2.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec7999b6c3fc04ad955637fbcab455e4845388f4a6f2a45cfd5496e0f6ff40bf
|
|
| MD5 |
9cd34333827b13575af4d356201d65a2
|
|
| BLAKE2b-256 |
9e7c1691987d1c9be4958cdaa40a4ff64bdb36a8b05607eb9964ef0174339e1b
|
File details
Details for the file nextdnsctl-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nextdnsctl-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
254512fb1fbe24f744a573b49fa3260362f5eebf45f16d4d5dd05583fe12b672
|
|
| MD5 |
e454f41e440c3d57193b245a85e737c5
|
|
| BLAKE2b-256 |
fa58424be65792d128d0e56cf27df0fe7239e0b4254f0bba8f99611cd1c071af
|