IP Address not Domain Name in browser address bar

Posted January 20, 2020 2.3k views


I don’t seem to have entered my DNS A, CNAME records correctly. If I visit the site from a Google search the IP address of the droplet stays in the address bar.

If I type ‘’ into the address bar it is replaced by the IP address. If I type ’’ into the address bar it is replaced by '

My DNS A record looks like this:

A - - directs to: - TTL 3600

My DNS CNAME record looks like this:

CNAME - - is an alias of

It’s almost as if I need an IP address to domain name rule but I can’t seem to add one like that…

Any ideas?

Thank you!


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.

Submit an Answer
2 answers

Hi @CarverFan,

I can confirm your DNS is perfectly fine. You need to check your Web Service’s configuration whether it’s Apache or Nginx. From there you can actually resolve this matter.

If you are using Apache, you can read this DigitalOcean article, it will show you how to create the proper Apache vhost file - Article

If you are using Nginx, in that case here is another DigitalOcean article which will help - Article

Take a look at the relevant article for you and see if you have actually missed anything while configuring your droplet.


by Justin Ellingwood
Nginx is one of the most popular web servers in the world, focused on performance and scalability. In this guide, we will explore the Nginx configuration file structure and discuss the configuration "contexts" that Nginx uses to logically separate different configuration values.

Thanks KDsys,

I’ve followed the instructions and made the recommended changes. If I access the site through Google Chrome it still appears to have the same problem but this may be just caching as Tor and IE seem to be working OK.

Thank you!