So you have built a funky web application. You are running it on an Amazon EC2 instance. And you have registered a memorable domain name for people to access your website with. So.... now what?
If you feel completely lost about how to get your domain name to point to your EC2 instance, then you are not alone. This was confusing and painful journey when I first tried it. But hopefully I can make it much less painful for you.
In order to have your domain name route traffic to your EC2 instance, we need to associate the domain name you registered to the IP address of your EC2 instance. We do this by entering these details in a Domain Name System (DNS). This is like a phonebook for the internet. When someone types www.example.com on their browser, it looks up that name in a DNS server, which returns an IP address. That IP address then tells your browser where to locate the content you are looking for.