What is fqdn?

  • Posted July 6, 2013

I have created a droplet in centos x64 and provided a hostname as ns1 Now is 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



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

thanks it worked !!

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=“” <br> <br>Edit /etc/hosts and add a line that looks like this: <br> <br> ns1 <br> <br>If there’s a line with both “localhost” and “ns1”, delete “ns1” from that line. <br> <br>Finally, reboot your droplet.