2 ===================================
6 Python 2.4 or higher, SWIG 1.3 or higher, GNU make
10 You can download the source codes `here`_.
11 The latest release is 1.1.1, Jan 15, 2009.
13 .. _here: unbound-1.1.1-py.tar.gz
17 After downloading, you can compile the Unbound library by doing::
19 > tar -xzf unbound-1.1.1-py.tar.gz
21 > ./configure --with-pythonmodule
24 You need GNU make to compile sources.
25 SWIG and Python devel libraries to compile extension module.
29 If the compilation is successful, you can test the extension module by::
32 > make sudo # or "make test" or "make suexec"
34 This will start unbound server with language dictionary service (see :ref:`Tutorials`).
35 In order to test this service, type::
37 > dig TXT @127.0.0.1 aught.en._dict_.cz
39 Dig should print this message (czech equivalent of aught)::
41 ; <<>> DiG 9.5.0-P2 <<>> TXT @127.0.0.1 aught.en._dict_.cz
43 ;; global options: printcmd
45 ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30085
46 ;; flags: aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
49 ;aught.en._dict_.cz. IN TXT
52 aught.en._dict_.cz. 300 IN TXT "nic"
54 ;; Query time: 11 msec
55 ;; SERVER: 127.0.0.1#53(127.0.0.1)
56 ;; WHEN: Thu Jan 10 16:45:58 2009
59 The ``pythonmod/examples`` directory contains simple applications written in Python.