What is fqdn?

July 6, 2013 5.9k views
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
2 Answers
You can set your droplet's FQDN by running the following commands:

nano /etc/sysconfig/network

Edit it so that it looks like this:


Edit /etc/hosts and add a line that looks like this: ns1.mydomain.com ns1

If there's a line with both "localhost" and "ns1", delete "ns1" from that line.

Finally, reboot your droplet.
Have another answer? Share your knowledge.