Example /etc/hosts file

/etc/hosts

 127.0.0.1 localhost.localdomain localhost
 203.0.113.10 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

 127.0.0.1 localhost.localdomain localhost
 203.0.113.10 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