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.
preguntada hace 2 años384 visualizaciones
2 Respuestas

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

respondido hace 2 años

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

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas