I have an AWS EC2 instance with domain like http://ec2-some-ip-addres.compute-1.amazonaws.com/
Now I want to change this url (add a custom domain which is not registered) to some small alias like testing.webserver.com etc. Can we do that?
I have tried editing /etc/hosts file with
ip-address hostname alias
But not working. What is the best way to change the url without making a DNS entry on no-ip or some other services?