Example /etc/hosts file

/etc/hosts localhost.localdomain localhost reinhardt.tendenci.net reinhardt

If you have IPv6 enabled on your Linode, you may also want to add an entry for your IPv6 address, as shown in this example, assuming your hostname is "reinhardt" and your FQDN is "reinhardt.tendenci.net" then it would look like:

/etc/hosts localhost.localdomain localhost reinhardt.tenenci.net reinhardt
 2600:3c01::a123:b456:c789:d012 reinhardt.tendenci.net reinhardt

Note the IPv4 record is the "A" record for IPv4 DNS. For IPv6 use "AAAA" for the equivalent record. And of course make sure your provider supports IPv6 routing, but if they are assigning the address in the cloud like AWS or Linode, it's safe to say they probably. Just test it.

From: https://www.linode.com/docs/getting-started