User Tools

Site Tools


freebsd:powerdns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
freebsd:powerdns [2016/11/18 14:28]
tschulz
freebsd:powerdns [2018/12/13 11:54] (current)
tschulz
Line 81: Line 81:
 pkg install mod_php56 php56 php56-curl php56-json php56-openssl php56-session php56-sqlite3 apache24 pkg install mod_php56 php56 php56-curl php56-json php56-openssl php56-session php56-sqlite3 apache24
 </​file>​ </​file>​
-  * Add/create the following to /​usr/​local/​etc/​apache24/​php5.conf+  * Add/create the following to **/​usr/​local/​etc/​apache24/​php5.conf**
 <​file>​ <​file>​
 <​FilesMatch "​\.php$">​ <​FilesMatch "​\.php$">​
Line 93: Line 93:
 </​file>​ </​file>​
  
 +  * Enable and start apache
 +<​file>​
 +echo "​apache24_enable=\"​YES\""​ > /​etc/​rc.conf
 +service apache24 start
 +</​file>​
  
 +===== Install and Configure NSedit =====
 +  * download a copy of NSEDIT from [[https://​github.com/​tuxis-ie/​nsedit]]
 +  * Extract to **/​usr/​local/​www/​apache24/​data**
 +  * make a directory and give www:www full access to it
 +<​file>​
 +mkdir -p /​usr/​local/​etc/​pdns/​web-db
 +chown -R www:www /​usr/​local/​etc/​pdns/​web-db
 +</​file>​
 +  * Edit ./​nsedit/​includes/​config.inc.php and set the following values
 +<​file>​
 +$apipass = '​APIPASSWORD';  ​
 +$apiip ​  = '​127.0.0.1';  ​
 +$apiport = '​8081'; ​  
 +$apiproto = '​http'; ​
 +$authdb ​ = "/​usr/​local/​etc/​pdns/​web-db/​pdns.users.sqlite3";​
 +</​file>​
  
 +==== Login to NSEdit ====
 +  * go to http://​localhost/​nsedit/​index.php
 +  * Login with Username: **admin**, password: **admin**
  
 +====== Project PKGs ======
 +{{:​freebsd:​pkg_pdns_nsedit.tar.bz2|}}
 +
 +====== Tips ======
 +===== Refresh Save Zone =====
 +<​file>​
 +pdns_control retrieve <Zone Name>
 +</​file>​
  
  
freebsd/powerdns.1479500934.txt.gz · Last modified: 2016/11/18 14:28 by tschulz