To set up DNS hostnames for a deployment's load balancing and database tiers using Rackspace's Cloud DNS service.
Table of Contents
Rackspace's Cloud DNS (http://www.rackspace.com/cloud/cloud..._products/dns/) service is a supported DNS Provider that offers dynamic DNS services. It's a free API service designed to help you easily manage domains, sub-domains & DNS records for your Rackspace cloud servers.
If you have an existing Rackspace account, you can automatically use their Cloud DNS service.
Log into your Rackspace account. (https://manage.rackspacecloud.com/pages/Login.jsp)
The next step is to create DNS hostnames for your cloud servers. You'll need to create DNS Hostnames for both your frontend / load balancing tier, as well as your database tier.
In order to update the DNS A Records with an IP address, you must specify the record's unique ID as an input. Currently, you cannot retrieve the ID from Rackspace Cloud Console. However, you can follow the steps outlined below to retrieve the information.
The easiest way to retrieve the record ID is by executing a Rackspace API call. However, before you can execute an API call, you must first generate an API token for authentication purposes.
curl -D - -H "X-Auth-Key: $RACKSPACE_AUTH_KEY" -H "X-Auth-User: $RACKSPACE_USERNAME" https://auth.api.rackspacecloud.com/v1.0
curl -X GET -H "X-Auth-Token:$RACKSPACE_API_TOKEN" -H "Accept:application/xml" https://dns.api.rackspacecloud.com/v1.0/$RACKSPACE_ACCOUNT_NUMBER/domains/$RACKSPACE_DOMAIN_ID
Although you can use Cloud DNS to create A records for load balancing purposes, it's not required. For example, you may use a load balancing service like Rackspace's Cloud Load Balancers or use a different DNS provider to create DNS records for your dedicated load balancer servers.
If you are using ServerTemplates to launch dedicated cloud servers for load balancing purposes, you can create A records for each load balancer in Cloud DNS. It will be easiest to create A records that point to the load balancers once they are operational.
If you are using Rackspace Cloud Load Balancers, go to the CLB's details page to find its public IP address. Create a single DNS A record that points to the IP.
When you configure the deployment's inputs, specify the following information so that the scripts will be able to update the DNS hostnames inside Cloud DNS.
Note: Cloud DNS is not a supported DNS provider for the RightScript-based (11H1) or Chef-based ServerTemplates.
Input Name - v12, v13 (Chef) | Example Value |
DNS Service Provider | text: CloudDNS |
DNS Password | cred: RACKSPACE_AUTH_KEY (Password to access the Rackspace account) |
DNS User | cred: RACKSPACE_USERNAME (Username to access the Rackspace account) |
Database Master FQDN | text: db-master.example.com (Hostname for the Master-DB server) |
Database Master DNS Record ID | Syntax: <DOMAIN_ID>:<RECORD_ID> text: 3456789:A-1234567 |
Database Slave DNS Record ID (Optional) | Syntax: <DOMAIN_ID>:<RECORD_ID> text: 3456789:A-2223334 |
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.