Configuring /etc/hosts v23
By default, TPA will add lines to /etc/hosts on the target instances
with the IP address and hostname(s) of every instance in the cluster, so
that they can use each other's names for communication within the
cluster (e.g., in primary_conninfo
for Postgres).
You can specify a list of extra_etc_hosts_lines
too:
If you don't want the default entries at all, you can specify the
complete list of etc_hosts_lines
for an instance instead, and only
those lines will be added to /etc/hosts:
If your /etc/hosts doesn't contain the default entries for instances in the cluster, you'll need to ensure the names can be resolved in some other way.