Advanced Cluster Options
Also available as:
PDF

Configure DNS using Route53

Follow these general steps to configure reverse DNS using Route53.

Step 1: Create a new VPC or use your existing VPC

  1. You can create a new VPC from the Amazon VCP console (for example by using Start VPC Wizard):
    • CIDR block example: 10.1.0.0/16
    • Subnet’s CIDR example: 10.1.1.0/28
  2. Make sure to:
    • Enable DNS resolution for the VPC. You can do this by selecting the VPC, selecting Actions > Edit DNS resolution and choosing Yes.
    • Enable DNS hostnames for the VPC. You can do this by selecting the VPC, selecting Actions > Edit DNS hostnames and choosing Yes.
Note
Note

Optionally, you may want to set up an Internet Gateway for the VPC and add a default route to the routing table for the Internet Gateway. Additionally, you may want to enable the Auto-assign Public IP option. This way Cloudbreak would reach the cluster from outside of the VPC and the cluster would have internet access.

Step 2: Create a DHCP options set:

Perform this step from the Amazon VPC console. Select DHCP Options Sets from the left pane and click on Create a DHCP options set. Make sure to:

  • Set the Domain name to a preferred domain, for example cloudbreak.beer
  • Set the Domain name servers to AmazonProvidedDNS

For detailed steps, refer to AWS documentation.

Step 3: Assign the newly created DHCP options set to your VPC

  1. From the Amazon VPC console, select Your VPCs from the left pane.
  2. Select the VPC created earlier.
  3. Click on Actions > Edit DHCP Options Set.
  4. Select the newly created DHCP option set.

Step 4: Configure your domain at Route53

Perform these steps from the Amazon Route53 console. For general steps, refer to AWS documentation.

  1. Select Hosted zones from the left pane.
  2. Create a hosted zone by clicking on Create Hosted Zone. Make sure to:
    • Use the same domain name as used previously with the DHCP options set (In the example this was cloudbreak.beer).
    • Set the Type to Private Hosted Zone for Amazon VPC.
    • Select the VPC ID of the VPC to which you previously assigned the DHCP option.
  3. Add records for your hosted zone:
    • Select the hosted zone and choose Go to Record Sets
    • Click Create Record Set to create a record set. You must perform this step for every available IP, so that each IP can have a custom name (If you used the subnet example listed above, these IPs will be in the range of 10.1.1.4-14):
      • Type: select A
      • Name: for example b10
      • Value: for example 10.1.1.10

  4. After performing this step for each IP, you should end up with an many records as IPs. For example:

Step 5: Create another hosted zone for reverse DNS lookup

Perform these steps from the Amazon Route53 console.

  1. Select Hosted zones from the left pane.
  2. Create a hosted zone by clicking on Create Hosted Zone. Make sure to:
    • For example, if you used the subnet example listed above, its Domain name should look like this (as reverse DNS lookups use the special domain in-addr.arpa):

      1.1.10.in-addr.arpa.
    • Set the Type to Private Hosted Zone for Amazon VPC.
    • Select the VPC ID to which you previously assigned the DHCP option set.
  3. Add records for every created domain:
    • Type: select PTR
    • Name: This determines the first part of the IP, for example 10
    • Value: Enter the domain name that you set in the previous step, for example, b10

  4. After performing this step for each domain, you should end up with as many records as IPs. For example:
    Step 6: Create the cluster in the VPC configured in the earlier steps and you will have the same hostnames set as the domain names.
    Note
    Note

    Since you don’t have control the order over the IP addresses leased to the machines, the names may not be in order.