3
3
3err02015-02-01 17:57:40
Domain Name System
3err0, 2015-02-01 17:57:40

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;
}

And I had a question of the following nature, when the torrent client is running, with each new peer / seed, information on each of them is added to the service cache, thereby clogging its list with unnecessary information that is not used in the future.
Is it possible to somehow configure pdnsd in such a way as to exclude information from the ip addresses of peers / seeds from getting into the cache without limiting the downloads themselves?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergei Petrikov, 2015-02-01
@RicoX

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 question

Ask a Question

731 491 924 answers to any question