DNS Management¶
The bnerd dns command group manages DNS zones and records.
Overview¶
DNS management is a two-level hierarchy:
- Zones — DNS zones (e.g.,
example.com.) that contain records - Records — Individual DNS records within a zone (A, AAAA, CNAME, MX, TXT, etc.)
You must create a zone before you can add records to it.
Commands¶
bnerd dns zones— Create, list, get, and delete DNS zonesbnerd dns records— Create, list, update, and delete DNS records
Requirements¶
DNS commands require --token and --org-id (organization-scoped).
Quick Example¶
# Create a zone
bnerd dns zones create example.com
# Add an A record
bnerd dns records create <zone-id> \
--name www.example.com. \
--type A \
--content 1.2.3.4
# List all records
bnerd dns records list <zone-id>
Trailing dot
DNS names should use FQDN format with a trailing dot (e.g., example.com., www.example.com.).