debian:pdns_server

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Порівняння попередніх версій Попередня ревізія
Наступна ревізія
Попередня ревізія
debian:pdns_server [09/10/2022 10:24] – [Нотатки] Methoddebian:pdns_server [11/10/2022 13:19] (поточний) – [Install PowerDNS server] Method
Рядок 13: Рядок 13:
 ===== Install MariaDB ===== ===== Install MariaDB =====
 [[debian:mariadb|Install MariaDB]] [[debian:mariadb|Install MariaDB]]
-===== Install apache2 php phpMyAdmin =====+ 
 +За бажанням можна встановити apache2 та phpMyAdmin для доступу до бази даних через веб панель керування 
 [[debian:apache|Install apache2]] [[debian:apache|Install apache2]]
 +
 [[debian:phpmyadmin|Install phpMyAdmin]] [[debian:phpmyadmin|Install phpMyAdmin]]
  
  
 ===== Install PowerDNS server ===== ===== Install PowerDNS server =====
-[[https://repo.powerdns.com/]]+ 
 +В репозиторіях є зазвичай, застаріла версія, тому заглянемо на сайт [[https://repo.powerdns.com/]] 
 + 
 +Там знаходимо стабільну версію програми і застосовуємо зміни в списку репозиторіїв 
 + 
 +<code bash> 
 +sh -c 'echo "deb [arch=amd64] http://repo.powerdns.com/debian bullseye-auth-46 main" > /etc/apt/sources.list.d/pdns.list' 
 +</code> 
 + 
 +<code bash> 
 +tee /etc/apt/preferences.d/pdns<<EOF 
 +Package: pdns-* 
 +Pin: origin repo.powerdns.com 
 +Pin-Priority: 600 
 +EOF 
 +</code> 
 + 
 +<code bash> 
 +curl https://repo.powerdns.com/FD380FBB-pub.asc | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/powerdns.gpg --import 
 +chmod 644 /etc/apt/trusted.gpg.d/
 +</code> 
 <code bash> <code bash>
 apt-get update  apt-get update 
 apt-get install -y pdns-server pdns-backend-mysql apt-get install -y pdns-server pdns-backend-mysql
-nano /etc/powerdns/pdns.conf +cp -r /etc/powerdns/ /etc/powerdns.orig/
 </code> </code>
  
 <code bash> <code bash>
 +tee /etc/powerdns/pdns.conf<<EOF
 setgid=pdns setgid=pdns
 setuid=pdns setuid=pdns
Рядок 33: Рядок 58:
 include-dir=/etc/powerdns/pdns.d include-dir=/etc/powerdns/pdns.d
 launch= launch=
 +EOF
 </code> </code>
- 
 ===== prepeare mysql db ===== ===== prepeare mysql db =====
 <code bash> <code bash>
Рядок 231: Рядок 256:
 chown -R www-data:root /run/powerdns-admin chown -R www-data:root /run/powerdns-admin
 chown -R www-data:root /opt/web/powerdns-admin chown -R www-data:root /opt/web/powerdns-admin
-</code> 
- 
-<code bash> 
-systemctl daemon-reload 
-systemctl start powerdns-admin 
-systemctl enable powerdns-admin 
 </code> </code>
  
Рядок 257: Рядок 276:
  
 <code bash> <code bash>
 +chown -R pdns:root /etc/powerdns/
 systemctl restart pdns systemctl restart pdns
 </code> </code>
  
-<code bash> 
 Visit PowerDNS-Admin web interface. http://your-host-ip:9191/ Visit PowerDNS-Admin web interface. http://your-host-ip:9191/
  
 Click “Create an account” button and Register a user. The first user will be in the Administrator role. Click “Create an account” button and Register a user. The first user will be in the Administrator role.
  
-Provide PowerDNS API connection information before PowerDNS-Admin can query your PowerDNS data. This is done under Settings > PDNS</code> +Provide PowerDNS API connection information before PowerDNS-Admin can query your PowerDNS data. This is done under Settings > PDNS
  
 ===== Нотатки ===== ===== Нотатки =====
Рядок 279: Рядок 297:
  
 [[https://fossies.org/linux/pdns-dnsdist/pdns/dnsdistdist/docs/advanced/snmp.rst]] [[https://fossies.org/linux/pdns-dnsdist/pdns/dnsdistdist/docs/advanced/snmp.rst]]
- 
- 
- 
-  sh -c 'echo "deb [arch=amd64] http://repo.powerdns.com/debian buster-rec-master main" > /etc/apt/sources.list.d/pdns.list' 
- 
-  nano /etc/apt/preferences.d/pdns 
- 
-  Package: pdns-* 
-  Pin: origin repo.powerdns.com 
-  Pin-Priority: 600 
- 
-  curl https://repo.powerdns.com/CBC8B383-pub.asc | sudo apt-key add - && 
-  sudo apt-get update && 
-  sudo apt-get install pdns-recursor 
-   
- 
  
   pdnsutil create-zone example.com ns1.example.com   pdnsutil create-zone example.com ns1.example.com
  
-   
   /etc/init.d/pdns-recursor restart   /etc/init.d/pdns-recursor restart
   rec_control wipe-cache   rec_control wipe-cache
   /etc/init.d/pdns-recursor status   /etc/init.d/pdns-recursor status
  
  • debian/pdns_server.1665311063.txt.gz
  • Востаннє змінено: 09/10/2022 10:24
  • повз Method