bind9-dlz-mariadb
Zone database schema for BIND9 DLZ mariadb plugin.
Tables (5)
zone_authority
- zone — VARCHAR(255) — Primary key — NOT NULL — Zone name or "*" (PK)
- owner_name — VARCHAR(255) — NOT NULL — Owner of zone (maybe corp. name), not for DNS records
- admin_name — VARCHAR(255) — NOT NULL — Admin of zone (maybe tech. officer), not for DNS records
- admin_email — VARCHAR(255) — NOT NULL — Email of admin, not for DNS records
- memo — TEXT
- create_id — VARCHAR(100) — NOT NULL
- create_dt — DATETIME — NOT NULL
- update_id — VARCHAR(100) — NOT NULL
- update_dt — DATETIME — NOT NULL
- deleted — CHAR(1)
- delete_id — VARCHAR(100)
- delete_dt — DATETIME
zone_record
- record_id — BIGINT — Primary key — NOT NULL — Record id (PK)
- zone — VARCHAR(255) — Foreign key → zone_authority.zone — NOT NULL — Zone name or "*" (PK)
- name — VARCHAR(255) — NOT NULL — Host Name
- type — VARCJAR(50) — NOT NULL — Record type
- data — TEXT — NOT NULL — Record data
- mx_priority — INT — Priority of mail exchanger (MX only)
- ttl — INT — TTL of this record (default: ttl of SOA)
- memo — TEXT
- create_id — VARCHAR(100) — NOT NULL
- create_dt — DATETIME — NOT NULL
- update_id — VARCHAR(100) — NOT NULL
- update_dt — DATETIME — NOT NULL
- deleted — CHAR(1)
- delete_id — VARCHAR(100)
- delete_dt — DATETIME
zone_serial
- zone — VARCHAR(255) — Foreign key → zone_authority.zone — NOT NULL — Zone name or "*" (PK)
- serial — BIGINT — NOT NULL — Version no. (3rd field of SOA data)
- create_id — VARCHAR(100) — NOT NULL
- create_dt — DATETIME — NOT NULL
- update_id — VARCHAR(100) — NOT NULL
- update_dt — DATETIME — NOT NULL
zone_soa
- zone — VARCHAR(255) — Foreign key → zone_authority.zone — NOT NULL — Zone name or "*" (PK)
- origin — VARCHAR(255) — NOT NULL — Primary nameserver (1st field of SOA data)
- email — VARCHAR(255) — NOT NULL — Email of the person in charge (2nd field of SOA data)
- refresh — INT — NOT NULL — Slave refresh how often, in seconds (4th field of SOA data)
- retry — INT — NOT NULL — Slave retry how long after transfer failure, in seconds (5th field of SOA data)
- expire — INT — NOT NULL — Slave use without update how long before expire it, in seconds (6th field of SOA data)
- minimum — INT — NOT NULL — Default TTL, in seconds (applied for record not found, 7th field of SOA data)
- ttl — INT — TTL of SOA record, this assume as default TTL for all records
- create_id — VARCHAR(100) — NOT NULL
- create_dt — DATETIME — NOT NULL
- update_id — VARCHAR(100) — NOT NULL
- update_dt — DATETIME — NOT NULL
- deleted — CHAR(1)
- delete_id — VARCHAR(100)
- delete_dt — DATETIME
zone_stat
- date — DATE — Primary key — NOT NULL — Date (PK)
- zone — VARCHAR(255) — Foreign key → zone_authority.zone — NOT NULL — Zone name or "*" (PK)
- count — INT — NOT NULL — Counts of findzone() called
- create_id — VARCHAR(100) — NOT NULL
- create_dt — DATETIME — NOT NULL
- update_id — VARCHAR(100) — NOT NULL
- update_dt — DATETIME — NOT NULL