DNS

Ravicor turns the ISP server into a full DNS server, managed from the web interface: recursive for subscribers (Unbound) and authoritative for the provider's domains and reverse zones (NSD), with DNSSEC, blocklists, statistics, and diagnostics.

Overview

The DNS environment lets you run two distinct services without editing a configuration file by hand. Everything is configured in the interface: the system generates the zone and configuration files and restarts the services on its own.

ServiceEnginePurpose
Recursive DNS Unbound Resolves any internet domain for the provider's subscribers, with caching, DNSSEC validation, content blocklists (including the mandatory Anatel list), and real-time statistics.
Authoritative DNS NSD Hosts the provider's own domains (website, email) and, above all, the reverse DNS (PTR) for the IP blocks, a practical requirement for email delivery and a good ASN practice.

Access is through the DNS item in the main menu. The screen has three tabs:

  • Recursive DNS: Unbound metrics dashboard (see Recursive statistics).
  • Authoritative DNS: domain management and per-domain statistics (see Domains and zones).
  • DNS Flow: live inspection of the DNS traffic passing through the server (see the end of the statistics section).

Structure modes

In the Settings gear (right corner of the screen), the DNS Settings modal has the structure selector at the top:

OptionBehavior
Unbound for recursive and authoritative DNS Legacy mode: Unbound answers everything. There are no per-domain statistics and no DNSSEC DS record.
Unbound for recursive and NSD for authoritative Recommended mode. When selected, the system asks you to link IPs to NSD. Only in this mode do per-domain statistics and full DNSSEC exist.
Replicate the settings from a master DNS server Disabled option, reserved for future use.

Dedicated IPs per service

Each service is linked to server IPs in the IPs Linked to Unbound and IPs Linked to NSD tables of the settings modal. The list shows the global-scope IPs detected on the machine, with IP type (IPV4/IPV6) and IP Address. Checking or unchecking saves immediately.

  • The same IP cannot serve Unbound and NSD at the same time: an IP checked in one service disappears from the other's list.
  • To run recursive and authoritative together you need at least 2 IPs on the machine, one dedicated to each service. Without that, the interface warns that at least 2 IPs are required to separate the services.
  • Unchecking every IP of a service turns off that service's switch (the interface requires at least 1 linked IP).

Prerequisites

  • Plan: the DNS area opens for any registered plan. Managing authoritative domains (the domain management screen) requires the BASIC plan or higher. BASIC+ plan
  • Permissions: the access-group permission for DNS has three levels: 0 (no access), 1 (view), and 2 (view and change the DNS Settings). Master users have full access. For anyone without level 2, the gear appears locked.
  • Server: Unbound and NSD are installed by the Ravicor installer; port 53 UDP/TCP must be free on the chosen IPs.

Recursive settings (DNS Settings modal)

The Recursive DNS panel of the modal holds Unbound's behavior. The switches save immediately, but the effect only takes hold after clicking Apply and restart Unbound. There is also the Clear cache button.

SwitchWhat it does
Enable Recursive DNSTurns the recursive service on or off.
Enable Prefetch (Recommended)Unbound renews popular cache entries before they expire.
Enable DNSSEC (Recommended)DNSSEC validation on recursive responses.
Enable Adware + Malware Blocking (Recommended)Blocks a list of malicious sites.
Enable Phishing Blocking (Recommended)Blocks data-theft sites.
Enable Anatel BlockingOfficial list of court-ordered and Anatel blocks (piracy and similar). Mandatory in Brazil.
Enable Ad BlockingBlocks advertising domains.
Enable Pornographic Content BlockingBlocks adult content.
Enable Social Media BlockingBlocks social networks.
Enable Gambling/Games BlockingBlocks betting and casinos.
Enable Cryptomining BlockingBlocks cryptocurrency mining.
Enable Tracking/Analytics BlockingBlocks trackers.
Enable Fake News BlockingBlocks disinformation sites.
Use root-serverMakes queries directly to the root servers. When enabled, the forwarders list is ignored.

The enabled blocklists (including the Anatel one) are synchronized automatically with the Ravi central every 30 minutes, and the service restarts on its own whenever a new list arrives. No operator action is required to keep the lists up to date.

Forwarding, firewall, and redirections

  • Request forwarding: the list of forwarders the recursive service sends queries to. Use Add to include an IP and Restore default to return to the defaults 8.8.8.8, 1.1.1.1, 2001:4860:4860::8888, and 2606:4700:4700::1111. Editing is inline, saving when you leave the field.
  • Firewall: recursive access control through Allow or Block entries with IP / IP Block. Restore default allows only the private ranges. This is where the provider allows its own customers' blocks to use the recursive service, avoiding running an open resolver.
  • Redirections: forces a Domain to answer with an IP defined in Redirect to. Typical use: a block-notice portal or internal split-DNS. The Delete all button clears the list.

