articole
08.01.05 16:39PowerDNS + MySQL backend
Ultima modificare: 23.01.05 18:36
PowerDNS este un server DNS ce suporta un numar mare de backend-uri ,
ca de exemplu MySQL, PostgreSQL, LDAP, SQLite.

Instalare:

FreeBSD -

[root@host]# cd /usr/ports/dns/powerdns
[root@host]# make WITH_MYSQL_DRIVER=yes WITHOUT_POSTGRESQL_DRIVER=yes install clean
[root@host]# cp /usr/local/etc/rc.d/pdns.sh.sample /usr/local/etc/rc.d/pdns.sh



Orice alt Unix based OS, surse:

[root@host]# wget
http://downloads.powerdns.com/releases/pdns-2.9.16.tar.gz
[root@host]# tar -xzvf pdns-2.9.16.tar.gz
[root@host]# cd pdns-2.9.16
[root@host]#

[root@host]# ./configure --with-mysql=/usr
[root@host]# make
[root@host]# make install

Pentru Linux cu SYS V init style

[root@host]# cp pdns/pdns /etc/init.d/
[root@host]# chkconfig --add pdns
[root@pdns]# chkconfig --level 2345 pdns on

Adaugam user-ul pdns, cu privilegiile caruia va rula serverul:


[root@host]# useradd -s /sbin/nologin -d /dev/null pdns # Linux

[root@host]# pw useradd pdns -s /sbin/nologin -d /dev/null # FreeBSD


Cream fisierul /usr/local/etc/pdns.conf
###################################################
launch=gmysql # MySQL backend
gmysql-host=localhost # host-ul pe care ruleaza MySQL , sau calea pana
la socket
gmysql-user=pdns # user cu care ne vom conectat la baza de date
gmysql-password=password # parola
gmysql-dbname=pdns # numele bazei
allow-recursion=127.0.0.0/8, 64.239.60.0/24 # clientii care vor putea face recursie
recursor=64.224.20.156 # DNS server-ul ISP-ului, folosit pt cereri
recursive
lazy-recursion=no  # cererile se vor face in ordinea - 1. ISP
nameserver 2. localhost
setuid=pdns # utilizatorul cu privilegiile caruia va rula serverul
#########################################################


Setam permisii corespunzatoare fiserului de configurare.
[root@host]# chmod 400 /usr/local/etc/pdns.conf


Cream baza de date, si userii necesari.

mysql> grant all privileges on pdns.* to pdns@localhost identified
by 'password';
Query OK, 0 rows affected (0.00 sec)


mysql -D pdns < /usr/ports/dns/powerdns/files/pdns_mysql.sql

Fisierul pdns_mysql.sql poate fi gasit si aici


Pornim serverul:

[root@host]# /usr/local/etc/rc.d/pdns.sh start (FreeBSD)
[root@host]# service pdns start ( Linux SYS V init )



La moment exista cateva interfete web pentru administrarea serverului
PowerDNS:

  • PowerAdmin
  • PowerDNSadmin


    Info suplimentara:
    http://doc.powerdns.com/

  • Autor: GRisha
    Comentarii: 3

    08.01.06 10:21gr
    TODO:

    postgresql, oracle backends

    11.11.06 00:03huMps
    cum fac si eu nologine ? :/ prog ala de facut..care aveti?

    18.07.07 19:03Hood
    zicetimi si mie cum fac nologhinele alea ....dau root de scan cui imi zice .../q hood

    Adauga Comentariu:
    Nume:
    E-mail:
    Cometariu: