Lightsail: Resolve private hostnames

0

Setup

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

Problem

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

Question

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개 답변
1

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

AWS
답변함 2년 전
0

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

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인