Git Product home page Git Product logo

pdns-gui's Introduction

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

pdns-gui's People

Contributors

joubertredrat avatar odoucet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.