-2

I see a lot of people using IP addresses like,

ec2-54.208.90.77.compute-1.amazonaws.com

Just for reference, that's my actual instance IP address.

However, when I try I get,

$ nslookup ec2-54.208.90.77.compute-1.amazonaws.com
Server:     127.0.1.1
Address:    127.0.1.1#53

** server can't find ec2-54.208.90.77.compute-1.amazonaws.com: NXDOMAIN

54.208.90.77 is the actual EIP of my amazon instance. Why doesn't this work for me?

There are quite a few place that suggest this should work.

Evan Carroll
  • 2,373
  • 10
  • 34
  • 53

1 Answers1

7

It should be:

ec2-54-208-90-77.compute-1.amazonaws.com

...which resolves correctly.

Additionally, that record is not a CNAME. It's an A record.

~  dig ec2-54-208-90-77.compute-1.amazonaws.com

; <<>> DiG 9.8.3-P1 <<>> ec2-54-208-90-77.compute-1.amazonaws.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65412
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ec2-54-208-90-77.compute-1.amazonaws.com. IN A

;; ANSWER SECTION:
ec2-54-208-90-77.compute-1.amazonaws.com. 21599 IN A 54.208.90.77

;; Query time: 53 msec
;; SERVER: 192.168.3.1#53(192.168.3.1)
;; WHEN: Mon Apr  7 13:18:57 2014
;; MSG SIZE  rcvd: 74
EEAA
  • 109,363
  • 18
  • 175
  • 245