Question

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

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


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.

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