Report this

What is the reason for this report?

Maintenance page for app. What's the best way on Digital Ocean?

Posted on December 14, 2014

Hi, this seems like a small thing. Put up a maintenance page while I’m fiddling with my site.

In your experience what’s the best way to do this on DO?

Change DNS to new IP?
Move IP to new Droplet?

Thanks



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.

Hello dear.

Change DNS to new IP? Please run putty or ssh and connect to your server with root then

Use “PEERDNS=no”. This option will prevent /etc/resolv.conf from being modified by a DHCP server. So instead of using DHCP-provided DNS, you can specify any arbitrary DNS servers you want to use in /etc/resolv.conf.

The configuration file for your network interface (e.g., eth0) looks like the following.

sudo vi /etc/resolv.conf 

Press enter for continue for delete u can use of x button on keyboard and then ESC after it use i for edit .conf file and after edit click Esc and then type :wq for save changes

((for more help edit file please click here))

2. Move IP to new Droplet?

-login to digital ocean Droplets—>click on the name of servers that you want to upgrade on downgrade it—>click on Destroy tab---->then click on Destroy blue button —>

After it you can create a new droplet just should select size ((everything that you want))+ same region*

Have a good day

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.