By longjia3713
Hi,friends. I need some help to set up a host name. I know this question have already be submit. but that steps can not solve my problem. i need a new way.
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!
First you have to create an A record for your domain and point it to the Droplet’s IP address. Let’s say your domain is server.example.com.
Edit the /etc/hostname file and change the hostname to server.example.com. One you have done that, reboot your server to use the new hostname. You can reboot the server by running the command:
reboot
Do you mean FQDN, because for the droplets the hostname is the name of the droplet?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.