Skip to content

Instantly share code, notes, and snippets.

@mkyed
Created January 28, 2012 13:05
Show Gist options
  • Save mkyed/1694240 to your computer and use it in GitHub Desktop.
Save mkyed/1694240 to your computer and use it in GitHub Desktop.
Installing PowerDNS 3.0.1 on Mac OS X Lion
1) Install MySQL <http://dev.mysql.com/>
2) Install Homebrew <http://mxcl.github.com/homebrew/>
3) $ brew install boost boost-jam lua pkg-config wget
4) $ wget http://downloads.powerdns.com/releases/pdns-3.0.1.tar.gz && tar xzf pdns-3.0.1.tar.gz
5) $ cd pdns-3.0.1 && ./configure --with-mysql-includes=/usr/local/mysql/include && make && make install
6) Adjust /usr/local/etc/pdns.conf to your mysql setup
7) cat /System/Library/LaunchDaemons/pdns_server.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<true/>
<key>Label</key>
<string>pdns_server</string>
<key>Program</key>
<string>/usr/local/sbin/pdns_server</string>
<key>EnvironmentVariables</key>
<dict>
<key>DYLD_LIBRARY_PATH</key>
<string>/usr/local/mysql/lib</string>
</dict>
<key>KeepAlive</key>
<true/>
<key>SHAuthorizationRight</key>
<string>system.preferences</string>
</dict>
</plist>
8) sudo launchctl load /System/Library/LaunchDaemons/pdns_server.plist
9) sudo launchctl start pdns_server
@n0ts
Copy link

n0ts commented Dec 8, 2012

  1. sudo launchctl load /System/Library/LaunchDaemons/pdns_server.plist
  2. sudo launchctl load -w /System/Library/LaunchDaemons/pdns_server.plist

Thanks,

@mkyed
Copy link
Author

mkyed commented Jan 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment