Nameserver Groups
Nameserver groups define DNS servers that peers should use for resolving domains.List All Nameserver Groups
string
Unique nameserver group identifier
string
Nameserver group name (1-40 characters)
string
Description of the nameserver group
array
List of nameserver configurations (1-3 servers)
boolean
Whether the nameserver group is active
array
Peer group IDs that should use these nameservers
boolean
Primary nameserver group resolves all domains (requires empty
domains)array
Match domain list (empty only if
primary: true)boolean
Enable search domains (only when
domains is not empty)Create a Nameserver Group
string
required
Nameserver group name (1-40 characters)
string
required
Description of the nameserver group
array
required
List of 1-3 nameserver configurations
boolean
required
Whether the nameserver group is active
array
required
Peer group IDs that should use these nameservers
boolean
required
Whether this is the primary nameserver group
array
required
Match domain list (1-255 characters each)
boolean
required
Enable search domains for match domains
Update a Nameserver Group
string
required
The unique identifier of the nameserver group
Example
Delete a Nameserver Group
Example
DNS Settings
Manage global DNS settings including which groups have DNS management disabled.Get DNS Settings
Example
array
Group IDs whose DNS management is disabled
Update DNS Settings
array
required
Group IDs to disable DNS management for
Example
Custom DNS Zones
Create custom DNS zones with A, AAAA, and CNAME records.List All DNS Zones
Create a DNS Zone
string
required
Zone name identifier (1-255 characters)
string
required
Zone domain (FQDN)
boolean
required
Enable this zone as a search domain
array
required
Group IDs that will use this zone
Example
Update a DNS Zone
Delete a DNS Zone
DNS Records
Manage DNS records within custom zones.Create a DNS Record
string
required
The unique identifier of the zone
string
required
FQDN for the DNS record (must be subdomain of zone)
string
required
DNS record type:
A, AAAA, or CNAMEstring
required
DNS record content (IP for A/AAAA, domain for CNAME)
integer
required
Time to live in seconds (minimum: 0)
Update a DNS Record
Delete a DNS Record
DNS Resolution Flow
- Custom Zones - Checked first for matching domains
- Domain-Specific Nameservers - Used for configured domains
- Primary Nameservers - Used for all other queries
- System DNS - Fallback if no NetBird DNS configured
Common Configurations
Split DNS
Use different nameservers for different domains:Search Domains
Enable search domains for easy access:ping server instead of ping server.company.com
Best Practices
Use primary nameservers - Always configure a primary for general DNS resolution
Split internal/external - Use separate nameservers for internal vs external domains
Enable search domains - Makes internal resources easier to access
Set appropriate TTLs - Lower for dynamic records, higher for static
Monitor DNS health - Ensure nameservers are reachable