2009-03-25 10:47:47 -04:00
Installation
===================================
**Prerequisites**
Python 2.4 or higher, SWIG 1.3 or higher, GNU make
**Compiling**
After downloading, you can compile the pyUnbound library by doing::
2010-03-01 09:59:38 -05:00
> tar -xzf unbound-x.x.x-py.tar.gz
> cd unbound-x.x.x
2009-03-25 10:47:47 -04:00
> ./configure --with-pyunbound
> make
2010-03-01 09:59:38 -05:00
You may want to --with-pythonmodule as well if you want to use python as
a module in the resolver.
2009-03-25 10:47:47 -04:00
You need GNU make to compile sources; SWIG and Python devel libraries to compile extension module.
**Testing**
If the compilation is successfull, you can test the python LDNS extension module by::
> cd contrib/python
> make testenv
> ./dns-lookup.py
2010-03-01 09:59:38 -05:00
You 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.