Lightsail: Resolve private hostnames



There are multiple instances in our Lightsail account. They run Ubuntu 20.04 and their hostnames were set to backend (IP and database (IP


backend can reach database via ping but it cannot reach database via ping database.


Is there any way to configure AWS Lightsail to allow private hostname resolution?

We have tried:

  • mDNS. Not possible because Lightsail prohibits broadcasts & multicasts.
  • Route 53. We're not experts here but we tried to configure a private hosted zone. These zones need to be associated with a VPC but apparently we could only choose our default VPC which is different from the (invisible) Lightsail DNS.
  • /etc/hosts. This would be our fallback solution if we cannot find an easier-to-maintain way to use private hostnames.
2 Answers

I'll bring up this item as a feature request to our product team for future road map discussion.

answered 2 years ago

Okay, thanks! How would I hear about a solution?

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions