1238106SdesInstallation 2238106Sdes=================================== 3238106Sdes 4238106Sdes**Prerequisites** 5238106Sdes 6238106SdesPython 2.4 or higher, SWIG 1.3 or higher, GNU make 7238106Sdes 8238106Sdes**Compiling** 9238106Sdes 10238106SdesAfter downloading, you can compile the pyUnbound library by doing:: 11238106Sdes 12238106Sdes > tar -xzf unbound-x.x.x-py.tar.gz 13238106Sdes > cd unbound-x.x.x 14238106Sdes > ./configure --with-pyunbound 15238106Sdes > make 16238106Sdes 17238106SdesYou may want to --with-pythonmodule as well if you want to use python as 18238106Sdesa module in the resolver. 19238106Sdes 20238106SdesYou need GNU make to compile sources; SWIG and Python devel libraries to compile extension module. 21238106Sdes 22238106Sdes 23238106Sdes**Testing** 24238106Sdes 25294190SdesIf the compilation is successful, you can test the python LDNS extension module by:: 26238106Sdes 27238106Sdes > cd contrib/python 28238106Sdes > make testenv 29238106Sdes > ./dns-lookup.py 30238106Sdes 31238106SdesYou may want to make install in the main directory since make testenv is for debugging. In contrib/examples you can find simple applications written in Python using the Unbound extension. 32