Domain name is replace by IP address

Posted March 7, 2013 10.9k views
Hi Guys, I am new on digital ocean. I am trying to attach my subdomain to public ip. But I realized when I enter my FQDN subdomain address it is showing the public ip address in browser Early help will be very much appreciated Regards PC

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
3 answers

To do this you need to:

1. point your domain to these name servers:

2. log in to your digital ocean control panel
3. click on "DNS"
4. Click on "Add Domain"
5. in the name field, put the FQDN e.g:
6. in the IP address field, put the public ip address of your server e.g:
7. click on "Create Domain"

It can take a while for your DNS records to update but when everything is updated the domain should point to your server but not redirect to the ip address
or use the advanced domain options of your existing service to add a A record for your host address with the IP of your droplet.

It sounds like you are using forwarding or rewriting option, which is usually part of the simple domain settings (and sometimes all that is offered). You need to use advanced domain options (or maybe even edit the zone file directly).

If you have the domain and want to go to your droplet which has a public IP address of, add the following record in the advanced domain settings for

droplet A will go straight to your droplet instead of being forwarded/rewritten so will remain in the address bar of your browser.

How you do that exactly will depend on how/where your domain is being hosted.