Answer the question
In order to leave comments, you need to log in
PDNSD how to prevent unnecessary requests?
On one of the servers, the caching DNS service PDNSD with the current config is raised, which is referenced by several computers located on the network.
global {
perm_cache=20480;
cache_dir="/var/cache/pdnsd";
run_as="pdnsd";
server_ip = eth0; // Use eth0 here if you want to allow other
#interface = any;
status_ctl = on;
paranoid=on;
#query_method = tcp_udp;
min_ttl=60m; // Retain cached entries at least 15 minutes.
max_ttl=1w; // One week.
neg_ttl=5m; //Время кеширования отрицательных ответов (т.е. если домен не найден)
timeout=10; // Global timeout option (10 seconds).
par_queries=3; //Количество одновременно опрашиваемых "родительских" DNS серверов
}
server {
label = "root-servers";
root_server=on;
ip = 8.8.8.8, //Google
62.165.33.250, //TTK
# 77.88.8.8, //Yandex
208.67.222.222, //OpenDNS
193.58.251.251; //SkyDNS
timeout = 5;
uptest = query;
interval = 30m; // Test every half hour.
ping_timeout = 300; // 30 seconds.
purge_cache = off;
exclude = .localdomain;
policy = included;
preset = off;
}
source {
owner=localhost;
// serve_aliases=on;
file="/etc/hosts";
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}
Answer the question
In order to leave comments, you need to log in
No, well, if there is no desire to update the filters for each feast manually, and if you feel sorry for the cache, well, set a shorter storage time - it will go bad faster.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question