Known limitations
Items here are assumptions that could not be verified against an official source. Each one is revisited when the related feature is implemented. The reference is the NextDNS API documentation, which is labeled beta.
NextDNS API key format
The custom gitleaks rule in .gitleaks.toml assumes keys are 40 lowercase
hexadecimal characters. The API documentation shows an example key in that
format, but does not specify it. If real keys differ, secret scanning still
relies on the default gitleaks rules and on the generic api_key = ...
patterns.
Endpoints
GET /profiles(list profiles) is not described in the documentation text, which only coversPOST /profilesandGET/PATCH/DELETEon/profiles/:profile. It is widely used by other NextDNS tools and is assumed to return{ id, name }entries, paginated like other arrays.- Nested arrays inside
GET /profiles/:profileare assumed to be complete; only array child endpoints (for example/denylist) are paginated. PUTon an array endpoint is assumed to take the full JSON array as body, andPOSTa single item object.- Rewrites and setup information (feature
unstable-endpoints) are not documented at all; see Undocumented endpoints.
Responses
- The documentation describes response bodies for
200and400only. Other statuses are handled by code:401/403are authentication errors,404is “not found”,429and5xxare retried. Anyerrorsarray is reported when present. - Rate limits are not documented. The client retries
429and5xxwith exponential backoff and full jitter, honoringRetry-After. - List items with an
activeflag are assumed to be active when the flag is missing.
Configuration
- NextDNS is assumed to ignore list order, so lists are compared and rendered sorted by ID.
- Domains are validated locally (lowercase punycode, at least two labels, no wildcards). NextDNS may accept or reject a slightly different set.
- It is not documented whether the API returns domains and TLDs exactly as
stored. Live entries are matched by their normalized form, so
Example.COMin the live profile is the same item asexample.comin configuration; removals and updates use the ID as the API returned it. - Blocklist, native, service and category IDs are not checked against a catalog: the catalog endpoints are not documented.
- There are two JSON Schemas (root file and profile/template files) instead of one, because the two kinds of files have different shapes.
Authentication
- The API documentation describes one key per account and no scopes; the threat model assumes a key grants full account access.
- On a machine without a keyring service (servers, CI), a
keyring:source is treated as missing rather than failed, so the default chain keeps working there. A locked keyring is a failure. env:variables are not removed from the process environment after being read: doing so requiresunsafein Rust 2024, andndacstarts children only with a cleared environment.- The
age:source shells out to theagebinary instead of using theagecrate, so identities from plugins work the same way as with the command-line tool. - The user file is looked up under
XDG_CONFIG_HOMEon every platform, not in the macOS or Windows configuration directories.ndackeeps no per-user state, soXDG_STATE_HOMEis not used.
Apply
- The lock is advisory and per checkout: two checkouts of the same repository can still apply concurrently. Within one checkout it is taken before the live state is read, so a confirmed plan cannot be overtaken by another apply.
- The workflow written by
ndac init --github-actionskeeps snapshots as workflow artifacts, which expire (90 days by default). With no apply in that time, drift is no longer detected until the next apply. - After a partial apply (
--target, orreconcileoverwriting only some items), thepost-applysnapshot records the whole live profile. Drift left untouched then shows as pending instead of drift, until the next full apply or import.
Reconcile
- Interactive prompts are not covered by automated tests; the non-interactive paths are.
- Importing a field that NextDNS no longer returns removes it from the profile. If a template sets it, the import fails with a message instead, because a profile cannot unset an inherited field.
Endpoints and doctor
- The IPv4 anycast addresses (
45.90.28.0,45.90.30.0), the DNS-over-TLS hostname format and the DNS-over-HTTPS URL format come from the NextDNS setup instructions, not from the API. IPv6 addresses are left out of theresolvedandnetworkmanageroutput because they are specific to each profile and not available from the documented API, unless--api-ipv6reads them from the undocumented setup endpoint. - The
nextdns.confformat and option names (profile,cache-size,report-client-info) were checked against thenextdnsclient source. - The minimum NetworkManager version that accepts
IP#server-nameinipv4.dnswas not confirmed. test.nextdns.iois not documented. Its fields (status,protocol,profile,client,srcIP,destIP,anycast,server,clientName) were checked against live responses only. The valuesokandunconfiguredwere observed; any value other thanokis treated as “queries do not reach NextDNS”. The bare host answers some clients with a script page instead of JSON, sodoctorqueries a random subdomain directly.
Release and packaging
- The
.deb,.rpm, AUR and COPR packages repackage the static musl binary instead of building from source;rpmlintreportsstatically-linked-binary, which is expected. They are not meant for the official Debian or Fedora repositories. - The x86_64 macOS binary is cross-compiled on an Apple silicon runner and is not executed during the build.
- The
.debmaintainer field has no email address, which Debian policy expects;dpkgaccepts it. ndac-drift.servicecannot create the snapshots it compares with; they come from whereverapplyruns (see Installation).
Fake API
ndac-testkit follows the documented semantics. Where the documentation is
silent, it assumes the following, and tests depend on these assumptions:
- Successful
PATCH,PUT,DELETEand itemPOSTreturn204with no body. - Adding an item that already exists is a user error (
200witherrors[].code = "duplicate"). PATCHwith a key that does not exist in the target object is rejected with400.- Domains in the denylist and allowlist must be lowercase ASCII (punycode) with at least two labels.