I want to set my Fully Qualified Domain Name according to https://github.com/DigitalOcean-User-Projects/Articles-and-Tutorials/blob/master/set_hostname_fqdn_on_ubuntu_centos.md#setting-the-fully-qualified-domain-name-fqdn
I was confused by the statements : Modify your hosts file so that it resembles the following (obviously, substituting the hostname, yourdomain, tld, and YourIP values with your own):
127.0.0.1 localhost.localdomain localhost 127.0.1.1 hostname.yourdomain.tld hostname YourIP hostname.yourdomain.tld hostname
Now ,my hostname is test ,my domain is xx.yy , my vps ip is 126.96.36.199 , will i edit the /etc/hosts file into
127.0.0.1 localhost.localdomain localhost 127.0.1.1 test.xx.yy.tld test 188.8.131.52 test.xx.yy.tld test What does tld mean in the hostname.yourdomain.tld?Which value is it in my situation?
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!