Question

Domain name is replace by IP address

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


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.

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.
<br> <br>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). <br> <br>If you have the domain mydomain.com and want droplet.mydomain.com to go to your droplet which has a public IP address of 194.194.1.1, add the following record in the advanced domain settings for mydomain.com <br> <br>droplet A 194.194.1.1 <br> <br>droplet.mydomain.com will go straight to your droplet instead of being forwarded/rewritten so will remain in the address bar of your browser. <br> <br>How you do that exactly will depend on how/where your domain is being hosted.

Hi, <br> <br>To do this you need to: <br> <br>1. point your domain to these name servers: <br> ns1.digitalocean.com <br> ns2.digitalocean.com <br> ns3.digitalocean.com <br> <br>2. log in to your digital ocean control panel <br>3. click on “DNS” <br>4. Click on “Add Domain” <br>5. in the name field, put the FQDN e.g: example.com <br>6. in the IP address field, put the public ip address of your server e.g: 192.81.222.228 <br>7. click on “Create Domain” <br> <br>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