Getting 404 bluehost error

Hello, I have just setup my web application onto ubuntu. Also configured apache to work with tomcat. The application works perfectly fine when I access the website using a url having the ip address of the droplet. Something like

But if I try with the logical name assigned to this IP address (, I get sucess page many time and a lot of times I get 404 error and a page of is displayed saying that resource being tried to access is unavailable or moved temporarily.

PLease help in resolving this issue. I have checked all logs including access logs as well and there are no hits for 404 error.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Where are you hosting your DNS records? Have you considered transferring them to the DigitalOcean DNS Manager?

you are a start yes there is a dns problem and I get a message <br> <br>“No name servers found for <br>Received answer from <br>A search was performed starting with the root servers, but no NS records were found for this domain.” <br> <br>strangely the pinging succeeds, sorry but I am a novice in this area and appreciate any pointers to resolve this issue

Thank you. But it is random, if I have to split 60% of time it works and 40% not. I will anyway try the tool but if you can comment on random behaviour?