Catatan tutorial installasi dnsdist pada sistem operasi centos 7-8/almalinux 8 berikut ini
Beberapa hal yang perlu di siapkan preinstallasi
sudo dnf group install "Development Tools" yum install automake autoconf -y yum install ragel ragel-devel -y yum install libedit-devel -y yum install boost boost-devel boost-system boost-filesystem -y yum install lua lua-devel -y yum install gcc openssl-devel bzip2-devel libffi-devel -y
Jika tidak bisa menginstall libedit-devel di almalinux maka perlu mengaktifkan repo powertools
sudo dnf config-manager --set-enabled powertools
selanjutnya install ulang libedit-devel
yum install libedit-devel -y
kemudian
wget https://downloads.powerdns.com/releases/dnsdist-1.9.2.tar.bz2 bunzip2 dnsdist-1.9.2.tar.bz2 untar dnsdist-1.9.2.tar tar -xvf dnsdist-1.9.2.tar cd dnsdist-1.9.2/ ls ./configure make
konfigurasi
adduser dnsdist
nano /usr/local/etc/dnsdist.conf
Contoh
-- Define your Pi-hole DNS servers newServer({address="8.8.8.8", name="google", checkName="google.com", checkInterval=30}) newServer({address="1.1.1.1", name="opendns", checkName="opendns.com", checkInterval=30}) -- Set the load balancing policy setServerPolicy(roundrobin) -- Listen on port 53 (DNS) addLocal("127.0.0.2:53") -- Use the console to manage dnsdist controlSocket("127.0.0.3:5199") setKey("2XCyp6q9keySARg=")
start
systemctl enable dnsdist systemctl start dnsdist