Can I set the URL of my EC2 instance instead of IP?

I am working on an AWS EC2 instance, I installed the Apache server. Is it possible to set the url of my server?

I would like to write in my browser:

http://myServiceWebSite

instead

http://23.26.31.178

Can I hide the ip of my server with the name of the person? Thanks.

+4
source share
3 answers

You can set DNS using a domain registrar like Go Daddy
You can use FREE domain names such as co.nr , although I think $ 13 a year for .com is the price of a descent.

As adjar wrote, Amazon provides default DNS, but it is ugly and you probably won’t use it.

+9
source

By default, when you restart the computer, it will probably assign a different IP address , and the DNS name is ugly because it is based on the IP address and it is issued when the instance is closed.

If your server is used on the public Internet, you can have at least 3 options:

  • Make the IP address static using Elastic IP from the EC2 console and register this IP address with some DNS service like Go Daddy.
  • Leave your IP address dynamically and use a dynamic DNS service such as DynDns .
  • If you need to use an elastic load balancer, use the AWS Route 53 DNS service and instead of creating a resource record pointing to a static IP address, you can use an Alias ​​Resource Record pointing to your elastic load balancer, I think it will be the best option if you have more than 1 server.
+2
source

If you need a quick and dirty solution, you can use a shortened URL and use the URL that it generates from your standard AWS-DNS. This is not a long-term solution, but just something to use if you want to quickly deploy a prototype and temporarily display it for someone without giving them an IP address.

0
source

All Articles