InstallationΒΆ

Prerequisites

Python 2.4 or higher, SWIG 1.3 or higher, GNU make

Download

You can download the source codes here. The latest release is 1.2.1, Mar 19, 2009. Previous release 1.1.1 can be dowloaded here.

Compiling

After downloading, you can compile the pyUnbound library by doing:

> tar -xzf unbound-1.2.1-python.tar.gz
> cd unbound-1.2.1
> ./configure --with-pyunbound
> make

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

In contrib/examples you can find simple applications written in Python using the Unbound extension.

Previous topic

Introduction

Next topic

Examples

Quick search