Added ec2 instance dns support