DNS Settings

DNS Settings control whether openZro manages DNS configuration for specific peer groups. This is useful when certain peers need to maintain their existing DNS setup.

DNS Management Modes

openZro supports two DNS management modes per peer:

Managed Mode (Default)

openZro configures the system's DNS settings. All DNS queries route through openZro's local resolver, and configured nameservers apply to this peer.

Unmanaged Mode

openZro does not modify system DNS settings. The peer uses its pre-existing DNS configuration and all configured nameservers are ignored.

Use unmanaged mode when a peer has conflicting VPN or DNS requirements, corporate policy requires specific DNS settings, or you're troubleshooting DNS issues.

Client-Side DNS Control

You can also disable DNS management directly on a peer using the --disable-dns flag:

# Disable DNS management on this peer
openzro up --disable-dns

# Enable DNS management on this peer
openzro up --disable-dns=false

Configuring DNS Settings

Disable DNS Management for a Group

  1. Go to DNSDNS Settings
  2. Click the groups selection box and select existing groups, or type a new group name and press enter to create one inline
  3. Click Save Changes
DNS settings

Re-enable DNS Management

  1. Go to DNSDNS Settings
  2. Remove the group from the disabled list
  3. Click Save Changes

Domain Controllers

For guidance on running openZro alongside Domain Controllers, including disabling DNS management for DC groups, see Internal DNS Servers.


API Configuration

You can manage DNS settings programmatically:

# Get current settings
curl -X GET https://api.openzro.io/api/dns/settings \
  -H "Authorization: Token <TOKEN>"

# Update settings
curl -X PUT https://api.openzro.io/api/dns/settings \
  -H "Authorization: Token <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "disabled_management_groups": [
      "ch8i4ug6lnn4g9hqv7m0",
      "ch8i4ug6lnn4g9hqv7m1"
    ]
  }'

See the full API Reference for more details.


Next Steps