Why can't I ssh using the hostname specified in my CNAME record? I can ssh in just fine when I use the hostname it points to. It's been more than 72 hours.
I've got a domain "mydomain.com", and it has a CNAME record for host "foo" that points to "ec2-xxx-yyy-zzz-aaa.compute-1.amazonaws.com". (I'm using EC2, obviously. Maybe it's relevant?) The CNAME record has been live for at least a week.
When I try
ssh -i my.key firstname.lastname@example.org
ssh: connect to host foo.mydomain.com port 22: Operation timed out
but when I try
ssh -i my.key email@example.com
I log in just fine.
Mind you, the behavior has changed. At first I was able to use foo.mydomain.com to ssh. But now I can't.
When I run nslookup on foo.mydomain.com, I get back:
foo.mydomain.com canonical name=ec2-xxx-yyy-zzz-aaa.compute-1.amazonaws.com.
and nslookup ec2-xxx-yyy-zzz-aaa.compute-1.amazonaws.com: