1Installation 2============ 3 4Prerequisites 5------------- 6 7Python 2.4 or higher, SWIG 1.3 or higher, GNU make 8 9Compiling 10--------- 11 12After downloading, you can compile the pyUnbound library by doing:: 13 14 > tar -xzf unbound-x.x.x-py.tar.gz 15 > cd unbound-x.x.x 16 > ./configure --with-pyunbound 17 > make 18 19You may want to enable ``--with-pythonmodule`` as well if you want to use 20python as a module in the resolver. 21 22You need ``GNU make`` to compile sources; ``SWIG`` and ``Python devel`` 23libraries to compile extension module. 24 25 26Testing 27------- 28 29If the compilation is successful, you can test the python LDNS extension module 30by:: 31 32 > cd contrib/python 33 > make testenv 34 > ./dns-lookup.py 35 36You may want to ``make install`` in the main directory since ``make testenv`` 37is for debugging. In contrib/examples you can find simple applications written 38in Python using the Unbound extension. 39