I'm trying to host a static website in s3. I have a domain registered with namecheap, and it is pointing at route53 nameservers. This part seems to be working correctly based on dig
:
dig getgargoyle.com
; <<>> DiG 9.10.6 <<>> getgargoyle.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47011
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;getgargoyle.com. IN A
;; AUTHORITY SECTION:
getgargoyle.com. 900 IN SOA ns-1814.awsdns-34.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
;; Query time: 16 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Sat Oct 28 14:21:37 EDT 2023
;; MSG SIZE rcvd: 128
From that, it seems like it is using the correct nameserver. But when I try to nslookup the domain, I get nothing:
nslookup getgargoyle.com
Server: 1.1.1.1
Address: 1.1.1.1#53
Non-authoritative answer:
*** Can't find getgargoyle.com: No answer
I get the same problem even when I point nslookup at one of the route53 nameservers:
nslookup getgargoyle.com ns-1814.awsdns-34.co.uk
Server: ns-1814.awsdns-34.co.uk
Address: 205.251.199.22#53
*** Can't find getgargoyle.com: No answer
I have the A record created in route53 pointing to the s3 bucket. For example here is the relevant output of aws route53 list-resource-record-sets
:
{
"Name": "getgargoyle.com.",
"Type": "A",
"AliasTarget": {
"HostedZoneId": "Z3AQBSTGFYJSTF",
"DNSName": "getgargoyle.com.s3-website-us-east-1.amazonaws.com.",
"EvaluateTargetHealth": false
}
}
I am able to navigate to the site using the s3 domain (which is the value of the A record). What am I missing here?
Here is the namecheap name server config for the domain
Here is the route53 hosted zone details showing the nameservers