![]() | PowerDNS support for Windows is very recent and therefore quite 'beta'. For reliability, we currently advise the use of the Unix versions. |
As of 1.99.12, PowerDNS supports Windows natively. PDNS can act as an NT service and works with any ODBC drivers you may have.
To install PowerDNS for Windows you should check if your PC meets the following requirements:
A PC running Microsoft NT (with a recent servicepack and at least mdac 2.5), 2000 or XP.
An ODBC source containing valid zone information (an example MS Access database is supplied in the form of powerdns.mdb).
If your system meets these requirements, download the installer from http://www.powerdns.com/pdns/. After downloading the file begin the installation procedure by starting pdns-VERSION.exe.
After installing the software you should create a valid ODBC source. To do this you have open the ODBC sources dialog: Start->Settings->Control Panel->Administrative Tools->Data Sources (ODBC).
We'll use the example zone database that is included in the installation to explain how to create a source.
When you are in the ODBC sources dialog you activate the System DSN tab.
![]() | It is important to create a System DSN instead of an User DNS, otherwise the ODBC backend cannot function. |
Press Add..., then you have to select a driver.
Select Microsoft Access Driver (*.mdb).
Use PowerDNS as the DSN name, you can leave the description empty.
Then press Select... to select the database (ie. C:\Program Files\PowerDNS\powerdns.mdb).
Press Ok and you should be done.
For more information, see Section A.8.
If you installed pdns on Windows NT, 2000 or XP you can run pdns as a service.
This is how to do it: Go to services (Start->Settings->Control Panel->Administrative Tools->Services) and locate PDNS (you should have registered the program as a NT service during the installation).
Double-click on PDNS and push the start button. You should now see a progress bar that gets to the end and see the status change to 'Started'.
This is the same as starting pdns like this: pdns.exe --ntservice --launch=odbc --odbc-datasource=PowerDNS --odbc-user=PowerDNS --odbc-pass=PowerDNS --webserver
If you haven't registered pdns as a service during the installation you can do so from the commandline by starting pdns like this: pdns.exe --register-service
You can run pdns as a standard console program by using a command prompt or Start->Run... This way you can specify command-line parameters (see the documentation for commandline options).
If you chose to add a PowerDNS menu to the start menu during the installation you can start pdns using the pdns shortcut in that menu.
This is the same as starting pdns like this: pdns.exe --launch=odbc --odbc-datasource=PowerDNS --odbc-user=PowerDNS --odbc-pass=PowerDNS --webserver