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 123.45.67.89 , will i edit the /etc/hosts file into
127.0.0.1 localhost.localdomain localhost 127.0.1.1 test.xx.yy.tld test 123.45.67.89 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!
This question was answered by @ryanpq:
based on the information you provided your entry should look something like:
123.45.67.89 test.xx.yy test
TLD is short for Top Level Domain which refers to the last section of a domain name (.com, .net, .org, etc).
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.