0

Amazon provides a domain names like blah-blah.amazonaws.com. They want us to use the domain name instead of an IP because the IPs are transient.

The local hosts file on my computer only takes IP addresses. So, how can I redirect dev.example.com to blah-blah.amazonaws.com locally from my machine?

  • Why do you need to do this on your local hosts file? Can you create a DNS entry? – D34DM347 Dec 3 '15 at 15:43
  • what is your computer? And what are you trying to access? Something in public dns or private ?? – brianlmerritt Dec 3 '15 at 15:56
1

In the DNS zone for for example.com you create a cname record of dev, pointing to blah-blah.amazonaws.com. (the trailing dot in the URL is very important).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.