YADIFA is commonly installed from source or vendor packages. If your distribution repositories do not include it, use the source build steps below.
sudo apt update
sudo apt install yadifa
sudo systemctl enable --now yadifa
sudo dnf install gcc make libssl-devel
curl -LO https://downloads.yadifa.eu/releases/yadifa-3.0.3.tar.gz
tar -xzf yadifa-3.0.3.tar.gz
cd yadifa-3.0.3
./configure
make
sudo make install
Configuration files:
/etc/yadifa/yadifa.confIf you installed from source, create a systemd unit like this (adjust paths if needed):
[Unit]
Description=YADIFA DNS server
After=network.target
[Service]
ExecStart=/usr/local/sbin/yadifad -c /etc/yadifa/yadifa.conf
Restart=on-failure
User=yadifa
Group=yadifa
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
Enable and start:
sudo systemctl daemon-reload
sudo systemctl enable --now yadifa