4812f02dd0
bypassing the cache response stage and uniquifying mesh states. Four EDNS option lists were added to module_qstate (module_qstate.edns_opts_*) to store EDNS options from/to front/back side. - Added two flags to module_qstate (no_cache_lookup, no_cache_store) that control the modules' cache interactions. - Added code for registering inplace callback functions. The registered functions can be called just before replying with local data or Chaos, replying from cache, replying with SERVFAIL, replying with a resolved query, sending a query to a nameserver. The functions can inspect the available data and maybe change response/query related data (i.e. append EDNS options). - Updated Python module for the above. - Updated Python documentation. git-svn-id: https://unbound.nlnetlabs.nl/svn/trunk@3947 be551aaa-1e26-0410-a405-d3ace91eadb9
14 lines
238 B
ReStructuredText
14 lines
238 B
ReStructuredText
.. _example_localzone:
|
|
|
|
Local zone manipulation
|
|
=======================
|
|
|
|
This example program shows how to define local zone containing custom DNS
|
|
records.
|
|
|
|
Source code
|
|
-----------
|
|
|
|
.. literalinclude:: example6-1.py
|
|
:language: python
|