By hypertextsol
I have created a droplet in centos x64 and provided a hostname as ns1 Now is ns1.mydomain.com is the fqdn?
when i type the command hostname -f in ssh it shows “unknown host”, then what is my fqdn?
Thanks for help in advance
Amit
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!
You can set your droplet’s FQDN by running the following commands: <br> <br>nano /etc/sysconfig/network <br> <br>Edit it so that it looks like this: <br> <br>HOSTNAME=“ns1.mydomain.com” <br> <br>Edit /etc/hosts and add a line that looks like this: <br> <br>127.0.0.1 ns1.mydomain.com ns1 <br> <br>If there’s a line with both “localhost” and “ns1”, delete “ns1” from that line. <br> <br>Finally, reboot your 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.