Report this

What is the reason for this report?

Should /etc/hosts have the IP and domain name I want to use with the vps?

Posted on June 4, 2016

Should /etc/hosts have the IP and domain name I want to use with the vps? Running Debian 8.4.



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!

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.

If your intention is to be able to resolve your IP address from anywhere on the web, then the procedure is usually to create DNS entries using the DO control panel, and then configuring with your domain registrar to point to the DO DNS servers. For the first part try this basic DO DNS tutorial. For the second part, there is an older tutorial on setting up with external registrars that may still apply.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.