- 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
------------
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
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
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``