Report this

What is the reason for this report?

What is fqdn?

Posted on July 6, 2013

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!

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.

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.

thanks it worked !!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.