Latency diagnostics New in 7.2

The settings modal measures the server's real latency to the root servers, Cloudflare, and Google (with a 30-minute cache) and, when the current configuration is not the best-performing one, shows a Recommendation (for example, moving the forwarders to Cloudflare). The Accept recommendation button applies the change to the configuration; restarting the service remains manual, through the Apply and restart Unbound button.


Domains and zones

Each domain registered in the Authoritative DNS tab becomes a zone hosted on the server. The tab shows the status seals NSD Active / NSD Inactive, the Unbound status, and the Add domain button.

Add a domain

  1. Open the DNS menu and go to the Authoritative DNS tab.
  2. Click Add domain and enter the domain. The system validates for empty field, format, and duplicates.
  3. Click Save.

On save, the system automatically creates the zone's initial records: NS at the root pointing to ns1 and ns2 of the domain itself, A records for ns1 and ns2 pointing to the IPs linked to NSD (using 2 IPs if available), plus A for the root and for www.

Domain cards

Each domain appears in a card with the counters Queries Today, Unique IPs, and Last Hour, and three actions:

  • View: opens the domain's website.
  • Manage: opens the zone management screen (see Records).
  • Delete: removes the domain, with confirmation.

Per-domain access statistics

The Access Statistics panel shows, per domain, the periods Today, 7 days, and 30 days, the charts Query Trend (Today) and Query Types, and the information Last Query, History Size, and Days of History.

In Advanced Analysis, the See Details button opens the Detailed Statistics modal, with date navigation, Total Queries, Unique IPs, Peak Hour, the Queries per Hour chart, Top Domains, and the detailed table with Date/Time, IP Address, Type, and Queried Domain.

Per-domain statistics only exist in the mode with NSD. In legacy mode (Unbound for everything), the interface warns that you need to migrate the Authoritative DNS to the NSD service. For a newly registered domain, statistics start at zero: they only count queries from registration onward.


Records

The Manage button on the domain card opens the Domain DNS management screen, where all zone records live. At the top are the Back and Technical Analysis buttons and the settings gear (for those with level 2 permission). BASIC+ plan

Automatic zone alerts

The screen checks the zone continuously (every 5 seconds) and warns when:

  • an A/AAAA/CNAME record for www is missing;
  • an MX record on the root domain is missing;
  • the server has no internet or no name resolution;
  • the DNS service is not operational (with a link to technical support via WhatsApp).

When everything is in order, the screen confirms that the DNS settings have been validated.

Editing a record does not apply the change right away: the change is saved as pending and lights up the Apply saved changes button. That button is what regenerates the zones and restarts the services. Until it is clicked, the world keeps seeing the old zone.

Add new record

The Add new record form shows a natural-language preview of what the record will do (for example, "points to", "is an alias of", "handles emails for").

FieldDetail
TypeA, AAAA, CNAME, MX, TXT, PTR, or NS.
NameThe record name within the zone. Use @ for the domain root.
Alternative domainPTR only: lets the reverse hostname use another domain (see Reverse (PTR)).
ValueThe label changes by type: Address IPv4/IPv6 (A/AAAA), Destination (CNAME), Email server (MX), Content (TXT), IPv4 address or block (PTR), and nameserver (NS).
TTLFrom 1 minute to 4 weeks. Default: 1 day.
PriorityMX only. From 0 to 65535, required.
Optional commentFree note about the record.

The form validates invalid characters, invalid IP, CNAME pointing to an IP (not allowed), invalid CNAME/MX/NS destinations, TXT above 65535 characters, and PTR with an invalid IP or mask.

Long TXT records, such as DKIM keys, work normally: values above 255 characters are automatically split into quoted blocks, per the standard. There is no need to break the key manually.

Record table and inline editing

The table lists the records with the selection columns, Type, Name, Content, and Options (with the Delete link, which asks for confirmation). There is search by type, name, and content.

  • Inline editing: click the field, edit, and leave the field. The value saves immediately (the field flashes green on success and red on error) and the Apply saved changes button lights up.
  • Inline MX priority New in 7.2: MX records get the Prio field next to the value. You can fix the priority without deleting and recreating the record.
  • PTR records show two fields side by side: the name and the Alternative domain.

Technical Analysis

The Technical Analysis button runs a battery of about 25 real tests against the zone, with a progress bar, grouped into:

  • Initial tests: validation of the configured DNS IPs and nameserver discovery.
  • Global tests: DNSSEC configuration, Delegation at registro.br, consistency between nameservers, and zone file validation.
  • Internal tests: authoritative response, glue records, SOA, NS, port 53 over TCP and UDP, recursion (must not respond), and AXFR transfer (must be blocked).
  • External tests: connectivity, ports, authoritative response seen from outside, response time, IPv6, external DNSSEC, and external recursion and AXFR.

The Analysis Result panel summarizes the Problems Identified. Use the analysis to diagnose wrong delegation at the registrar before opening a ticket.


Reverse (PTR)

Reverse DNS answers "what is the name of this IP" and is a practical requirement for email servers and a good practice for blocks announced on the ASN. In Ravicor, the PTR is just another record type in the domain's zone, and the reverse zones in-addr.arpa and ip6.arpa are created automatically.

Single PTR and block PTR

FormValue enteredResult
Single PTR A single IP Creates the exact reverse for that IP with the given hostname. Ideal for exceptions, such as the email server.
Block PTR An entire CIDR block Generates a PTR for each IP in the block in the format IP-with-dashes.domain. Ideal for populating the reverse of customer blocks in bulk.

The Alternative domain field lets the reverse hostname use a domain different from the managed zone, for example, a PTR under the customer's domain inside your zone.

New in 7.2 The single-host PTR was fixed: it is written directly into the correct reverse zone and, when a single PTR exists inside a CIDR block that is also registered, the specific PTR wins (the IP is excluded from the block's bulk generation).

Overlapping CIDR blocks with different hostnames (for example, a /28 inside a /22) can generate two PTRs for the same IP. For exceptions inside blocks, prefer the single PTR with the exact hostname.

For the reverse to work on the internet, the IP block must be delegated to your nameservers at the registry (registro.br or the corresponding RIR). The Technical Analysis helps validate the delegation.


DNSSEC

DNSSEC cryptographically signs the zone, allowing resolvers to validate that the response was not tampered with. In the mode with NSD, the system generates the keys and signs the zone automatically; the signature is valid for approximately 6 months and is renewed on zone regenerations.

The zone's DNSSEC line

When the zone already has keys, the record table shows a special "DS @" line at the top, with KeyTag, Algorithm (8, RSA/SHA-256), Digest Type (2, SHA-256), and Digest. These are exactly the values the provider registers at the domain registrar (registro.br) to activate the chain of trust.

The screen also shows the DNSSEC Protection Active seal and the Renew Keys button, which clears the current keys, generates new ones, re-signs the zone, and restarts the authoritative service.

After clicking Renew Keys, update the DS record at the registrar immediately. While the old DS remains published, the domain becomes "bogus" for resolvers that validate DNSSEC and stops resolving for much of the internet.

The DS record and the signing statistics only exist in the Unbound for recursive and NSD for authoritative mode. In legacy mode there is no full DNSSEC for the hosted zones. DNSSEC validation of recursive queries is independent: it is the Enable DNSSEC switch in the DNS Settings.


Recursive statistics

The Recursive DNS tab is Unbound's health dashboard. New in 7.2 The recursive statistics (cache, DNSSEC, query types, TCP/IPv6, and queue) gained per-minute history; before, only the authoritative service had statistics.

In the header, the Unbound Active / Unbound Inactive seal indicates the service state. Each card has a "?" with an explanation of the metric.

Critical Metrics

  • Queries per Second: the server's current QPS. The indicator turns yellow above 1000 QPS.
  • Response time: average in milliseconds, with the median alongside.
  • Cache Hit Ratio: percentage of queries answered from cache. Green above 80%.
  • Request List: Unbound's queue of pending queries. Alerts when the maximum reaches 10 or more.

Security and Performance

  • DNSSEC Validation: validated and invalid responses.
  • TCP/IPv6 Queries: volume of queries over TCP and over IPv6.
  • Prefetch and Cache: cache occupancy (RRsets and messages).
  • Unwanted Queries: unsolicited responses received, an indicator of spoofing attempts or abuse.

Active blocks

The Active blocks section shows one card per enabled blocking category (Adware + Malware, Phishing, Anatel, Cryptomining, ADS, Pornography, Social Media, Gambling/Games, Tracking/Analytics, and Fake News), with the number of list domains currently loaded into the service.

Temporal Analysis and Detailed Metrics

  • Cache Performance (Last Hour): queries per second, cache hits, and cache miss.
  • Query Types: distribution across A, AAAA, PTR, CNAME, and ANY.
  • DNSSEC (Last Hour): validated and invalid over time.
  • Response Times: average and median.
  • TCP and IPv6 Queries: evolution over the last hour.

The recursive metrics are collected every minute and the displayed history is always the last hour. These same metrics feed the DNS Panel widget in the Dashboards environment, for display on NOC and TV screens.

DNS Flow tab (live inspection)

The DNS Flow tab is a real-time sniffer of the DNS traffic passing through the server. Typical use: find out which customer or CPE is flooding the recursive service, or check whether an IP is querying odd domains.

FieldWhat it does
InterfaceNetwork interface to capture.
Origin / DestinationFilter by IPs, separated by commas.
Timeout (seconds)Duration of each capture cycle, from 1 to 60 (default 10).
DirectionBoth, Input (default), or Output.
ResultsNumber of rows shown, from 1 to 100 (default 30).

Click Start Monitoring to begin (the button becomes Stop Monitoring). The Requests table is updated every cycle, with the time of the last update.


Anycast (BGP)

New in 7.2 Anycast DNS lets you use the same recursive DNS IP on several servers at once: the service IP lives on the loopback interface and is announced via BGP to the provider's router while DNS is answering. If the server goes down or the service stops, the announcement is withdrawn within seconds and subscriber traffic moves to another server on its own, with no configuration change on any client.

How to enable

  1. Create the service IP on the loopback in General settings → Network: add an IP address choosing interface lo and netmask 255.255.255.255.
  2. In the DNS Settings modal, check that IP in the IPs bound to Unbound list (the Interface column shows lo (loopback)) and click Apply and restart Unbound.
  3. In the Anycast DNS section, click Add and pick the IP and the BGP neighbor: reuse a Flow mitigation session with one click or enter the router IP, the local ASN and the router ASN (optional BGP password, stored encrypted). Save the announcement.

While a prerequisite is missing, the section itself stays locked explaining what is missing and pointing the way. The health test domain can be customized per announcement.

Live status and failover

Each announcement shows three indicators refreshed every few seconds: BGP session, Announcement (announced or withdrawn) and DNS health, with the reason spelled out whenever something blocks the announcement. The announcement only stays on the air with the session established and health good; if any condition drops, the route is withdrawn from the router automatically. That withdrawal is Anycast working as intended: a failing server stops attracting traffic.

Router configuration

For announcements with their own session, the Router commands button generates ready-to-use configuration for MikroTik RouterOS v6 and v7, Huawei VRP and Cisco IOS, already with a filter accepting only the anycast IP prefix. Copy, review and apply it on your equipment.

Reusing a Flow session announces IPv4 only and propagates the route to all BGP neighbors of that session; to announce IPv6 or control exactly who receives the route, use a dedicated session. On RouterOS 7.20 or newer, create the BGP instance before the connection.

Service status

The seals Unbound Active/Unbound Inactive and NSD Active/NSD Inactive appear in the tab headers. The seal only turns green when both conditions hold at the same time: the service is enabled in the configuration and the process is in fact active in the operating system. New in 7.2 The NSD status now uses this double rule, the same as Unbound.

How changes are applied

  1. Every edit in the interface (domains, records, switches, linked IPs) is saved as pending configuration.
  2. Click Apply saved changes (on the domain screen) or Apply and restart Unbound / Apply and restart NSD (in the settings modal).
  3. The system regenerates the forward and reverse zones, the service configuration, and the DNSSEC keys and signatures, and restarts the affected service. The screen shows "Processing" and confirms when the changes have been applied successfully.

A resident Ravi monitor tracks the services continuously: besides applying the changes, it watches Unbound and NSD and tries to bring them back up on its own if they go down.

NSD and Unbound listen on different IPs. If after applying a change dig still shows the old value, check whether the query was made to the recursive IP: in that case the response may have come from cache (TTL of up to 1 hour). Test against the IP linked to NSD or use Clear cache in the settings modal.

Common problems

SymptomLikely cause and action
I edited a record and nothing changed You still need to click Apply saved changes (or Apply and restart in the settings modal).
"Inactive" seal with the switch on The service went down in the operating system. The resident monitor tries to bring it back up; check whether port 53 is taken by another process or whether there is an invalid zone.
"Statistics not available" on the domains The structure is still in legacy mode (Unbound for everything). Migrate to the mode with NSD in the DNS Settings modal.
Domain resolves on the server but not on the internet Delegation problem. Run the Technical Analysis (Delegation at registro.br test) and check NS and glue records at the registrar.
Domain stopped resolving after Renew Keys The old DS is still at the registrar. Update the DS with the values from the zone's DNSSEC line.
Recursive not responding to customers The customer's block does not have an Allow entry in the Firewall of the settings modal.
Recursive tab with empty charts Unbound off or metric collection stopped. Remember that the displayed history is only the last hour.

Best practices

  • Keep Enable Prefetch, Enable DNSSEC, Enable Adware + Malware Blocking, and Enable Phishing Blocking on (they are marked "Recommended" in the interface). Enable Anatel Blocking is mandatory in Brazil.
  • Validate critical changes with the Technical Analysis before and after applying.
  • The default TTL is 1 day; reduce it to 5 to 15 minutes before planned migrations.
  • Do not expose the recursive to the entire internet: keep the Firewall with only the provider's own blocks.