1

I'm running an ec2 instance. If I ping the instance based on its elastic IP I get a response. If I use my registered domain I can not access that elastic IP address anymore. In Route 53 (under the DNS Management) I have 1 hosted zone with 3 record sets:

  1. an A record set with my domain and the elastic ip address
  2. an automatically assigned AWS NS record
  3. an automatically assigned AWS SOA record

So, basically the only entry I added was the A (that corresponds to the name of my domain and the elastic IP address as a value. Not sure why it's not binding.

My ec2 instance has no firewall and for the time-being both (the inbound and the outbound) sections of my aws firewall are set to "all traffic".

when I use a domain validator I do not get anything back. It behaves as if the domain did not exist. The domain was created over a year ago (so this is not a new domain). I checked in the dash-board and as far as I can tell all the information (contact info, verification info) looks fine.

Furthermore, the "test-record" feature in the Route 53 does return the IP address on a "UDP" port.

What am I missing? Do I need anything else?

Edited enter image description here

enter image description here

Edited 2 I have deleted the 1 hosted zone and created a new: now it looks like this: enter image description here

4
  • 1
    What is the domain? Jun 29, 2018 at 23:21
  • Check this Jun 30, 2018 at 11:16
  • @DusanBajic , thank you for the link. The domain has been purchased on AWS.
    – Nactus
    Jul 1, 2018 at 5:00
  • 1
    @Nactus, still, follow the steps (you have configured the wrong name servers, it can be seen in your pictures) Jul 1, 2018 at 6:31

1 Answer 1

3

If you bought the Domain from other than AWS then you need to manually update its name server from their portal (godaddy,etc).

So this is how it goes in case of others:

create a Hosted Zone in Route53 which you already did

NS and SOA records will be auto-generated however, it's important to note that the auto-generated NS will NOT update the domain's NS automatically. You need to update it manually

Add A records as shown in image below Route54 config

Then go to your domain portal and change DNS, use auto-generated DNS from Route53

Changes will be refreshed as per your selected TTL but it usually updated in 5 mins

OR

If your Domain provider gives you the access to setup records in their portal then you can skip all the above steps and simply create A record there with your elasticIP to point your domain to ec2

EDIT

As you can see in picture nameservers mentioned on the top right corner of the image are different than your record NS, your NS records are wrong. It's better that you delete this hosted zone and create new Public Hosted Zone. You will get new NS after creating a Hosted Zone then just go to domain editing and update nameservers with the new one on domain.

10
  • We don't yet have enough information to know whether this is the solution. Jun 30, 2018 at 1:05
  • @Michael-sqlbot yes you are right but I used to miss the point of updating DNS record on domain provider website. So I thought this might be an issue
    – UsamaAmjad
    Jun 30, 2018 at 1:10
  • @ UsamaAmjad, thank you for taking the time to answer. Upvoted. My domain was purchased through AWS about a year ago. The domain is in good standing with AWS - according to their dashboard.
    – Nactus
    Jul 1, 2018 at 4:55
  • My setup is very similar (with the exception of the "www.<domain_name>.com". I figured for a simple "ping" test from the console - the www would be irrelevant. I can ping the elastic ip but the domain does not respond. I will edit my main post and share a screen capture with the records
    – Nactus
    Jul 1, 2018 at 5:02
  • @Nactus Your NS records are wrong, as you can see in picture name servers mentioned on the top right corner of the image are different than your record NS.
    – UsamaAmjad
    Jul 1, 2018 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.