I am trying to migrate my current website to DO. The migration is probably going to take several days. During these days, I want my host name to point to the old server. However, when I try to create a droplet in DO, I am asked to provide the host name.
I would like to create a droplet without a hostname, access it via its IP address, and check that it is working OK, before I migrate my hostname to DO. Is this possible?
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!
Yes any hostname works and after reading this I did the same and went into problems. <br> <br>Currently I’m facing problem due to using any hostname. Say e.g. host.mywebsite.com. Everytime I run “sudo” command in my unbuntu droplet. It warns “sudo: unable to resolve host host.mywebsite.com”. Further on of my programs uses sudo command and now the programs throws exception because of this. <br> <br> <br> <br> <br> <br>
@umakantpatil7: Add the following line to <code>/etc/hosts</code>: <br><pre>127.0.0.1 host.mywebsite.com</pre>
Hostname does <b>not</b> equal domain name. Sounds like you’re confusing the two for one in the same. Go ahead and create the hostname – and you’ll be able to accomplish exactly what you’re trying to do.
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.