How to change your hostname on Debian server
somestupidhostname change to: somesmarthostname To verify the change: Or you can do it via set-hostname: To apply the change immediately:
very very slowly
somestupidhostname change to: somesmarthostname To verify the change: Or you can do it via set-hostname: To apply the change immediately:
Edit config: Usual default config: Change to: 1.1.1.1 & 8.8.8.8 are Cloudflare and Google’s free public DNS servers, you can add your own dns server beside these. Restart network service for changes to take effect:
These are tested on Ubuntu 20.04 but probably work on other Debian distributions Full update (no questions, yes to all) Removes packages that are no longer needed: