All documentation pages ↓

On this page

Zones and their settings

LiteBlox declares every zone itself, in /etc/bind/liteblox/zones.conf on each node that serves it. A forward or reverse zone's file lives on the primary (/etc/bind/liteblox/db.<zone>, or under /var/lib/bind/liteblox/dyn/ for a dynamic zone); each secondary keeps its own copy, transferred from the primary, in /var/lib/bind/liteblox/sec/.

The Zones list

Each zone shows what kind it is (reverse, dynamic, forwarding, and draft when it has unpublished changes), its published serial and the serial each node serves. The links above the list show only one kind (Forward, Reverse, Dynamic, Forwarding, Drafts), each with its count; the page's address keeps the choice, so you can bookmark it.

Every zone change

Creating a zone, adding or removing a node, changing its settings and deleting it all work the same way:

  1. Each affected node is backed up. If a backup fails, nothing is changed.
  2. Each node's new configuration is staged: the agent checks every file against its allow-list and runs named-checkconf on the whole set. A refusal anywhere cancels the change everywhere.
  3. Each node commits: writes the files and runs rndc reconfig, restoring its previous files if that fails.
  4. LiteBlox checks over DNS that each node serves (or no longer serves) the zone, and that secondaries have transferred it.

Creating a zone

Zones → Add zone, then choose a kind:

For a forward or reverse zone:

The new zone is kept sorted, like every static zone. It starts with an SOA (serial YYYYMMDD01, refresh 3600, retry 900, expire 1209600, negative TTL 300), the NS records and any nameserver addresses. When the job finishes, Open ZONE takes you to it.

Without a primary picked yet, every node you tick holds its own primary copy and gets every publish. Pick a primary on the Nodes page to switch to one primary with secondaries.

Forwarding-only zones

A forwarding-only zone sends queries for a domain, and every name under it, to other servers instead of resolving them the normal way: for example a company domain answered by its own DNS servers over a VPN. It has no records in LiteBlox and no primary; every node you pick forwards it the same way.

Its Settings tab has the forwarders, the nodes and the Danger zone; there's nothing to edit, review or publish.

Adding and removing nodes

Settings

The zone's Settings tab:

Save and apply to nodes rewrites zones.conf on every node serving the zone, through the same backed-up, staged process. The current declaration on the primary is shown under the form.

Deleting a zone

The Danger zone at the bottom of a zone's Settings tab has Delete this zone. Type the zone's name to enable the button.

LiteBlox removes the declaration from every node serving it, through the same backed-up, staged process, and checks they no longer serve it. Every node must be reachable; if one is gone for good, remove that node first. The zone files stay on the nodes. A forwarding-only zone's validate-except entry goes too.

Any draft is discarded and the zone's history stays in the zone repository. Creating or importing a zone with the same name later brings the older versions back under History, where you can restore one into a draft.