Setting up DNS records

There are many popular domain name registrars that allow you to pay to rent a domain name. Professor S has paid for the is404.net domain name, and uses the Cloudflare registry, which has its own page to edit DNS records. Unfortunately he can't share his Cloudflare credentials with all of you, so instead he created a super janky website where you can manage the DNS records yourself.

Objectives

  • Use Professor S's custom website to create and edit DNS records for your website
  • Learn how to use A and CNAME records

Prerequisites

  • An EC2 instance with an Elastic IP address
  • Access to a domain name (for current students, access is provided through dns.schuetzler.net)

Steps

Creating an A record

A records are the workhorses of DNS. It's where the rubber hits the road of turning a name into an IP address.

  1. Go to https://dns.schuetzler.net to manage domains for the is404.net domain
  2. Click the "Create new record" button to create a new record
  3. On the new record form, input the following information:
    1. Name: This needs to be the full domain name (including is404.net). For example, if my netID was "rms96", I could put rms96.is404.net
    2. Type: For the A record, choose A as the record type
    3. Content: This needs to contain the public IPv4 address of your server (e.g., 54.69.14.191)
    4. TTL: 1 lets Cloudflare manage the TTL, which is just fine, so leave it as 1.
💡
Important clarification: The TTL is time-to-live of the DNS record in the DNS cache. When DNS servers fetch this DNS record, they can choose to cache the record to avoid repeat requests. The TTL for a DNS record does not indicate how long the record is stored on the DNS server. DNS records are semi-permanent - they only get deleted when some goes into the server and deletes them.
  1. Click Save to save the record.

If all of the information was correct, you will get a JSON message indicating the record was created successfully. If there is an issue with your form, you will receive an error message from the server indicating that part of the record had a problem. Correct the error and try again.

If you had a working website you could visit at http://your.ip.address, you can now visit it at http://yourdomain.is404.net. Note that it still uses only HTTP (not HTTPS), and you'll have to specify the http (not https) in the URL.

Creating a CNAME record

CNAME records are aliases - a way to give a server another name so that multiple DNS records can resolve to the same IP address. Creating a CNAME works pretty much the same as an A record, but the Content of the record is different.

  1. Go to https://dns.schuetzler.net
  2. Click the button to Create new record
  3. In the form, put in the information:
    1. Name: This will be the new domain name alias you want to create. For example, I could create coolsite.rms96.is404.net
    2. Type: Select CNAME
    3. Content: This needs to be the A record you want to point to. In my case, I would use rms96.is404.net
    4. TTL: 1 is fine
  4. Click Save to create the record

If all of the information was correct, you will get a JSON message indicating the record was created successfully. If there is an issue with your form, you will receive an error message from the server indicating that part of the record had a problem. Correct the error and try again.