Difference between revisions of "PowerDNS OpenDBX Backend/Installation"

From Linuxnetworks
Jump to: navigation, search
Line 11: Line 11:
 
  * Extract the pdns tar file
 
  * Extract the pdns tar file
 
  * Change into the newly created pdns directory
 
  * Change into the newly created pdns directory
  * Extract the odbxbackend tar file
+
  * Extract the opendbxbackend tar file
  * Run "cat odbxbackend.diff | patch -p1"
+
  * Run "cat opendbxbackend.diff | patch -p1"
 
  * Type ./configure --help for the available options
 
  * Type ./configure --help for the available options
 
  * For dynamic modules:
 
  * For dynamic modules:
 
   ./configure
 
   ./configure
 
       --with-modules=""
 
       --with-modules=""
       --with-dynmodules="odbx"
+
       --with-dynmodules="opendbx"
 
       --enable-recursor
 
       --enable-recursor
 
  * For a static module:
 
  * For a static module:
 
   ./configure
 
   ./configure
       --with-modules="odbx"
+
       --with-modules="opendbx"
 
       --with-dynmodules=""
 
       --with-dynmodules=""
 
       --enable-recursor
 
       --enable-recursor
Line 30: Line 30:
 
There are a few options through the OpenDBX backend can be configured for your environment. Add them to the pdns.conf file located in /etc/powerdns or /usr/local/etc/ (depends on your configuration while compiling):
 
There are a few options through the OpenDBX backend can be configured for your environment. Add them to the pdns.conf file located in /etc/powerdns or /usr/local/etc/ (depends on your configuration while compiling):
  
; odbx-backend (default: mysql) : Name of the backend used to connect to the database server. Currently mysql, pgsql, sqlite and sqlite3 are available.
+
; opendbx-backend (default: mysql) : Name of the backend used to connect to the database server. Currently mysql, pgsql, sqlite and sqlite3 are available.
  
; odbx-host (default: 127.0.0.1) : Host name, IP address or - in case of sqlite and sqlite3 - the directory path to the database file including a trailing slash or backslash (depending on your operating system).
+
; opendbx-host (default: 127.0.0.1) : Host name, IP address or - in case of sqlite and sqlite3 - the directory path to the database file including a trailing slash or backslash (depending on your operating system).
  
; odbx-port (default: none) : TCP/IP port number where the database server is listening to. Most databases will use their default port if you leave this empty.
+
; opendbx-port (default: none) : TCP/IP port number where the database server is listening to. Most databases will use their default port if you leave this empty.
  
; odbx-database (default: powerdns) : The database name where all domain and record entries are stored. In case of sqlite and sqlite3 it's the name of the database file without leasing slash or backslash.
+
; opendbx-database (default: powerdns) : The database name where all domain and record entries are stored. In case of sqlite and sqlite3 it's the name of the database file without leasing slash or backslash.
  
; odbx-username (default: powerdns) : Name of the user send to the DBMS for authentication.
+
; opendbx-username (default: powerdns) : Name of the user send to the DBMS for authentication.
  
; odbx-password (default: none) : Clear text password for authentication in combination with the username.
+
; opendbx-password (default: none) : Clear text password for authentication in combination with the username.
  
  
 
----
 
----
Back to [[PowerDNS odbxbackend|Overview]]
+
Back to [[PowerDNS OpenDBX Backend|Overview]]

Revision as of 14:42, 3 October 2005

Installation

Compilation

Before performing the steps to compile the PowerDNS server and the OpenDBX backend you have to install the OpenDBX library, the OpenDBX backend you want tu use and its development package, which includes the necessary header. The OpenDBX package can be downloaded from Linuxnetworks.de.

Apply these steps to the source pdns-x.xx.tar.gz file, if you don't want to use a precompiled package:

* Extract the pdns tar file
* Change into the newly created pdns directory
* Extract the opendbxbackend tar file
* Run "cat opendbxbackend.diff | patch -p1"
* Type ./configure --help for the available options
* For dynamic modules:
  ./configure
     --with-modules=""
     --with-dynmodules="opendbx"
     --enable-recursor
* For a static module:
  ./configure
     --with-modules="opendbx"
     --with-dynmodules=""
     --enable-recursor
* make && make install

Configuration options

There are a few options through the OpenDBX backend can be configured for your environment. Add them to the pdns.conf file located in /etc/powerdns or /usr/local/etc/ (depends on your configuration while compiling):

opendbx-backend (default
mysql) : Name of the backend used to connect to the database server. Currently mysql, pgsql, sqlite and sqlite3 are available.
opendbx-host (default
127.0.0.1) : Host name, IP address or - in case of sqlite and sqlite3 - the directory path to the database file including a trailing slash or backslash (depending on your operating system).
opendbx-port (default
none) : TCP/IP port number where the database server is listening to. Most databases will use their default port if you leave this empty.
opendbx-database (default
powerdns) : The database name where all domain and record entries are stored. In case of sqlite and sqlite3 it's the name of the database file without leasing slash or backslash.
opendbx-username (default
powerdns) : Name of the user send to the DBMS for authentication.
opendbx-password (default
none) : Clear text password for authentication in combination with the username.



Back to Overview