DNS
A DNS zone is a domain (for example example.com) whose DNS is managed at a supported
provider. When you configure a zone, Neti can create the DNS records of the services of that domain, obtain their
certificates via DNS (without opening port 80) and, on Cloudflare, switch the proxy of each record on and off. The
DNS section shows the configured zones, how the monitored names resolve and the A records of every
zone; Settings → DNS is where zones are added, edited and removed.
Neti also works without any zone: you create the DNS records yourself in the provider's panel, and certificates are obtained over HTTP or uploaded by hand.
Where: menu DNS (permission view.dns: Viewer, Operator and Admin by default) and Settings → DNS (permission manage.settings: Admin only by default). Switching the Cloudflare proxy of a record needs action.dns.proxy (Operator and Admin). Adding, editing and removing zones needs manage.settings: without it the zone cards are shown without buttons.

Supported providers
- Cloudflare
- OVHcloud (accounts of Europe, Canada and rest of the world, United States)
Other providers (Aruba, GoDaddy, Amazon Route 53, Hetzner) are planned: they appear in the list of the Add a DNS zone dialog, grayed out and marked on request, and cannot be chosen yet.
The right provider is the one of the domain's nameservers, which is not necessarily the company where the domain was bought.
DNS zones (the zone cards)
The first area of the DNS page, and the whole list view of Settings → DNS, is a grid of cards, one per configured zone. The same cards appear in both places. The main Cloudflare zone comes first, the others follow in alphabetical order.
- Zone name and provider
- The domain of the zone and the provider that manages it. The word main next to the provider marks the main Cloudflare zone.
- DNS and certificates (green pill)
- Always present: Neti can create the records of the services of this zone and obtain their certificates via DNS.
- blocking on the edge (green pill)
- Shown only on the main Cloudflare zone when that use was selected in the procedure: the addresses banned by CrowdSec are also blocked on Cloudflare. See Blocking on the edge.
- Published by Neti: …
- The services (section Routing) whose domain belongs to this zone. If there are none the card says No site of this zone is published by Neti yet (Routing): the records stay as they are, for now Neti only reads them.
- Verified on …
- Date and time of the last time the credentials were saved after a successful check. A zone that comes from an older version shows Configured before multiple zones existed.
- Edit
- Runs the guided procedure again on the same zone, for example to replace a token or keys that expired or were revoked, or to add a use. The zone name cannot be changed. Nothing changes until you press Update the zone at the end of the procedure.
- Remove
- Removes the zone from Neti after a confirmation. Nothing changes at the provider: the records stay as they are. The button is disabled (tooltip in use by some services) while a service in Routing uses a domain of the zone. Neti deletes its copy of the credentials; to revoke them completely, delete the token or the keys in the provider's panel.
With no zone configured the area shows the message No zone configured. Neti works without zones too… and the button + Add the first zone.
Configuring a zone does not modify existing records: Neti only reads them, until you create a service and ask Neti to point its A record (see The records of a service).
+ Add zone (the Add a DNS zone dialog)
The button + Add zone is at the top right of both pages. It opens the dialog Add a DNS zone, which asks where the DNS of the domain is managed and shows one tile per provider. Tiles of providers not available yet are disabled and marked on request. Clicking Cloudflare or OVHcloud opens the guided procedure of that provider inside Settings → DNS; close ✕ closes the dialog without doing anything.
All procedures follow the same idea: the credentials are created on the provider's site with only the permissions needed, limited to that zone, and Neti tests them one by one with real calls before using them. Until the checks are green the zone cannot be enabled. A zone can be configured only once: if you enter a zone that already exists, the procedure tells you to use Edit on its card.
Status
The second area of the DNS page. It is loaded in the background after the page opens (message Querying DNS servers and providers…), because it queries DNS servers and the provider APIs, which can take a few seconds. If loading fails, the box shows Could not load the DNS data with a Try again link.
Resolution of the monitored domains
The first table shows how the monitored domains resolve, asked from the Neti server. The list of names is set in Settings → General, field Monitored domains (DNS), comma-separated (see Settings). The result is cached for about one minute.
- Record
- The monitored name.
- Resolution (A)
- The IPv4 addresses the name resolves to, or no records.
- Status
- resolves (green): the name has at least one A record. unexpected IP (yellow):
the name resolves, but not to the expected address; this appears only when an expected address is set in the
configuration file of the server (
dns_expect). missing (red): the name does not resolve.
Behind Cloudflare (proxy on) the public A record shows Cloudflare addresses, not the address of Neti: this is the expected behavior.
A records of each zone
For every configured zone there is a table titled provider · zone · A records, read live from the provider with the credentials of the zone (for OVHcloud zones, the first 60 A records).
- Record
- The full name of the A record.
- Points to
- The address written in the record (the origin, also when the Cloudflare proxy is on). A green Neti pill marks the records that point to the public address of this Neti server.
- Proxy (Cloudflare zones only)
- 🟠 proxied: visitors reach Cloudflare, which forwards to the origin. ⚪ dns-only: the record answers with the origin address and visitors connect directly.
- enable proxy 🟠 / disable proxy (Cloudflare zones only)
- Switches the proxy of that record on Cloudflare at once. It needs the permission action.dns.proxy. Records that Cloudflare cannot proxy show cannot be proxied instead of the button. See The Cloudflare proxy before using it.
If the table says No A records, or the zone credentials no longer work (run the procedure again with Edit), the zone has no A record or the token or keys were revoked, expired or restricted to other IP addresses.
Under the tables, users who can switch the proxy also see a note: publishing a domain (🚀 Go live / back to maintenance) is not done here but in Routing, on the card of the domain.
The Cloudflare proxy (orange cloud)
On a Cloudflare zone every A record can be proxied (orange cloud) or DNS-only (gray cloud). With the proxy on, visitors connect to Cloudflare, which hides the address of Neti and forwards the requests to it; with the proxy off, visitors connect to Neti directly.
- Before turning a record orange, set the SSL/TLS mode of the zone on Cloudflare to Full (strict). With Flexible, Cloudflare talks to Neti over HTTP, Neti redirects to HTTPS and the browser ends in a redirect loop.
- The proxy of a record should match the choice In front of the service made for the service in Routing. A service set to Cloudflare proxy (orange cloud) accepts traffic from the Cloudflare address ranges only: if you turn its record to DNS-only, visitors reach Neti directly and their connections are closed. See Routing.
- With the proxy on, a certificate cannot be obtained over HTTP for that name: use the certificate via DNS (see Certificates via DNS).
- Blocking on the edge works only for proxied records, because only their traffic passes through Cloudflare.
Zones at OVHcloud have no proxy: the column and the button are not shown.
Settings → DNS
The page Settings · DNS lists the DNS zones Neti can manage: the same zone cards of the DNS page, always with the Edit and Remove buttons, and the button + Add zone. Each zone has its own credentials, limited to that zone. When a Cloudflare main zone is configured, two more boxes appear under the cards: the tokens of the main zone and the state of the edge synchronization.
Active tokens of the main zone
A table that shows which Cloudflare tokens are in use for the main zone and what they can really do. The tokens themselves are never displayed. The permissions are tested with live calls every time the page is opened.
- DNS and certificates
- The token the console uses for the records of the zone. The small line under the name says whether the certificate tool uses the same one: GUI + acme.sh (same token), acme.sh uses a different token or acme.sh has no token. If it is not the same, run Edit on the zone card and enable the zone again: the token is handed to the certificate tool at that moment. Verified permissions: ✓ zone (the token sees the zone) and ✓ DNS (it reads the records); a gray ✗ means the check failed.
- Edge firewall
- The token used by the job cf-sync (CrowdSec ban → WAF rule) for blocking on the edge. Verified permissions: zone and WAF rules. not configured means edge blocking was never enabled; status not available means the system agent did not answer.
Edge synchronization (cf-sync)
A small box with the state of the job that copies the banned addresses to Cloudflare.
- active (green pill)
- The job is allowed to write to Cloudflare.
- paused until HH:MM (yellow pill)
- Cloudflare answered with a rate limit, so the job stopped writing for a while. The pause starts at 5 minutes and doubles at every new rate limit in a row (10, 20, 40 minutes) up to one hour; the box shows how many attempts failed in a row. It restarts by itself.
- Last log line
- The last line written by the job (file
/var/log/neti/cf-sync.log):OKwith the number of addresses, a warning or an error. - last successful synchronization
- Date and time of the last run that ended well.
Guided procedure: Cloudflare
Page title DNS · new zone on Cloudflare (or DNS · zone … on Cloudflare when you edit). You create the API token on Cloudflare; Neti tests it permission by permission before using it. The link ← all zones goes back to the list without saving. The procedure has four numbered boxes; boxes 2 to 4 appear after box 1 has been filled in.
Cloudflare does not let a token read its own permissions, so Neti checks each permission by really using it: reads have no effect, writes create and immediately delete a harmless object.
1 · Zone and uses
- Domain managed on Cloudflare (the zone)
- The main domain as it appears in the Cloudflare dashboard, for example
example.com(not a subdomain such asapp.example.com, unless that is really a separate zone). When you edit a zone the field is read-only (editing: the zone does not change). - DNS of your services and automatic certificates (always)
- Always selected. Needs the token permissions Zone · Zone · Read and Zone · DNS · Edit.
- Blocking of banned IPs directly on Cloudflare
- Optional. Needs Zone · Zone WAF · Edit. Offered only for the main Cloudflare zone (the first one you configure): on the other zones the checkbox is not shown. See Blocking on the edge.
- Check of the zone's SSL/TLS mode
- Optional. Needs Zone · Zone Settings · Read. Neti only reads the SSL/TLS mode of the zone and tells you whether it is the right one for a service behind the proxy (Full (strict)). It changes nothing.
- Update the instructions
- Saves the zone and the chosen uses and rewrites box 2 with exactly the permissions needed. Press it again whenever you change the uses; previous check results are cleared.
2 · Create the token on Cloudflare
The box lists the steps to follow in the Cloudflare dashboard, with the values to enter:
- Open the API tokens page of your account (the box has a direct link; otherwise: Cloudflare dashboard → choose the account → Manage account → API tokens) and press Create token.
- Token name:
Netifollowed by the name of your instance, so you can recognize it later. - Permission policy: choose Start from scratch (Custom). Do not use Full account and
zone access or Write all resources: they would give Neti far more than it needs. Add the permissions
listed in the table of the box (columns Type, Permission,
Level, Needed for):
As resource choose only the zone you are configuring: this way the token cannot touch other domains. Edit may appear as Write: it is the same level. If a permission is not listed, your role in the Cloudflare account does not allow it (Cloudflare shows only the permissions of your role): you need an administrator of the account.Type Permission Level Needed for Zone Zone Read DNS of your services and automatic certificates Zone DNS Edit DNS of your services and automatic certificates Zone Zone WAF Edit Blocking of banned IPs directly on Cloudflare (only if selected) Zone Zone Settings Read Check of the zone's SSL/TLS mode (only if selected) - Token expiry: No expiry, or a date if your policy requires one. In that case remember to renew the token before then, or certificates will stop renewing.
- Client IP address filter: leave Allow and enter the public addresses of the Neti server shown in the box (each one has a copy button). If the server also has a public IPv6 address, both are listed and all of them are needed, because calls to Cloudflare can go out over IPv4 or IPv6. With this filter a stolen token does not work from anywhere else. If Neti does not know its public address yet, the box says so: set it in the guided setup (Identity step) and leave the filter empty until then.
- Review token → confirm the creation, then copy the token: Cloudflare shows it only once.
3 · Paste and check
- Cloudflare API token (field)
- Paste the token. It must look like a Cloudflare token (30 to 120 letters, digits,
_or-), otherwise the page answers The pasted text does not look like a Cloudflare token. - Check
- Runs all the tests with real calls (about ten). The token is kept aside as token being tested: it is not used for anything else until you enable the zone.
- Token being tested: ••••••abcd
- After the first check the page shows only the last four characters of the token, with the buttons Check again (repeat the tests on the same token, for example after fixing its permissions on Cloudflare: editing a token does not change its value), the field or paste another token, and Discard (forget the token being tested and clear the results).
At least 10 seconds must pass between two checks (Wait a few seconds between checks): Cloudflare limits the number of API calls, and going over the limit blocks every call for some minutes.
The results are a list of lines, each with ✅ (passed), ⚠️ (warning, does not block) or 🔴 (to fix), a detail and, when something is wrong, a line starting with → that says what to change. Under the list: Checked at with the time.
| Check | What it verifies | Possible results |
|---|---|---|
| Token active | The token exists and is active. | ✅ with no expiry or expires on …; 🔴 with the status if the token is disabled or expired (reactivate it or create a new one); ⚠️ status not readable, continuing with the tests. |
| Zone … visible | The token sees the zone (permission Zone · Zone · Read, with the zone among its resources). | ✅ with the Cloudflare plan; ⚠️ if the zone is not active yet (the nameservers of the domain do not point to Cloudflare yet); 🔴 the token cannot see the zone: the permissions must be of type Zone, not Account, with this zone as resource. The other checks are skipped. |
| Token limited to this zone | The token cannot act on other domains. | ✅; ⚠️ it also works for N other domains with their names: in the token choose only this zone as resource instead of the whole account. It is a warning: it does not block, but a narrower token is safer. |
| Reading DNS records | The records of the zone can be read. | ✅; 🔴 add the permission Zone · DNS · Edit. |
| Writing DNS records | Neti creates and immediately deletes a TXT record named
_neti-verifica.zone. |
✅ test record … created and deleted; ⚠️ created but not deleted: delete that TXT record by hand; 🔴 the DNS permission is read-only: change it to Zone · DNS · Edit. |
| Reading WAF rules (only with edge blocking) | The custom rules of the zone can be read. | ✅ (also no custom rules in the zone); 🔴 add Zone · Zone WAF · Edit. |
| Writing WAF rules (only with edge blocking) | Neti creates and immediately deletes a disabled rule on a documentation address, so no traffic is ever blocked by the test. | ✅; ⚠️ test rule created but not deleted: delete it on Cloudflare in Security → WAF → Custom rules; ⚠️ cannot be checked: the zone has used up the custom rules of its plan: free up a custom rule and check again (edge blocking needs one free rule, so in this case it is not enabled); 🔴 the WAF permission is read-only. |
| SSL/TLS mode (only with the SSL/TLS check) | The SSL/TLS mode of the zone. | ✅ Full (strict); ⚠️ Full: Cloudflare does not verify the certificate of Neti; 🔴 any other mode (traffic between Cloudflare and Neti is not encrypted, or is encrypted without any verification), or the permission Zone · Zone Settings · Read is missing. Fix on Cloudflare: SSL/TLS → Overview → Full (strict). |
| Check stopped | An error that makes the other tests useless. | 🔴 Cloudflare request limit exceeded: try again in N seconds; 🔴 The token is restricted to other IP addresses: add the listed addresses of Neti in the IP filter of the token; 🔴 Invalid token: check that you copied all of it. |
4 · Enable
- Enable the zone (new zone) / Update the zone (edit)
- Enabled only when the checks Zone visible, Reading DNS records and
Writing DNS records are passed (warnings do not block); otherwise the note says Available
once the DNS permissions check is green. When pressed:
- the zone is saved with its token and appears among the zones (when editing, the new token replaces the current one);
- the token is handed to the certificate tool (acme.sh), which tests it again before storing it; the confirmation message reports the outcome after Certificates (acme.sh):. If it says that acme.sh is not installed, install the component from Server and enable the zone again;
- if you selected edge blocking, the zone is the main one and both WAF checks are green, the token is also installed for the edge synchronization (Edge blocking: …). Otherwise the message explains why it was not enabled: available only for the main Cloudflare zone or the WAF permissions are not verified.
Guided procedure: OVHcloud
Page title DNS · new zone on OVHcloud (or DNS · zone … on OVHcloud). OVH uses three API keys. You create them on the OVH site with a link that already contains the right permissions; Neti tests them one by one before using them. The link ← all zones goes back to the list without saving.
1 · Zone and region
- Domain managed on OVH (the DNS zone)
- The domain whose DNS zone is in your OVH account, for example
example.com. Read-only when you edit a zone. - OVH account region
- Which OVH API the account belongs to: Europe (default, almost always the right one), Canada and rest of the world or United States. Keys created in one region do not work in another.
- Prepare the instructions
- Saves zone and region and builds the link of box 2.
2 · Create the keys on OVH
- Open the link this link in the box: it is the OVH page for creating API keys, with the rights already filled in. Sign in with the OVH account that owns the domain.
- Application name:
Netifollowed by the name of your instance. Application description: for exampleDNS and certificates for example.com. - Validity: Unlimited. With an expiry date, certificates stop renewing when it is reached: you would have to repeat this procedure before then.
- Rights: check that these lines are there (they are already filled in; if one is missing, add it
with the + button):
They are limited to this zone: with these keys Neti cannot touch other domains or the rest of the account.Method Path Needed for GET /domaincheck of the keys (acme.sh does it before every certificate) GET /domain/zone/example.comsee the zone GET /domain/zone/example.com/*read the records POST /domain/zone/example.com/*create records and apply the changes (refresh) PUT /domain/zone/example.com/*edit the records DELETE /domain/zone/example.com/*delete the records (including the temporary ones for certificates) - Restricted IPs (if the form offers it, optional): the public addresses of the Neti server shown in the box, each with a copy button. This way the keys, if stolen, do not work from anywhere else.
- Press Create: OVH shows the Application Key, the Application Secret and the Consumer Key. Copy them right away: the secret is not shown again.
3 · Paste and check
- Application Key, Application Secret, Consumer Key
- Paste the three keys (8 to 64 letters and digits each, without spaces). All three are required the first time. After a first check the page shows Keys being tested with the last four characters of the Application Key and of the Consumer Key; a field left empty keeps the value being tested, so you can correct just one key.
- Check / Check again
- Reads the rights granted to the keys and tests each permission with a real call. At least 5 seconds must pass between two checks.
- Discard
- Forgets the keys being tested and clears the results.
| Check | What it verifies | Possible results |
|---|---|---|
| Keys valid | The three keys belong together and are confirmed. | ✅ with no expiry or they expire on …; 🔴 Application Key not recognized (a character is missing, or the key belongs to another region); 🔴 invalid signature (the Application Secret does not match the Application Key); 🔴 Consumer Key invalid or not confirmed yet (complete the OVH page to the end); 🔴 the keys do not accept calls from this server (add the addresses of Neti to the IP restrictions of the keys); ⚠️ rights not readable, continuing with the tests. |
| Rights granted | Every right of box 2 is among those granted. | ✅ N rules, all the required ones; 🔴 missing: …: create new keys from the link of step 2. |
| Keys limited to this zone | The keys cannot change other domains. | ✅; ⚠️ they can also change other domains of the account: create the keys again with the rights of step 2. |
| Key check for certificates | The call GET /domain, which the certificate
tool makes before every certificate. | ✅; 🔴 add the right GET /domain. |
| Zone … visible | The zone exists in this OVH account. | ✅ with the nameservers; ⚠️ the domain uses other nameservers: changes made on OVH will have no effect (the DNS of the domain is really managed elsewhere: choose that provider instead, or set the OVH nameservers on the domain); 🔴 right missing, or the domain is not a DNS zone of this account. |
| Reading DNS records | The A records can be read. | ✅ with their number; 🔴 add the right GET /domain/zone/zone/*. |
| Writing DNS records | Neti creates and immediately deletes a TXT record
_neti-verifica.zone. |
✅; ⚠️ created but not deleted: add the DELETE right and delete that TXT record by hand (the zone cannot be enabled until this check is fully green); 🔴 add the POST right. |
| Applying the changes (refresh) | At OVH, changes become public only after a refresh of the zone: Neti tries it. | ✅; 🔴 add the POST right. |
4 · Enable
- Enable the zone / Update the zone
- Enabled when no check is red and the write test is fully green; the other warnings (⚠️) do not block. Until then the note says Available once the check is green. It saves the zone with its keys and hands them to the certificate tool, which tests them again; the message ends with Certificates (acme.sh): and the outcome. From then on Neti can create the records of the services and request certificates via DNS for that zone.
The main Cloudflare zone
The first Cloudflare zone you configure is the main one: its card shows the word main. Only this zone can receive blocking on the edge, and its tokens are the ones listed in Active tokens of the main zone. Zones added later, on Cloudflare or on another provider, work in the same way for records and certificates but are never the main one.
Blocking on the edge
Blocking on the edge stops the addresses banned by CrowdSec already on Cloudflare, before they reach Neti. Neti keeps one custom WAF rule of the zone up to date, named Neti CrowdSec edge block, whose expression contains the banned addresses. Only the bans decided locally on this server are sent (those made by Neti, by the honeypot and by the local scenarios), not the community blocklist. When there are no bans the rule stays in the zone, disabled.
It requires that:
- the zone is on Cloudflare and is the main one (the other Cloudflare zones, and the zones of other providers, do not receive it);
- the token of the zone has the WAF permission for reading and writing (Zone · Zone WAF · Edit): the procedure of + Add zone or Edit verifies it and marks it green;
- the zone has one free custom rule in its Cloudflare plan.
It applies only to services with the Cloudflare proxy (orange cloud), because only their traffic passes through Cloudflare. Banned addresses that reach Neti directly are blocked by Neti itself anyway.
A Cloudflare rule expression has a size limit: if the list of banned addresses does not fit, only the part that
fits is sent and a warning is written in /var/log/neti/cf-sync.log; Neti still blocks all of them
locally. The state of the job is in Edge synchronization (cf-sync).
The records of a service
When you create a service in Routing (New service) and its domain belongs to a configured zone, the box Domain DNS offers:
- Managed outside Neti: you create the record, Neti checks that it points here
- Neti does not touch the DNS. This is the only choice for domains outside the configured zones.
- Managed by Neti through the provider of the zone
- With the checkbox point the A record to Neti … if the name is new, Neti creates the A record of
the service (and of
www, if selected) pointing to the public address of the Neti server. On Cloudflare the record is created proxied when the service has Cloudflare proxy (orange cloud) in front, DNS-only otherwise.
How Neti writes records:
- A name that today leads to another server is left alone while the service is being prepared, so
the site stays online where it is. When the service is in production, press Move the DNS to Neti
in its card: the A records of the service (and of
www) are pointed to Neti. DNS caches follow within the TTL of the record. - Never two A records for the same name: if the name already has A records, the first one changes address and the others are deleted; otherwise one is created. Two A records would send visitors to one server or the other at random.
- IPv6: Neti writes A records only. If the name also has an AAAA record that points elsewhere, the confirmation message warns you (there is also an AAAA (IPv6) record … delete it, or IPv6 visitors will not go through Neti).
- At OVHcloud records are written with a TTL of 300 seconds and the zone is refreshed at once; on Cloudflare the TTL is automatic.
- Neti needs to know its public address (Public IP of the proxy in Settings → General); otherwise the record is not created and the page tells you.
Certificates via DNS
For a domain inside a configured zone, the box HTTPS certificate of a new service offers Automatic over DNS (zone provider): port 80 is not needed. The certificate authority verifies the domain through a temporary TXT record that Neti creates and removes in the zone with the credentials of that zone. This is the method to use when the service is behind the Cloudflare proxy, when the DNS does not point to Neti yet, or when you do not want port 80 open.
- The credentials used for certificates are readable by root only and are kept in a separate folder for every zone, so several accounts of the same provider do not overwrite each other.
- Renewals are automatic. If the token or the keys expire or are revoked, renewals fail: run Edit on the zone card with new credentials before the certificates expire.
- Removing a zone that is not the main one also removes its certificate folder (the credentials and the renewal data of the certificates issued with them).
Details on issuing, renewing and uploading certificates are in Certificates.
Cloudflare IP ranges
For services with the Cloudflare proxy in front, Neti must know which addresses belong to Cloudflare: to read the real address of the visitor, to close connections that claim to come from Cloudflare but do not, and to open the web ports in the firewall to Cloudflare only when every service is behind it (see Firewall).
- The list is downloaded from Cloudflare once a week (Sunday night) by
/opt/neti/bin/neti-cf-refresh.shand a built-in copy is installed with the package, so a new server works even before the first download. - The new list is applied only if it is valid (every line is an address range and there are enough of them) and only if the web server accepts the new configuration; otherwise the previous files are restored and nothing changes.
- To refresh it by hand, as root:
/opt/neti/bin/neti-cf-refresh.sh(add--forceto rewrite the files even if the list did not change). The log is/var/log/neti/cf-refresh.log, also visible in Logs → Background jobs → Cloudflare IP refresh.
Provider credentials
- They are created with only the permissions needed, limited to the zone, and are tested before use.
- While you are in a procedure, the token or keys being tested are kept aside and become active only when you press Enable the zone or Update the zone. Starting a new procedure discards them.
- The console never shows a saved token or key again: only the last four characters while testing.
- The copies used for certificates are readable by root only, in a separate folder for every zone.
- Restricting the token or the keys to the public addresses of the Neti server, as the procedures suggest, makes them useless if they are stolen.
- When you remove a zone from Neti, Neti deletes its credentials; to revoke them completely use the provider's panel.
- Every change made at a provider (records created, changed or deleted, proxy switched) and every failed call is
recorded, without credentials, in
/var/log/neti/dns.log: see Logs → DNS → Record operations (Cloudflare, OVHcloud).
How to add a Cloudflare zone
- Settings → DNS → + Add zone → Cloudflare.
- Enter the zone, select what you want Neti to do (DNS and certificates; optionally blocking of banned IPs on Cloudflare and the SSL/TLS check) and press Update the instructions.
- Create the API token in the Cloudflare dashboard with the permissions listed in box 2, limited to that zone and to the addresses of Neti.
- Paste the token and press Check: Neti verifies that it sees the zone and that it reads and writes the records. Fix what is red and press Check again.
- Enable the zone.
How to add an OVHcloud zone
- Settings → DNS → + Add zone → OVHcloud.
- Enter the domain and the region of the account (almost always Europe) and press Prepare the instructions.
- Open the link prepared by Neti: it leads to the OVH page for creating API keys, with the rights already filled in and limited to the zone. Choose Validity: Unlimited and, if offered, restrict the keys to the public address of Neti.
- OVH shows three keys: Application Key, Application Secret,
Consumer Key. Paste them and press Check. Neti verifies the rights granted, then
tries reading, writing (it creates and immediately deletes a TXT record
_neti-verifica) and applying the changes. If a key is wrong or a right is missing, the procedure says which one. - Enable the zone.
How to replace a token or keys
- Create the new token or keys at the provider (or change the permissions of the existing Cloudflare token: its value does not change).
- On the zone card press Edit. The procedure opens with the zone already filled in.
- Paste the new credentials, press Check, then Update the zone: the new credentials replace the old ones for records and for certificates.
- Revoke the old token or keys in the provider's panel.
Troubleshooting
- The record table of a zone is empty
- Either the zone has no A record, or its credentials no longer work (expired, revoked, or restricted to an address that is no longer the one of Neti). Press Edit on the card and run the check: it says exactly what is wrong.
- The token is restricted to other IP addresses / the keys do not accept calls from this server
- The IP filter of the token or keys does not include the address Neti calls from. Add all the addresses shown by the procedure (IPv4 and, if listed, IPv6).
- Cloudflare request limit exceeded
- Too many API calls in a short time on that Cloudflare account. Wait the indicated seconds before checking again.
- A service behind the orange cloud shows a redirect loop
- The SSL/TLS mode of the zone on Cloudflare is Flexible. Set it to Full (strict).
- A monitored domain shows Cloudflare addresses instead of the address of Neti
- Normal for proxied records: the public A record is Cloudflare's. The origin is in the column Points to of the zone table.
- No DNS zone configured for … when creating a service
- You chose DNS managed by Neti or a certificate via DNS for a domain that is in no configured zone. Add the zone in Settings → DNS, or choose Managed outside Neti.
- Remove is disabled
- Some services in Routing still use a domain of the zone (they are listed on the card after Published by Neti). Remove or move those services first.
- Certificates of a zone stopped renewing
- Usually the token or the keys expired. Check Logs (certificates) and replace the credentials with Edit.
- The edge synchronization is paused
- Cloudflare rate-limited the writes. The job restarts by itself at the indicated time; banned addresses are blocked by Neti in the meantime.
Good to know
- Configuring a zone never changes existing records: Neti writes only when you ask it to point a service to Neti or switch a proxy.
- A name is matched to the most specific configured zone: with both
example.comanddev.example.comconfigured,app.dev.example.combelongs to the second. - The DNS page reads the records live from the providers every time it is opened: nothing is cached except the resolution of the monitored domains (about one minute).
- The zone tables list A records only. Other record types are not shown and are never modified, except the temporary TXT records used for certificates and for the checks.