cancel
Showing results for 
Search instead for 
Did you mean: 

pdnsd Vs unbound on pi

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

pdnsd Vs unbound on pi

I'm impressed with the figures on first test npr, Although I am running a locked down version of unbound with only opendns allowed for resolving unless the cache has to fall back, in which case it would use root servers instead. I do like the way you set this up to allow for cdn servers to not cache and use your isp's servers for cdn, I'm using the same block list on both by the way.
Popping a few tests below.
Cheers npr
http://www.npr.me.uk/pdnsd.html
4 REPLIES 4
30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: pdnsd Vs unbound on pi

PDNSD only from here on....
Pic 1 Extended config Vs Extended config same identical hardware
Pic 2 and 3 Is 15 Extended Config 12 Basic config identical hardware
global {
       perm_cache=8192;
       cache_dir="/var/cache/pdnsd";
       run_as="pdnsd";
       server_ip = eth0;
       status_ctl = on;
       paranoid=on;
       query_method = udp_only;
       min_ttl=20s;       // 20 seconds.
       max_ttl=1w;        // One week.
       timeout=1;        // Global timeout option (1 seconds).
       par_queries = 3;     // number of simultaneous queries.
       tcp_server=off;
       run_ipv4=on;
       neg_rrs_pol=on;
}
server {
       label=My_DNS;
       ip=212.118.241.1;         // IP address of my fastest public DNS servers
       ip=212.118.241.33;       // Yours will be different
       ip=83.170.64.2;       // Use DNS BenchMark to identify your fastest DNS servers
       ip=195.12.4.247;       // see https://www.grc.com/dns/benchmark.htm
       ip=213.253.137.17;         //
       ip=212.159.13.50;           //
       uptest=none;
       purge_cache=off;
       caching=on;
       proxy_only=on;
       lean_query=on;
       timeout=1;
}
source {
       owner=localhost;
//      serve_aliases=on;
       file="/etc/hosts";               //The hosts file.
}
rr {
       name=localhost;
       reverse=on;
       a=127.0.0.1;
       owner=localhost;
       soa=localhost,root.localhost,42,86400,900,86400,86400;
}

