If I destroy a droplet will I lose my SSL settings and DNS settings?

If I destroy a droplet will I loose my SSL settings and DNS settings? Planning to update Ubuntu OS to 22 and PHP to version 8.1

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.

Site Moderator
Site Moderator badge
January 31, 2024
Accepted Answer

Heya, @ivcfadmin

The DNS settings will not be changed/lost if you destroy your droplet. You will just need to update the DNS later on when you configure a new droplet.

The SSL Certificate will need to be installed/configured again on the new droplet.

As with almost any upgrade between major releases of an operating system, this process carries an inherent risk of failure, data loss, or broken software configuration. Comprehensive backups and extensive testing are strongly advised.

To avoid these problems, we recommend migrating to a fresh Ubuntu 22.04 server rather than upgrading in-place. You may still need to review differences in software configuration when upgrading, but the core system will likely have greater stability. You can follow our series on how to migrate to a new Linux server to learn how to migrate between servers.

You can still upgrade the current version of Ubuntu if this is the desired approach by following the steps in this article:

Hope that this helps!

As @alexdo said “he SSL Certificate will need to be installed/configured again on the new droplet.” when you configured SSL first it generates HASH maybe SHA-256 or SHA-224 etc… HASH encrypt, these Hashes are also called SHA-2 when you install SSL of a machine or droplet it will figure out which HASH support the Machine (mostly SHA-2) and encrypt it with something called Secret Key and initialization vector of which it can be decrypted at end to end (e.g. browser and the server). So destroying the droplet and using the Same SSL on another droplet will not work because the configuration is not the same you will need to install and configure again for it to work, or else browser will return an SSL error or “Site can’t be reached”. Nonetheless, DNS setting will not misplace, and it depends on where you store that settings.

If you need a faster SSL, just head to your DigitalOcean DNS section and configure automatically there using the domain name you want to use, so when you destroy and start a new droplet will not lost.

When you destroy a droplet (a virtual private server on DigitalOcean), you will lose all data and configurations associated with that droplet, including SSL settings and DNS settings. This means that if you have configured SSL certificates or custom DNS settings on that droplet, they will be lost when the droplet is destroyed.

Before destroying the droplet, make sure to back up any important data and configurations. Additionally, note that updating the Ubuntu OS to version 22 and PHP to version 8.1 may require you to reconfigure your SSL settings and DNS settings after setting up the new droplet.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel