SaltDns.Zones.Export (Salt v1.0.0)

A zone as an RFC 1035 section 5 master file (a zone file): one line per record, an absolute owner name, the rrset's TTL and class IN.

; zone example.com exported from Salt at 2026-11-18T10:00:00Z
; 12 rrsets, 20 records
$ORIGIN example.com.
example.com.  3600  IN  MX   10 mail.example.com.
www.example.com.  300  IN  A  192.0.2.1

Disabled records are not served, so they are not in the file; the header says how many were left out. SOA and the DNSSEC records (DNSKEY, RRSIG, NSEC, ...) are generated by the nameserver and are not stored as rrsets, so this is the data Salt keeps, not a full signed zone. The output parses with SaltDns.Import.ZoneFile.

Summary

Functions

The zone file for zone from its rrsets (as SaltDns.Zones.list_rrsets/1 returns them). Option :now overrides the timestamp in the header.

Functions

text(zone, rrsets, opts \\ [])

The zone file for zone from its rrsets (as SaltDns.Zones.list_rrsets/1 returns them). Option :now overrides the timestamp in the header.