Using an IP address when I don't have a hostname

  • Posted on October 18, 2013
  • erelsglAsked by erelsgl

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?

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.

@umakantpatil7: Add the following line to <code>/etc/hosts</code>: <br><pre></pre>

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. Everytime I run “sudo” command in my unbuntu droplet. It warns “sudo: unable to resolve host”. Further on of my programs uses sudo command and now the programs throws exception because of this. <br> <br> <br> <br> <br> <br>

Correct. Not sure if the website you plan on migrating is a WordPress site, but this article may be of interest to you: <a href=“”>How to Migrate WordPress from Shared Hosting to a Cloud Server with Zero Downtime</a> (particularly – even if yours is not a WordPress site – Step 6).