Verifying DNS#
We have a www.patientping.internal domain name, but it’s only accessible within our VPC.
In other words, this command won’t produce a meaningful IP address locally:
dig www.patientping.internal +shortbut if you run that command from the patientping-web-v2 EC2 instance (that’s inside the VPC), you should be able to resolve the domain name!
ssh patientping
dig www.patientping.internal +short
# 10.0.10.50Example#
Verify that www.patientping.internal resolves from inside patientping-web-v2 over SSH.
- SSH into your app server:
ssh patientping- Install
dig(if not already installed):
sudo dnf install bind-utils- Run DNS lookup from the server:
dig www.patientping.internal +short- Confirm the command returns
10.0.10.50. - Exit the server:
exit