Mapping IP address to Domain

Domain Registrar DNS Dashboard

In namecheap, login and go to the Advanced DNS tab of the domain you want to use:

A Record

A Record

A (address) records are the main entry of the DNS database. It provides a mapping from hostname to IP address. Add a A record with the following values:

TypeHostValue
A Record@IP Address of your Rails server (EC2 instance)

A Record

This uses IPv4 Address.

CNAME Record

CNAME stands for Canonical Name. CNAME records assign nicknames to a host. Add a CNAME record with the following values:

TypeHostValue
CNAME Recordwwwyourdomain.com

CNAME Record

It will take a few minutes for the changes to take affect.