Delegating a subdomain with Rackspace Cloud DNS

Currently the rackspace cloud control panel won’t let you delegate a DNS subodmain. When you add a record and set the type to NS, the hostname field is fixed so you can only delegate the whole domain:

reach_add_ns_record

 

This didn’t suit me as I wanted to delegate a subdomain to hurricane electric for dynamic DNS. Why do I need dynamic DNS when I could use the cloud DNS API? Because that API requires SSL connections, and the router on which I want to run the update script can only fetch urls over plain HTTP.

The solution is to use the API to add the required NS records. This is easy thanks to Chmouel’s python bindings.

Step 1: Install python cloud dns bindings


 

Step 2: Quick python script to add the necessary records