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.
asked a month ago4 views
2 Answers
1
I'll bring up this item as a feature request to our product team for future road map discussion.
answered a month ago
Relevant questions
Lightsale instances cannot connect to Lightsail database
asked 5 months agoConnect Lightsail instance to AWS instance in a private subnet
asked 23 days agoRecognize BIND DNS and disregard Lightsail Networking
asked a year agoAny way to specify the private IP when creating an instance?
asked 2 years agoInstance network isolation?
asked 3 years agoAWS Lightsail - Accessing a mysql database in a different account?
asked a year agoDatabase access in lightsail aws account
asked a month agoLightsail: Resolve private hostnames
asked a month agoPoint Route 53 Domain to Lightsail Instance
asked 2 years agoHow to Stop someone from accessing the lightsail Instance.
asked 2 months ago