Am unable to resolve the ip issue of my AWS EC2 instance. I have installed HDP 2.5 through docker in AWS EC2 instance. but am not able to resolve HOST ADDRESS OF MY ENVIRONMENT. So each tool am opening by IP:<port> instead of default sandbox.hortonworks.com:<port>.
If you are able to access your cloud sandbox through its IP address, that points toward an issue with DNS resolution - could you post the full contents of your hosts file? What you've posted so far looks correct, I just tested it on my own machine and it resolves.
What is the specific error you are running into? What happens when you type sandbox.hortonworks.com into your web browser? What happens when you try 'ping sandbox.hortonworks.com' in your command line? Please post the full output.