Question

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.

alexdo
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:

https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-22-04-jammy-jellyfish

Hope that this helps!

KFSys
Site Moderator
Site Moderator badge
January 29, 2024

Heya @ivcfadmin,

If you manage your DNS in your DigitalOcean account or in any other place you will keep your DNS settings.

As for the SSL, yes, the certificate and any configuration on your Droplet will be lost but you can re-create them afterwards.

Anyway, if you currently have Ubuntu and you just want to update from 18.04 to 22.04 or from 20.04 to 22.04 there is no need to destroy the Droplet and re-create it. You can just update your OS. To do so just run

sudo apt update && sudo apt upgrade -y

Once that finishes, reboot your Droplet

reboot

Once it boots again run the upgrade for your System:

sudo do-release-upgrade

Lastly, before doing that I’ll recommend you to create a Snapshot on your Droplet just to be on the safe side:

Snapshots are on-demand disk images of DigitalOcean Droplets and volumes saved to your account. Use them to create new Droplets and volumes with the same contents.

https://docs.digitalocean.com/products/images/snapshots/

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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.