3 Internationalized domain name support
4 =====================================
6 Unlike the libUnbound, pyUnbound is able to handle IDN queries.
8 Automatic IDN DNAME conversion
9 -------------------------------
11 If we use unicode string in :meth:`unbound.ub_ctx.resolve` method,
12 the IDN DNAME conversion (if it is necessary) is performed on background.
17 .. literalinclude:: example7-1.py
20 IDN converted attributes
21 ------------------------
23 The :class:`unbound.ub_data` class contains attributes suffix which converts
24 the dname to UTF string. These attributes have the ``_idn`` suffix.
26 Apart from this aproach, two conversion functions exist
27 (:func:`unbound.idn2dname` and :func:`unbound.dname2idn`).
32 .. literalinclude:: example7-2.py