Skip to content

public_dns_name

0

does lightsail instances have a 'public_dns_name'?

cheers!

asked 7 years ago284 views
3 Answers
0
Accepted Answer

All ssh needs is a hostname that will resolve to the correct IP or an IP.

slogin ec2-user@<hostname> or slogin ec2-user@<ip address>

If the public IP of your instance is 12.34.56.78, then you should be able to log in with

slogin ec2-user@ec2-12-34-56-78.compute-1.amazonaws.com

If you set up a DNS entry for your static IP, you would just do...

slogini ec2-user@dnsentry.example.com

answered 7 years ago
EXPERT
reviewed a year ago
0

Yes.

ec2-<public ip with dash instead of period>.compute-1.amazonaws.com

Unless you have arranged for a PTR (reverse IP) dns entry to be setup (which you need if you're sending mail).

If you're not sending mail, then there's no real need for a PTR dns entry.

david

answered 7 years ago
EXPERT
reviewed a year ago
0

ec2-<public ip with dash instead of period>.compute-1.amazonaws.com

isn't working when trying to log into terminal via SSH!

the static-ip is working but not the public_dns_name.

I'm using a debian-instance!

Cheers!

Edited by: tendouser on Feb 8, 2019 4:33 PM

answered 7 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.