dns-cache.rst 1.0 KB

123456789101112131415161718192021222324252627282930
  1. DNS-Caching
  2. ===========
  3. User experience may be greatly improved when dns is accelerated. Also, it
  4. seems like a good idea to keep the number of packages being exchanged
  5. between node and gateway as small as possible. In order to do this, a
  6. dns-cache may be used on a node. The dnsmasq instance listening on port
  7. 53 on the node will be reconfigured to answer requests, use a list of
  8. upstream servers and a specific cache size if the options listed below are
  9. added to site.conf. All settings are optional, though if no dns server is
  10. set, the configuration will not be altered by gluon-core.
  11. Besides caching dns requests from clients, the next_node-addresses are set to
  12. resolve to a configurable name that may optionally be placed in next_node.name.
  13. ::
  14. dns = {
  15. cacheentries = 5000,
  16. servers = { '2001:db8::1', },
  17. },
  18. next_node = {
  19. name = 'nextnode',
  20. ip6 = '2001:db8:8::1',
  21. ip4 = '198.51.100.1',
  22. }
  23. The cache will be initialized during startup.
  24. Each cache entry will occupy about 90 bytes of RAM.