ResolvXResolvX

Zones

Managing DNS zones in ResolvX

DNS Zones

A DNS zone is a portion of the DNS namespace that is managed by a specific organization or administrator. In ResolvX, zones are the primary containers for your DNS records.

Creating a Zone

Via Dashboard

  1. Navigate to Zones in the sidebar
  2. Click Create Zone
  3. Enter the zone name (e.g., example.com)
  4. Click Create

Via API

curl -X POST http://localhost:8080/api/v1/zones \
  -H "Content-Type: application/json" \
  -d '{"name": "example.com"}'

Via CLI

resolvx zone create example.com

Listing Zones

Via API

curl http://localhost:8080/api/v1/zones

Response:

{
  "zones": [
    {
      "name": "example.com",
      "soa": {
        "mname": "ns1.example.com.",
        "rname": "admin.example.com.",
        "serial": 2024011501,
        "refresh": 86400,
        "retry": 7200,
        "expire": 3600000,
        "minimum": 300
      },
      "created_at": "2024-01-15T10:30:00Z",
      "updated_at": "2024-01-15T10:30:00Z"
    }
  ]
}

Via CLI

resolvx zone list

Zone Details

Get detailed information about a zone:

curl http://localhost:8080/api/v1/zones/example.com

SOA Record

Every zone automatically has a Start of Authority (SOA) record created. The SOA contains:

FieldDescriptionDefault
mnamePrimary nameserverns1.<zone>.
rnameAdmin email (@ replaced with .)admin.<zone>.
serialZone version numberAuto-generated
refreshRefresh interval86400 (24h)
retryRetry interval7200 (2h)
expireExpiry time3600000 (~41 days)
minimumMinimum TTL300 (5m)

Deleting a Zone

Deleting a zone will also delete all records in that zone. This action cannot be undone.

Via API

curl -X DELETE http://localhost:8080/api/v1/zones/example.com

Via CLI

resolvx zone delete example.com

Exporting Zone Files

Export a zone in BIND format:

Via Dashboard

  1. Go to Zones
  2. Click the ... menu on a zone
  3. Select Download Zone File

Via API

curl http://localhost:8080/api/v1/zones/example.com/export

This returns a BIND-compatible zone file:

; Zone file for example.com
; Generated by ResolvX

$ORIGIN example.com.
$TTL 300

@	IN	SOA	ns1.example.com. admin.example.com. (
			2024011501	; Serial
			86400		; Refresh
			7200		; Retry
			3600000		; Expire
			300 )		; Minimum TTL

; A Records
www	300	IN	A	192.168.1.100

Next Steps

On this page