Skip to content

odoucet/pdns-gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDNS-GUI

This is a fork from http://code.google.com/p/pdns-gui/

Code was not updated since early 2011, so I decided to fork it and commit bugfixes on it.

Source code was released under GNU GPL v2, so this repository will use the same license model.

Special thanks to Olivier Doucet to fork, bugfixs and provide the source here in github.

Installation on Ubuntu 12.04 / 12.10

If you don't have a MySQL, install it.

sudo apt-get install mysql-server mysql-client

Install PowerDNS and a mysql backend.

sudo apt-get install pdns-server pdns-backend-mysql

Create a database and user for PowerDNS.

Edit a PowerDNS conf to access a MySQL database.

sudo vim /etc/powerdns/pdns.d/pdns.local.gmysql

Clone this repository or download this in your server.

Change de owner and group to your web user.

Example: chown www-data.www-data pdns-gui -Rf

Into batch folder, add execution permission to install.sh.

sudo chmod +x install.sh 

Run a install.sh script and insert parameters.

./install.sh

After this, you need to edit a conf in your web server.

This gui needs to run a pdns-control with sudo (/usr/bin/pdns_control), to this we add the pdns-control's executable to run as sudo without password.

Create a www-data file to sudoers and add a line and save.

sudo vim /etc/sudoers.d/www-data
www-data ALL=NOPASSWD: /usr/bin/pdns_control

Run in your web browser with a IP or vhost and be happy.

Bônus!!!

"Hey guy, i don't use apache, I prefer lighttpd". No problem, i prefer too, use this conf in your lighttpd.conf or in your vhost.conf

$HTTP["host"] =~ "(^|\.)subdomain.yourhost.com$" {
    server.document-root = "/folder1/folder2/folder3/pdns-gui/web/"
	alias.url = ( "/sf" => "/folder1/folder2/folder3/pdns-gui/web/sf" )
	url.rewrite-once = (
		"^/(extjs|images|css)(.*)" => "$0",
		"^/(.*)" => "/index.php/$1",
		"^/$" => "/index.php"
	)
}

For more info for lighttpd conf, see links:

http://redmine.lighttpd.net/projects/1/wiki/Docs_Configuration

http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ConfigurationOptions