One of the quiet parts that powers our logistics infrastructure is PowerDNS. Its a very powerful way to serve DNS records that you need the ability to update programmatically. Unfortunately, OpenSolaris (or Solaris 10 for that matter) isn't exactly considered kosher over in PowerDNS-land. Like a lot of OSS projects, PDNS hasn't kept up with the times and treats OpenSolaris like a red-headed step-child. If you like red-headed step-children like we do, then you're in for about
8 hours of greasing, coaxing and pleading to get it compiled right. Well either that…or you can read on and get it up in about a 30 minutes..
As a side-bonus, you'll also have PDNS managed by the coolest way ever invented to replace init.d: SMF.
First thing you'll need to do is get Blastwave installed on your Solaris box. You could try and build the unholy abomination that is Boost on your own…but then you're a braver soul than I. As its getting late, please excuse that the steps are brief and bulleted (feel free to harass me if you have questions):
Service Management Facility (SMF) is a truly wonderful thing. It completely replaces init.d and inet.d, gives you a standard way of managing both types of services, understands dependencies, restarts dead services…and washes your car while you sleep.
The only hiccough is you've got to write a manifest to run PDNS under SMF…or use the one below.
Again…caveat emptor…this SMF manifest comes with absolutely no warranty at all. Read the BSD license
header at the top of the manifest for a complete description of how much its your own darn fault if this manifest totals your system. The DigiTar SMF manifest for PDNS has a couple of neat integration features:
OK, enough jabbering. Here's how you install the SMF manifest:
You should now be able to start your PDNS server with a simple svcadm enable powerdns. Stopping PDNS is similarly simple: svcadm disable powerdns. If you just want to see the state of the PDNS service try svcs powerdns. That's it! You can sleep well at night knowing if PDNS goes the way of all flesh, SMF will auto-restart it for you. Try a pkill pdns and watch the process IDs change.
If you're PDNS service won't start take a look at svcs
-x to see why. Anywho…off to the sand man for me. If you have any questions, please feel free to contact me: williamsjj_@_digitar.com
Technorati Tags: Solaris, Solaris Express, Sun, SMF
John Levon
February 22nd, 2007 at 9:53 am
At least the u_int8_t stuff has been fixed in the latestdevelopment sources.
February 22nd, 2007 at 7:13 pm
Hi John,That's great to know! It was kind of annoying and unexpected. I wonder if it caused any issues on Linux… Seems like it would have.
links for 2009-06-28 | blog/shl@INTERDOSE
December 22nd, 2009 at 5:01 am
[...] OpenSolaris & SMF adventures with PowerDNS – Jason’s .plan (tags: opensolaris network solaris) [...]