This page covers common configuration steps for YADIFA authoritative-only DNS deployments.
Note: YADIFA is an authoritative-only DNS server. It does not support recursion, caching, forwarders, or split-horizon DNS. It is designed exclusively for serving authoritative zone data.
If you followed the setup guide, your main configuration file is /etc/yadifa/yadifad.conf (note: yadifad.conf, not yadifa.conf).
A typical yadifad.conf file includes:
# Server identity
key {
algorithm hmac-md5
secret "base64-encoded-secret"
}
# Listen settings
local-address {
0.0.0.0
::1
}
# Logging
log {
file "/var/log/yadifa/yadifa.log"
level info
}
# Zone definitions
zone example.com master {
type master
zonefile "/var/lib/yadifa/zones/example.com.zone"
}
Reload the DNS service after updating configuration files:
sudo systemctl reload yadifa
# or, for source installs:
sudo kill -HUP $(cat /run/yadifa/yadifa.pid)
Run a test lookup with dig or nslookup to confirm configuration is valid:
# Test authoritative response
dig @localhost example.com SOA
# Verify zone is loaded
dig @localhost example.com NS
For detailed configuration options, refer to:
man yadifad(8), man yadifad.conf(5)