Generally on internet servers, the hosts file contain hosts name and IP addresses for network and name resolution purposes In any of the Bitnami documents, I could not find any instructions on editing and adding hosts name beyond the virtual hosts names.
In the Bitnami Wordpress Lightsail image, the following host information is available. The file also contains IP addresses and domain names of two of my virtual hosts.
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
127.0.0.1 ip-172-26-10-32 # bitnami-hosts-patch
In this hosts file, could I edit the first line as below:
127.0.0.1 localhost colombo
And then add the following:
172.26.10.32 localhost colombo
Is this ok to edit and add the above?
Then I believe I need to add the A record in the Lightsail DNS for colombo as below:
A colombo.myfirst-domain.com 126.96.36.199.
Is my above entry correct?
Do I also need to also specify the host name colombo with the second domain?
Thanks for help.