Situatie
Se doreste pastrarea introgarilor DNS intr-un server DNS local cu cache.
Solutie
Pasi de urmat
Instaleaza bind9.
sudo apt-get install bind9
In fisierul /etc/bind/named.conf.options adauga:
options {
directory “/var/cache/bind”;listen-on { 127.0.0.1; };forwarders { 8.8.8.8; 8.8.4.4; };
forward only;# Disable non-relevant operations
allow-transfer { none; };
allow-update-forwarding { none; };
allow-notify { none; };
auth-nxdomain no;
};
In exemplul meu am adaugat servere DNS ale celor de la Google, dar se pot adauga oricare alte servere.
In caz ca este necesar un flush, se ruleaza comanda:
sudo rndc flush
Leave A Comment?