This journey started when I was building a test lab on Windows Azure. The goal was to run two SharePoint instances, one SharePoint 2010 farm and one SharePoint 2013 farm. In keeping with automating this network setup and build… I wanted a good way to lookup my VM’s VIP assigned by Azure and update an A record on DNSimple. It turns out a simple DNS Alias record is really what I needed, but never the less I’ve had a bit of fun and learned a few things along the way.
I’ll come back to working with Azure in a later post, for now let’s focus on DNSimple…
DNSimple.com offers a great service! I first heard about them from Scott Hanselman. I’ve not been disappointed. Not only do they have a robust API, but also 1 click DNS configuration for many popular services (I won’t hold it against them if they don’t have a Office365 configuration yet).
My scripting language of choice is PowerShell. Naturally I turned there first to start automating. Out of this came PowerDNSimple. Drop it in your modules folder and you get a few new functions:
- Get-SMPLDomains – Get a list of domains hosted at DNSimple.
- Get-SMPLDomainRecords – Get a list of records for a given domain.
- Add-SMPLDomainRecord – Create a new record.
- Update-SMPLDomainRecord – Update an existing record.
- Remove-SMPLDomainRecord – Delete an existing record.
Here is a sample script…