A comprehensive guide to setting up and managing DNS zones using Unbound DNS resolver.
Before setting up a DNS zone on Unbound, ensure you have:
Understanding key Unbound concepts:
Use our configuration generator to create your Unbound configuration:
server:
interface: 0.0.0.0
access-control: 192.0.2.0/24 allow
verbosity: 1
# Local zone configuration
local-zone: "example.com." static
local-data: "example.com. IN A 192.0.2.1"
local-data: "www.example.com. IN A 192.0.2.1"
local-data: "mail.example.com. IN A 192.0.2.1"
local-data: "example.com. IN MX 10 mail.example.com."
local-data: "example.com. IN NS ns1.example.com."
local-data: "ns1.example.com. IN A 192.0.2.1"
Verify your Unbound configuration:
unbound-checkconf /etc/unbound/unbound.conf
sudo systemctl restart unbound
dig @localhost example.com
nslookup example.com localhost
Advanced Unbound features and configurations:
DNSCaptain is an independent service. We are not affiliated with any commercial DNS provider.