Commit 1b27fe04 authored by Vladimír Čunát's avatar Vladimír Čunát
parent e7b07e35
......@@ -11,6 +11,7 @@ Bugfixes
- daemon: check existence of config file even if rundir isn't specified
- policy.FORWARD and STUB: use RTT tracking to choose servers (#125, #208)
- dns64: fix CNAME problems (#203) It still won't work with query policies.
- hints: better interpretation of hosts-like files (#204)
Improvements
------------
......
......@@ -6,7 +6,7 @@ Static hints
This is a module providing static hints for forward records (A/AAAA) and reverse records (PTR).
The records can be loaded from ``/etc/hosts``-like files and/or added directly.
You can also use the module to change root hints that are used as a safety belt, or if the root NS
You can also use the module to change root hints. They are used as a safety belt or if the root NS
drops out of cache.
Examples
......@@ -22,7 +22,7 @@ Examples
hints.root({
['j.root-servers.net.'] = { '2001:503:c27::2:30', '192.58.128.30' }
})
-- Set custom hint
-- Add a custom hint
hints['localhost'] = '127.0.0.1'
Properties
......@@ -57,6 +57,12 @@ Properties
Add a hostname - address pair hint.
.. note::
If multiple addresses have been added for a name, all are returned in a forward query.
If multiple names have been added to an address, the last one defined is returned
in a corresponding PTR query.
.. function:: hints.del(pair)
:param string pair: ``hostname address`` i.e. ``"localhost 127.0.0.1"``, or just ``hostname``
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment