de linuxmanr4, 4 años han pasado desde su publicación, escrito en Plain Text.
Enlace corto
http://gw.gd/fv5c
Insertar vínculo
  1. // Sample pdnsd configuration file. Must be customized to obtain a working pdnsd setup!
  2. // Read the pdnsd.conf(5) manpage for an explanation of the options.
  3. // Add or remove '#' in front of options you want to disable or enable, respectively.
  4. // Remove '/*' and '*/' to enable complete sections.
  5.  
  6. global {
  7.         perm_cache=1024;
  8.         cache_dir="/var/cache/pdnsd";
  9. #       pid_file = /var/run/pdnsd.pid;
  10.         run_as="nobody";
  11.         server_ip = 127.0.0.1;  # Use eth0 here if you want to allow other
  12.                                 # machines on your network to query pdnsd.
  13.         status_ctl = on;
  14. #       paranoid=on;       # This option reduces the chance of cache poisoning
  15.                            # but may make pdnsd less efficient, unfortunately.
  16.         query_method=udp_tcp;
  17.         min_ttl=15m;       # Retain cached entries at least 15 minutes.
  18.         max_ttl=1w;        # One week.
  19.         timeout=10;        # Global timeout option (10 seconds).
  20.         neg_domain_pol=on;
  21.         udpbufsize=1024;   # Upper limit on the size of UDP messages.
  22. }
  23.  
  24. # The following section is most appropriate if you have a fixed connection to
  25. # the Internet and an ISP which provides good DNS servers.
  26. server {
  27.         label= "google";
  28.         ip = 8.8.8.8, 8.8.4.4;  # Put your ISP's DNS-server address(es) here.
  29. #       proxy_only=on;     # Do not query any name servers beside your ISP's.
  30.                            # This may be necessary if you are behind some
  31.                            # kind of firewall and cannot receive replies
  32.                            # from outside name servers.
  33.         timeout=4;         # Server timeout; this may be much shorter
  34.                            # that the global timeout option.
  35.         uptest=if;         # Test if the network interface is active.
  36.         interface=eth0;    # The name of the interface to check.
  37.         interval=10m;      # Check every 10 minutes.
  38.         purge_cache=off;   # Keep stale cache entries in case the ISP's
  39.                            # DNS servers go offline.
  40.         edns_query=yes;    # Use EDNS for outgoing queries to allow UDP messages
  41.                            # larger than 512 bytes. May cause trouble with some
  42.                            # legacy systems.
  43. #       exclude=.thepiratebay.org,  # If your ISP censors certain names, you may
  44. #               .thepiratebay.se,   # want to exclude them here, and provide an
  45. #               .piratebay.org,     # alternative server section below that will
  46. #               .piratebay.se;      # successfully resolve the names.
  47. }
  48.  
  49. /*
  50. # The servers provided by OpenDNS are fast, but they do not reply with
  51. # NXDOMAIN for non-existant domains, instead they supply you with an
  52. # address of one of their search engines. They also lie about the addresses of
  53. # of the search engines of google, microsoft and yahoo.
  54. # If you do not like this behaviour the "reject" option may be useful.
  55. server {
  56.         label = "opendns";
  57.         ip = 208.67.222.222, 208.67.220.220;
  58.         reject = 208.69.32.0/24,  # You may need to add additional address ranges
  59.                  208.69.34.0/24,  # here if the addresses of their search engines
  60.                  208.67.219.0/24; # change.
  61.         reject_policy = fail;     # If you do not provide any alternative server
  62.                                   # sections, like the following root-server
  63.                                   # example, "negate" may be more appropriate here.
  64.         timeout = 4;
  65.         uptest = ping;            # Test availability using ICMP echo requests.
  66.         ping_timeout = 100;       # ping test will time out after 10 seconds.
  67.         interval = 15m;           # Test every 15 minutes.
  68.         preset = off;
  69. }
  70. */
  71.  
  72. /*
  73. # This section is meant for resolving from root servers.
  74. server {
  75.         label = "root-servers";
  76.         root_server = discover; # Query the name servers listed below
  77.                                 # to obtain a full list of root servers.
  78.         randomize_servers = on; # Give every root server an equal chance
  79.                                 # of being queried.
  80.         ip =    198.41.0.4,     # This list will be expanded to the full
  81.                 192.228.79.201; # list on start up.
  82.         timeout = 5;
  83.         uptest = query;         # Test availability using empty DNS queries.
  84. #       query_test_name = .;    # To be used if remote servers ignore empty queries.
  85.         interval = 30m;         # Test every half hour.
  86.         ping_timeout = 300;     # Test should time out after 30 seconds.
  87.         purge_cache = off;
  88. #       edns_query = yes;       # Use EDNS for outgoing queries to allow UDP messages
  89.                                 # larger than 512 bytes. May cause trouble with some
  90.                                 # legacy systems.
  91.         exclude = .localdomain;
  92.         policy = included;
  93.         preset = off;
  94. }
  95. */
  96.  
  97. source {
  98.         owner=localhost;
  99. #       serve_aliases=on;
  100.         file="/etc/hosts";
  101. }
  102.  
  103. /*
  104. include {file="/etc/pdnsd.include";}    # Read additional definitions from /etc/pdnsd.include.
  105. */
  106.  
  107. rr {
  108.         name=localhost;
  109.         reverse=on;
  110.         a=127.0.0.1;
  111.         owner=localhost;
  112.         soa=localhost,root.localhost,42,86400,900,86400,86400;
  113. }
  114.  
  115. /*
  116. neg {
  117.         name=doubleclick.net;
  118.         types=domain;   # This will also block xxx.doubleclick.net, etc.
  119. }
  120. */
  121.  
  122. /*
  123. neg {
  124.         name=bad.server.com;   # Badly behaved server you don't want to connect to.
  125.         types=A,AAAA;
  126. }
  127. */