<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.shorttext
{mso-style-name:short_text;}
span.hps
{mso-style-name:hps;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1481116730;
mso-list-type:hybrid;
mso-list-template-ids:14982070 557907404 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:2078936195;
mso-list-type:hybrid;
mso-list-template-ids:1834120520 655662368 67895299 67895301 67895297 67895299 67895301 67895297 67895299 67895301;}
@list l1:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">We want to migrate our BIND servers to Unbound.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">We just install a single VM for testing purposes. Both Unbound and BIND are installed as DNS resolvers (Internet by default and local authorities).<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">A single server is using this DNS resolver and everything work fine. Now to have a valuable test for performance, we choose to proceed a Web stats report with awstats from an Nginx huge LogFile (thousands IP addresses
to resolves). <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">When Unbound is started, stats are 5 times longer to produce than with BIND. Is it normal ??
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Second point, a firewall is installed on the VM and *<b>only with Unbound</b>* I notice some reject on the firewall as follow :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">TESTDNS kernel: [541975.554683] OUTPUT DFLT REJECT IN= OUT=eth0 SRC=192.168.100.177 DST=192.168.100.79 LEN=70 TOS=0x00 PREC=0x00 TTL=64 ID=8206 PROTO=UDP SPT=53 DPT=4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">It’s like some hazardous packets are not kept in the conntrack table!!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Thanks for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Here is our Unbound configuration file :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">server:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # The following line will configure unbound to perform cryptographic<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # DNSSEC validation using the root trust anchor.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span>dlv-anchor-file: "dlv.isc.org.key"<o:p></o:p></p>
<p class="MsoNormal"> <span lang="EN-GB">val-permissive-mode:yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> interface: 0.0.0.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> interface-automatic: yes <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> do-ip4: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> do-ip6: no<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> do-udp: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> do-tcp: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> pidfile: "/var/run/unbound.pid"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"># Access list<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> access-control: 192.168.100.0/24 allow
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> chroot: "/etc/unbound"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> root-hints: "/etc/unbound/db.root"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # Log<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> verbosity: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> val-log-level: 2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> use-syslog: no<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> logfile: /var/log/unbound.log<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # Stats for munin<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> statistics-cumulative: no<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> extended-statistics: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> statistics-interval: 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> hide-identity: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> hide-version: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> harden-dnssec-stripped: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> harden-glue: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> use-caps-for-id: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> do-not-query-localhost: no<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # Optimisation<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> num-threads: 4<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> msg-cache-slabs: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> rrset-cache-slabs: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> infra-cache-slabs: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> key-cache-slabs: 1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> rrset-cache-size: 512m<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> msg-cache-size: 256m<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> outgoing-range: 1024<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> num-queries-per-thread: 512<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> so-rcvbuf: 32m<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # /Optimisation<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # CACHE<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # Time to live MAX for RRsets and messages ine the cache (in sec)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> cache-max-ttl: 300<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # Time to live for entries in the host cache (in sec)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> infra-host-ttl: 300<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # Message cache elements are prefetched before they expire<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> prefetch: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # /CACHE<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> #<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> # ARPA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> local-zone: "10.in-addr.arpa" nodefault<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> local-zone: "16.172.in-addr.arpa" nodefault<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> local-zone: "30.172.in-addr.arpa" nodefault<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> local-zone: "31.172.in-addr.arpa" nodefault<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> local-zone: "168.192.in-addr.arpa" nodefault<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"> # Non DNSSEC local domaines<o:p></o:p></p>
<p class="MsoNormal"><span lang="EN-GB"> domain-insecure: "key.coe.int"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> domain-insecure: "ilo.coe.int"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">python:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">remote-control:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> control-enable: yes<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> control-interface: 127.0.0.1<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> control-interface: 192.168.100.177<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">#<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"># STUB Zones<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">#<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"># ARPA<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">stub-zone:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> name: "10.in-addr.arpa"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.157<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.158<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">stub-zone:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> name: "100.168.192.in-addr.arpa"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.157<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.158<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">stub-zone:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> name: "16.172.in-addr.arpa"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.157<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.158<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">stub-zone:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> name: "30.172.in-addr.arpa"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.157<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.158<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">stub-zone:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> name: "1.31.172.in-addr.arpa"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.157<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.158<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"># ZONES<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">stub-zone:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> name: "coe.int"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.157<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> stub-addr: 192.168.100.158<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
</body>
</html>