global {
       perm_cache=8192;
       cache_dir="/var/cache/pdnsd";
       run_as="pdnsd";
       server_ip = eth0;
       status_ctl = on;
       paranoid=on;
       query_method = udp_only;
       min_ttl=1d;       // One day.
       max_ttl=1w;        // One week.
       timeout=1;        // Global timeout option (1 seconds).
       par_queries = 3;     // number of simultaneous queries.
       tcp_server=off;
       run_ipv4=on;
       neg_rrs_pol=on;
}
server {
       label=Cached;
       ip=212.118.241.1;        // IP address of my fastest public DNS servers
       ip=212.118.241.33;      // Yours will be different
       ip=83.170.64.2;        // Use DNS BenchMark to identify your fastest DN$
       ip=195.12.4.247;      // see https://www.grc.com/dns/benchmark.htm
       ip=213.253.137.17;   //
       ip=212.159.13.50;   //
       uptest=none;
       purge_cache=off;
       caching=on;
       proxy_only=off;
       timeout=1;
       policy=included;
       exclude=.bbc.co.uk         // Do Not Use (exclude) the above DNS server$
   ,      .bbcimg.co.uk
   ,      .bbci.co.uk                   // Do Not Cache (exclude) these CDN do$
   ,      .bbc.net.uk
   ,      .akamai.net                   // These are the most common CDN domai$
   ,      .akamaiedge.net            // This list is not exhaustive.
   ,      .llnwd.net
   ,      .edgecastcdn.net
   ,      .systemcdn.net
   ,      .transactcdn.net
   ,      .v1cdn.net
   ,      .v2cdn.net
   ,      .v3cdn.net
   ,      .v4cdn.net
   ,      .v5cdn.net
   ,      .hwcdn.net
   ,      .simplecdn.net
   ,      .instacontent.net
   ,      .footprint.net
   ,      .yahooapis.com
   ,      .googleusercontent.com
   ,      .googlehosted.com
   ,      .insnw.net
   ,      .inscname.net
   ,      .internapcdn.net
   ,      .cloudfront.net
   ,      .netdna-cdn.com
   ,      .netdna-ssl.com
   ,      .netdna.com
   ,      .cotcdn.net
   ,      .cachefly.net
   ,      .bo.lt
   ,      .cloudflare.com
   ,      .afxcdn.net
   ,      .lxdns.com
   ,      .att-dsa.net
   ,      .vo.msecnd.net
   ,      .voxcdn.net
   ,      .bluehatnetwork.com
   ,      .swiftcdn1.com
   ,      .cdngc.net
   ,      .gccdn.net
   ,      .panthercdn.com
   ,      .fastly.net
   ,      .nocookie.net
   ,      .gslb.taobao.com
   ,      .gslb.tbcache.com
   ,      .mirror-image.net
   ,      .yottaa.net
   ,      .cubecdn.net
   ,      .r.cdn77.net
   ,      .incapdns.net
   ,      .bitgravity.com
   ,      .r.worldcdn.net
   ,      .r.worldssl.net
   ,      .tbcdn.cn
   ,      .taobaocdn.com
   ,      .ngenix.net
   ,      .pagerain.net
   ,      .ccgslb.com
   ,      .cdn.sfr.net
   ,      .azioncdn.net
   ,      .azioncdn.com
   ,      .azion.net
   ,      .cdncloud.net.au
   ,      .rncdn1.com
   ,      .cdnsun.net
   ,      .mncdn.com
   ,      .mncdn.net
   ,      .mncdn.org
   ,      .cdn.jsdelivr.net
   ,      .nyiftw.net
   ,      .nyiftw.com
   ,      .resrc.it
   ;                                            // End of CDN list
}
server {
       label = Uncached_CDN_Networks;
       ip=212.159.13.49;           // IP addresses of my ISP's DNS servers
       ip=212.159.13.50;           // Use your own ISP's DNS servers here
       uptest = none;
       timeout = 1;
       purge_cache = on;
       caching=off;                       // Cache disabled in this section.
       proxy_only=off;
       lean_query=off;
       policy=excluded;
       include=.bbc.co.uk            // Use (include) the above DNS servers $
   ,      .bbcimg.co.uk
   ,      .bbci.co.uk                     // Disable Cache (include) for the$
   ,      .bbc.net.uk
   ,      .akamai.net                     // These are the most common CDN d$
   ,      .akamaiedge.net              // This list is not exhaustive.
   ,      .llnwd.net
   ,      .edgecastcdn.net
   ,      .systemcdn.net
   ,      .transactcdn.net
   ,      .v1cdn.net
   ,      .v2cdn.net
   ,      .v3cdn.net
   ,      .v4cdn.net
   ,      .v5cdn.net
   ,      .hwcdn.net
   ,      .simplecdn.net
   ,      .instacontent.net
   ,      .footprint.net
   ,      .yahooapis.com
   ,      .googleusercontent.com
   ,      .googlehosted.com
   ,      .insnw.net
   ,      .inscname.net
   ,      .internapcdn.net
   ,      .cloudfront.net
   ,      .netdna-cdn.com
   ,      .netdna-ssl.com
   ,      .netdna.com
   ,      .cotcdn.net
   ,      .cachefly.net
   ,      .bo.lt
   ,      .cloudflare.com
   ,      .afxcdn.net
   ,      .lxdns.com
   ,      .att-dsa.net
   ,      .vo.msecnd.net
   ,      .voxcdn.net
   ,      .bluehatnetwork.com
   ,      .swiftcdn1.com
   ,      .cdngc.net
   ,      .gccdn.net
   ,      .panthercdn.com
   ,      .fastly.net
   ,      .nocookie.net
   ,      .gslb.taobao.com
   ,      .gslb.tbcache.com
   ,      .mirror-image.net
   ,      .yottaa.net
   ,      .cubecdn.net
   ,      .r.cdn77.net
   ,      .incapdns.net
   ,      .bitgravity.com
   ,      .r.worldcdn.net
   ,      .r.worldssl.net
   ,      .tbcdn.cn
   ,      .taobaocdn.com
   ,      .ngenix.net
   ,      .pagerain.net
   ,      .ccgslb.com
   ,      .cdn.sfr.net
   ,      .azioncdn.net
   ,      .azioncdn.com
   ,      .azion.net
   ,      .cdncloud.net.au
   ,      .rncdn1.com
   ,      .cdnsun.net
   ,      .mncdn.com
   ,      .mncdn.net
   ,      .mncdn.org
   ,      .cdn.jsdelivr.net
   ,      .nyiftw.net
   ,      .nyiftw.com
   ,      .resrc.it.
   ;                                            // End of CDN list
}
source {
       owner=localhost;
//      serve_aliases=on;
       file="/etc/hosts";               //The hosts file.
}
rr {
       name=localhost;
       reverse=on;
       a=127.0.0.1;
       owner=localhost;
       soa=localhost,root.localhost,42,86400,900,86400,86400;
}

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: pdnsd Vs unbound on pi

A test from windows machine, meh.....
30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: pdnsd Vs unbound on pi

.
30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: pdnsd Vs unbound on pi

Edit of above Extended config, Deleted: lean_query=off; And Changed: min_ttl=1d;      // One day.  to:  min_ttl=20s;      // 20 seconds.
global {
       perm_cache=8192;
       cache_dir="/var/cache/pdnsd";
       run_as="pdnsd";
       server_ip = eth0;
       status_ctl = on;
       paranoid=on;
       query_method = udp_only;
       min_ttl=20s;       // 20 seconds.
       max_ttl=1w;        // One week.
       timeout=1;        // Global timeout option (1 seconds).
       par_queries = 3;     // number of simultaneous queries.
       tcp_server=off;
       run_ipv4=on;
       neg_rrs_pol=on;
}
server {
       label=My_DNS;
       ip=212.118.241.1;         // IP address of my fastest public DNS servers
       ip=212.118.241.33;       // Yours will be different
       ip=83.170.64.2;       // Use DNS BenchMark to identify your fastest DNS servers
       ip=195.12.4.247;       // see https://www.grc.com/dns/benchmark.htm
       ip=213.253.137.17;         //
       ip=212.159.13.50;           //
       uptest=none;
       purge_cache=off;
       caching=on;
       proxy_only=on;
       lean_query=on;
       timeout=1;
}
source {
       owner=localhost;
//      serve_aliases=on;
       file="/etc/hosts";               //The hosts file.
}
rr {
       name=localhost;
       reverse=on;
       a=127.0.0.1;
       owner=localhost;
       soa=localhost,root.localhost,42,86400,900,86400,86400;
}

global {
       perm_cache=8192;
       cache_dir="/var/cache/pdnsd";
       run_as="pdnsd";
       server_ip = eth0;
       status_ctl = on;
       paranoid=on;
       query_method = udp_only;
       min_ttl=20s;      // 20 seconds.
       max_ttl=1w;        // One week.
       timeout=1;        // Global timeout option (1 seconds).
       par_queries = 3;     // number of simultaneous queries.
       tcp_server=off;
       run_ipv4=on;
       neg_rrs_pol=on;
}
server {
       label=Cached;
       ip=212.118.241.1;        // IP address of my fastest public DNS servers
       ip=212.118.241.33;      // Yours will be different
       ip=83.170.64.2;        // Use DNS BenchMark to identify your fastest DN$
       ip=195.12.4.247;      // see https://www.grc.com/dns/benchmark.htm
       ip=213.253.137.17;   //
       ip=212.159.13.50;   //
       uptest=none;
       purge_cache=off;
       caching=on;
       proxy_only=off;
       timeout=1;
       policy=included;
       exclude=.bbc.co.uk         // Do Not Use (exclude) the above DNS server$
   ,      .bbcimg.co.uk
   ,      .bbci.co.uk                   // Do Not Cache (exclude) these CDN do$
   ,      .bbc.net.uk
   ,      .akamai.net                   // These are the most common CDN domai$
   ,      .akamaiedge.net            // This list is not exhaustive.
   ,      .llnwd.net
   ,      .edgecastcdn.net
   ,      .systemcdn.net
   ,      .transactcdn.net
   ,      .v1cdn.net
   ,      .v2cdn.net
   ,      .v3cdn.net
   ,      .v4cdn.net
   ,      .v5cdn.net
   ,      .hwcdn.net
   ,      .simplecdn.net
   ,      .instacontent.net
   ,      .footprint.net
   ,      .yahooapis.com
   ,      .googleusercontent.com
   ,      .googlehosted.com
   ,      .insnw.net
   ,      .inscname.net
   ,      .internapcdn.net
   ,      .cloudfront.net
   ,      .netdna-cdn.com
   ,      .netdna-ssl.com
   ,      .netdna.com
   ,      .cotcdn.net
   ,      .cachefly.net
   ,      .bo.lt
   ,      .cloudflare.com
   ,      .afxcdn.net
   ,      .lxdns.com
   ,      .att-dsa.net
   ,      .vo.msecnd.net
   ,      .voxcdn.net
   ,      .bluehatnetwork.com
   ,      .swiftcdn1.com
   ,      .cdngc.net
   ,      .gccdn.net
   ,      .panthercdn.com
   ,      .fastly.net
   ,      .nocookie.net
   ,      .gslb.taobao.com
   ,      .gslb.tbcache.com
   ,      .mirror-image.net
   ,      .yottaa.net
   ,      .cubecdn.net
   ,      .r.cdn77.net
   ,      .incapdns.net
   ,      .bitgravity.com
   ,      .r.worldcdn.net
   ,      .r.worldssl.net
   ,      .tbcdn.cn
   ,      .taobaocdn.com
   ,      .ngenix.net
   ,      .pagerain.net
   ,      .ccgslb.com
   ,      .cdn.sfr.net
   ,      .azioncdn.net
   ,      .azioncdn.com
   ,      .azion.net
   ,      .cdncloud.net.au
   ,      .rncdn1.com
   ,      .cdnsun.net
   ,      .mncdn.com
   ,      .mncdn.net
   ,      .mncdn.org
   ,      .cdn.jsdelivr.net
   ,      .nyiftw.net
   ,      .nyiftw.com
   ,      .resrc.it
   ;                                            // End of CDN list
}
server {
       label = Uncached_CDN_Networks;
       ip=212.159.13.49;           // IP addresses of my ISP's DNS servers
       ip=212.159.13.50;           // Use your own ISP's DNS servers here
       uptest = none;
       timeout = 1;
       purge_cache = on;
       caching=off;                       // Cache disabled in this section.
       proxy_only=off;
       policy=excluded;
       include=.bbc.co.uk            // Use (include) the above DNS servers $
   ,      .bbcimg.co.uk
   ,      .bbci.co.uk                     // Disable Cache (include) for the$
   ,      .bbc.net.uk
   ,      .akamai.net                     // These are the most common CDN d$
   ,      .akamaiedge.net              // This list is not exhaustive.
   ,      .llnwd.net
   ,      .edgecastcdn.net
   ,      .systemcdn.net
   ,      .transactcdn.net
   ,      .v1cdn.net
   ,      .v2cdn.net
   ,      .v3cdn.net
   ,      .v4cdn.net
   ,      .v5cdn.net
   ,      .hwcdn.net
   ,      .simplecdn.net
   ,      .instacontent.net
   ,      .footprint.net
   ,      .yahooapis.com
   ,      .googleusercontent.com
   ,      .googlehosted.com
   ,      .insnw.net
   ,      .inscname.net
   ,      .internapcdn.net
   ,      .cloudfront.net
   ,      .netdna-cdn.com
   ,      .netdna-ssl.com
   ,      .netdna.com
   ,      .cotcdn.net
   ,      .cachefly.net
   ,      .bo.lt
   ,      .cloudflare.com
   ,      .afxcdn.net
   ,      .lxdns.com
   ,      .att-dsa.net
   ,      .vo.msecnd.net
   ,      .voxcdn.net
   ,      .bluehatnetwork.com
   ,      .swiftcdn1.com
   ,      .cdngc.net
   ,      .gccdn.net
   ,      .panthercdn.com
   ,      .fastly.net
   ,      .nocookie.net
   ,      .gslb.taobao.com
   ,      .gslb.tbcache.com
   ,      .mirror-image.net
   ,      .yottaa.net
   ,      .cubecdn.net
   ,      .r.cdn77.net
   ,      .incapdns.net
   ,      .bitgravity.com
   ,      .r.worldcdn.net
   ,      .r.worldssl.net
   ,      .tbcdn.cn
   ,      .taobaocdn.com
   ,      .ngenix.net
   ,      .pagerain.net
   ,      .ccgslb.com
   ,      .cdn.sfr.net
   ,      .azioncdn.net
   ,      .azioncdn.com
   ,      .azion.net
   ,      .cdncloud.net.au
   ,      .rncdn1.com
   ,      .cdnsun.net
   ,      .mncdn.com
   ,      .mncdn.net
   ,      .mncdn.org
   ,      .cdn.jsdelivr.net
   ,      .nyiftw.net
   ,      .nyiftw.com
   ,      .resrc.it.
   ;                                            // End of CDN list
}
source {
       owner=localhost;
//      serve_aliases=on;
       file="/etc/hosts";               //The hosts file.
}
rr {
       name=localhost;
       reverse=on;
       a=127.0.0.1;
       owner=localhost;
       soa=localhost,root.localhost,42,86400,900,86400,86400;
}