Outils pour utilisateurs

Outils du site


informatique:linux:powerdns

Ceci est une ancienne révision du document !


PowerDNS

Introduction

Ce tutoriel présente l'installation de PowerDNS avec une base de données en arrière plan.

Installation

Installation :

apt-get install pdns-server pdns-tools pdns-backend-mysql pdns-recursor

Configuration

Se rendre dans le répertoire et sauvegarder les fichiers de conf originaux et créer des nouveau:

/etc/powerdns
mv pdns.conf pdns.conf.orig
mv recursor.conf recursor.conf.orig
touch pdns.conf recursor.conf
chown root:pdns pdns.conf

Editer le fichier de configuration :

vim /etc/powerdns/pdns.conf

Insérer le contenu suivant :

# Allow zonetransfers only to these subnets
allow-axfr-ips=127.0.0.0/8,::1
# Allow recursive queries
allow-recursion=127.0.0.1
# Disable zonetransfers but do allow TCP queries
disable-axfr=no
# Seconds to store packets in the PacketCache
cache-ttl=20
# Which backends to launch and order to query them in (here is MySQL)
launch=gmysql
# Log under a specific facility
logging-facility=0
# Amount of logging. Higher is more. Do not set below 3
loglevel=4
#
out-of-zone-additional-processing=yes
# Seconds to store query results in the QueryCache
query-cache-ttl=20
#
recursive-cache-ttl=150
recursor=127.0.0.1:54
informatique/linux/powerdns.1712904008.txt.gz · Dernière modification: 2024/04/12 08:40 par benoit