I am getting DNS_PROBE_FINISHED_NXDOMAIN while accessing my website though domain in laptop and ERR_NAME_NOT_FOUND error in mobile

0

I purchased a domain from a third-party registrar and deployed my website and app using Nginx on AWS ECS. Additionally, I set up an Application Load Balancer. I can access my website through the DNS name of the load balancer, but I'm encountering issues accessing it via my domain name.

I've configured the DNS nameservers with my domain registrar, and I've used an A record to redirect traffic to my load balancer. Despite these efforts, I'm still unable to access my website. When attempting to access it on my laptop, I receive a "DNS_PROBE_FINISHED_NXDOMAIN" error, and on my mobile device, I encounter an "ERR_NAME_NOT_FOUND" error.

I'm posting this question in the forum to seek assistance and guidance in resolving this issue.

3 Answers
0

Hello.

Is Route53 managing the domain you are accessing?
You can check the NS record for a domain by executing the following command.
Does this result match the Route53 NS record?
And while you're at it, check the A record.

dig Domain.com ns
dig Domain.com a

Incidentally, if you are managing outside of Route 53, you will need to register an alias with a CNAME record instead of an A record to register the DNS name of the ALB.

profile picture
EXPERT
answered 7 months ago
  • ; <<>> DiG 9.10.6 <<>> Domain.in ns ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 25736 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;Domain.in. IN NS

    ;; Query time: 6 msec ;; SERVER: fe80::b814:4dff:fe78782:ad64%11#53(fe80::b814:4dff:fe82:ad64%11) ;; WHEN: Fri Sep 22 19:33:34 IST 2023 ;; MSG SIZE rcvd: 41

    I've created a hosted zone in Amazon Route 53 and copied the nameservers provided by Route 53. Then, I went to GoDaddy, where I originally purchased my domain, and replaced their default nameservers with the ones from my Route 53 hosted zone. This action delegates the DNS resolution for my domain to Route 53. Despite this configuration, I'm encountering a 'SERVFAIL' issue when trying to access my website through the domain name. Any guidance on resolving this issue would be greatly appreciated.

  • The following document provides general troubleshooting instructions when a DNS SERVFAIL occurs with Route53. https://repost.aws/knowledge-center/route53-dns-servfail-response
    It may be related to the TTL of the NS record, etc. So it is conceivable that waiting a day or so may fix the problem.

0

You cant have an A record pointing to the ALB DNS Name assuming your not using Route 53

You will need to create a CNAME to point to your ALB DNS record for resolution to work

profile picture
EXPERT
answered 7 months ago
  • Thank you for your response. In my case, I am indeed using Amazon Route 53 as my DNS service. When you are using Route 53 and want to associate a domain with an AWS resource like an Application Load Balancer (ALB), it's recommended to use an 'Alias' record, not a CNAME.

    Alias records in Route 53 allow you to create a DNS alias to an AWS resource, including an ALB, and they automatically handle the resolution of the ALB's DNS name. This is important because ALBs do not have static IP addresses, and using an Alias record ensures that the DNS resolution is always up to date, even if the ALB's IP address changes.

    So, to clarify, when using Amazon Route 53 with an ALB, it's best to create an Alias record pointing to the ALB DNS name for accurate and dynamic resolution

  • Ok yes that’s correct for route 53. Please confirm your NS records are correct on your domain. The domain is public and your alias record for the domain is blank for the record name but pointing to your alb. Screenshots would help here without giving too much into away

0

If briefly, NXDOMAIN means that the authoritative nameserver didn't have a record of the specified domain name. This troubleshooting guide covers the most common scenarios with NXDOMAIN. A complete dig +trace output (as described in the guide) can help pinpoint the problem if you need further assistance.

AWS
Max
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions