On aws for example you get something like http://cosi166b.s3-website-us-west-2.amazonaws.com . Is there something like that by default, or available? In other words, I’d like to enter a dns name instead of an ip address into my code.But I dont care what the name is.
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!
I’d like to enter a dns name instead of an ip address into my code
You can explore how to map a custom domain to your Droplets or Floating IP addresses.
https://www.digitalocean.com/docs/networking/dns/how-to/add-domains/
Hello, @pitosalasWhale
You can setup a hostname for your droplet and use it instead of the IP address. You can use a subdomain like myserver.domain.com and point it to the IP address of your droplet. When you deploy a droplet the rDNS will be configured automatically based on the hostname you choose for the droplet as well.
Once you’ve pointed your subdomain to the IP address of your droplet you need to wait for the DNS to propagate. This might take up to 24 hours, however it usually happens a lot faster.
Hope this helps.
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.