Instance / Attribute / public_dns_name
public_dns_name¶
- EC2.Instance.public_dns_name¶
(string) –
The public DNS name assigned to the instance. This name is not available until the instance enters the
running
state. This name is only available if you’ve enabled DNS hostnames for your VPC. The format of this name depends on the public hostname type.