DNS Zones
DNS zones allow you to manage domains directly through brdz, enabling complete control over DNS records.
Overview
Section titled “Overview”A DNS zone represents a domain name that you control. Once you create a zone, you can:
- Manage DNS records (A, AAAA, CNAME, MX, TXT, etc.)
- Delegate nameserver authority to brdz
- Integrate DNS management with your deployments
Creating a DNS Zone
Section titled “Creating a DNS Zone”Create a new DNS zone for a domain you own:
brdz dns:zones:create example.comAfter creating a zone, you’ll receive:
- Nameserver addresses to configure at your registrar
- Zone ID for managing records
- Verification instructions
Requirements:
- You must own the domain
- Domain must be a valid root domain (not a subdomain)
Examples
Section titled “Examples”# Create zone for root domainbrdz dns:zones:create example.com
# Create zone for another domainbrdz dns:zones:create mysite.io
# Create zone for country TLDbrdz dns:zones:create example.co.ukListing DNS Zones
Section titled “Listing DNS Zones”View all your DNS zones:
brdz dns:zones:listOutput example:
ID Domain Status Created At1 example.com active 2025-01-18 10:30:002 mysite.io pending 2025-01-18 14:20:003 test.dev verified 2025-01-17 16:45:00Zone Statuses
Section titled “Zone Statuses”- pending - Waiting for nameserver delegation
- verified - Nameservers configured correctly
- active - Zone is fully operational
- inactive - Zone has been deactivated
Getting Zone Details
Section titled “Getting Zone Details”Get detailed information about a specific zone:
brdz dns:zones:get <zone>Output includes:
- Zone ID
- Domain name
- Status
- Nameserver addresses
- Creation timestamp
- Verification status
Verifying a Zone
Section titled “Verifying a Zone”After creating a zone, verify that nameservers are configured correctly:
brdz dns:zones:verify <zone>This command checks:
- Nameserver delegation at your registrar
- DNS propagation status
- Zone authority
Nameserver Configuration
Section titled “Nameserver Configuration”To activate your zone, configure these nameservers at your domain registrar:
ns1.brdz-dns.comns2.brdz-dns.comns3.brdz-dns.comns4.brdz-dns.comNote: Nameserver addresses may vary - check your zone details for the exact addresses.
DNS Propagation
Section titled “DNS Propagation”After updating nameservers:
- Changes can take up to 48 hours to propagate globally
- Run
dns:zones:verifyto check status - Records won’t resolve until verification completes
Deactivating a Zone
Section titled “Deactivating a Zone”Temporarily deactivate a zone without deleting it:
brdz dns:zones:deactivate <zone>Deactivated zones:
- Retain all DNS records
- Stop responding to queries
- Can be reactivated later
Deleting a Zone
Section titled “Deleting a Zone”Permanently delete a DNS zone:
brdz dns:zones:delete <zone>Warning: This action:
- Deletes all DNS records in the zone
- Cannot be undone
- Stops DNS resolution immediately
Zone Management Workflow
Section titled “Zone Management Workflow”1. Create the Zone
Section titled “1. Create the Zone”brdz dns:zones:create example.comNote the zone ID from the output.
2. Configure Nameservers
Section titled “2. Configure Nameservers”Update nameservers at your domain registrar to point to brdz nameservers.
3. Verify Configuration
Section titled “3. Verify Configuration”brdz dns:zones:verify <zone>Wait for verification to complete (may take up to 48 hours).
4. Add DNS Records
Section titled “4. Add DNS Records”brdz dns:records:create example.com A 192.0.2.1 --zone <zone>brdz dns:records:create www.example.com CNAME example.com --zone <zone>Best Practices
Section titled “Best Practices”- Verify before adding records - Ensure zone is verified before creating records
- Keep registrar access - Maintain access to change nameservers back if needed
- Document zone IDs - Store zone IDs for scripting and automation
- Test with staging domains - Try DNS management on test domains first
- Monitor verification - Check verification status regularly
- Plan migrations - Have a rollback plan when migrating DNS
Common Use Cases
Section titled “Common Use Cases”Managing App Domains
Section titled “Managing App Domains”# Create zone for your app domainbrdz dns:zones:create myapp.com
# Add records for appbrdz dns:records:create myapp.com A 192.0.2.1 --zone <zone>brdz dns:records:create www.myapp.com CNAME myapp.com --zone <zone>Email Configuration
Section titled “Email Configuration”# Create MX recordsbrdz dns:records:create example.com MX mail.example.com --zone <zone> --prio 10
# Add SPF recordbrdz dns:records:create example.com TXT "v=spf1 include:_spf.example.com ~all" --zone <zone>Multiple Environments
Section titled “Multiple Environments”# Production on root domainbrdz dns:records:create example.com A 192.0.2.1 --zone <zone>
# Staging on subdomainbrdz dns:records:create staging.example.com A 192.0.2.2 --zone <zone>Troubleshooting
Section titled “Troubleshooting”Zone Not Verifying
Section titled “Zone Not Verifying”If verification fails:
- Check nameservers are correctly configured at registrar
- Wait for DNS propagation (up to 48 hours)
- Use
dig example.com NSto check delegation - Verify there are no typos in nameserver addresses
Records Not Resolving
Section titled “Records Not Resolving”If records aren’t resolving:
- Verify zone is active:
brdz dns:zones:get <zone> - Check records exist:
brdz dns:records:list --zone <zone> - Wait for DNS propagation
- Test with:
dig @ns1.brdz-dns.com example.com
Cannot Delete Zone
Section titled “Cannot Delete Zone”If zone deletion fails:
- Delete all DNS records first
- Verify you have permission
- Check zone isn’t locked
Commands Reference
Section titled “Commands Reference”dns:zones:create <domain>
Section titled “dns:zones:create <domain>”Create a new DNS zone.
Arguments:
domain- Root domain name (required)
Example:
brdz dns:zones:create example.comdns:zones:list
Section titled “dns:zones:list”List all DNS zones.
Example:
brdz dns:zones:listdns:zones:get <zone>
Section titled “dns:zones:get <zone>”Get detailed information about a DNS zone.
Arguments:
zone- Zone name (required)
Example:
brdz dns:zones:get abc123dns:zones:verify <zone>
Section titled “dns:zones:verify <zone>”Verify nameserver configuration for a zone.
Arguments:
zone- Zone name (required)
Example:
brdz dns:zones:verify abc123dns:zones:deactivate <zone>
Section titled “dns:zones:deactivate <zone>”Deactivate a DNS zone.
Arguments:
zone- Zone name (required)
Example:
brdz dns:zones:deactivate abc123dns:zones:delete <zone>
Section titled “dns:zones:delete <zone>”Delete a DNS zone permanently.
Arguments:
zone- Zone name (required)
Example:
brdz dns:zones:delete abc123Related Topics
Section titled “Related Topics”- DNS Records - Managing records within zones
- Hostnames - Adding custom domains to apps
- DNS Management Guide - Complete DNS workflow