:param string pair: ``hostname address`` i.e. ``"localhost 127.0.0.1"``
:return: ``{ result: bool }``
- Add a hostname - address pair hint.
+ 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 addresses have been added for a name (in separate ``hints.set()`` commands),
+ 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.
Remove a hostname - address pair hint. If address is omitted, all addresses for the given name are deleted.
-.. function:: hints.root()
-
- :return: ``{ ['a.root-servers.net.'] = { '1.2.3.4', '5.6.7.8', ...}, ... }``
-
- .. tip:: If no parameters are passed, returns current root hints set.
-
.. function:: hints.root_file(path)
Replace current root hints from a zonefile. If the path is omitted, the compiled-in path is used, i.e. the root hints are reset to the default.
Replace current root hints and return the current table of root hints.
+ .. tip:: If no parameters are passed, it only returns current root hints set without changing anything.
+
Example:
.. code-block:: lua