Changeset 13911 in genesis


Ignore:
Timestamp:
Jun 13, 2017, 8:18:57 AM (8 years ago)
Author:
rick
Message:

Stripping the number of resolvers unbound can use.

Unbound does not handle multiple resolvers well it internal 'logic' keeps
pounding and checking all resolvers making it a very slow process. By limiting
the count of resolvers it sould be more happy.

Count limititing is done using two-phase approch, firstly the initial resolvers
are limited to a fixed set of resolvers, secondly the list is updated based on
the results of the zone inquiries.

While here, ensure the listen is set on dynamic ranges ensuring failing
interfaces will not bring down the DNS server.

Making the list more limited and based on active resolvers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r13906 r13911  
    12301230
    12311231server:
     1232    ## Static definitions fail to start on systems with broken ue(4) interfaces
    12321233{%- for ip,comment in autogen_ips %}
    1233     interface: {{ "%-16s"|format(ip) }} # {{ comment }}
     1234    # interface: {{ "%-16s"|format(ip) }} # {{ comment }}
    12341235{%- endfor %}
     1236    ## Enabling wildcard matching as work-around
     1237    interface: 0.0.0.0
     1238    interface: ::0
    12351239
    12361240forward-zone:
     
    12421246    forward-addr: 208.67.220.220 # OpenDNS DNS B
    12431247{% else -%}
    1244 {% for serviceid,item in autogen_ileiden_proxies.iteritems() %}
     1248{%- for serviceid,item in autogen_ileiden_proxies.iteritems() %}
     1249  {%- if loop.index <= 5 %}
    12451250    forward-addr: {{ "%-16s"|format(serviceid) }} # {{ item.nodename }}
     1251  {%- endif %}
    12461252{%- endfor %}
    1247 {% endif -%}
     1253{%- endif %}
    12481254""").render(datadump)
    12491255
Note: See TracChangeset for help on using the changeset viewer.