I added an A record in my Route 53 hosted zone pointing to the CloudFront. But for some reason, it doesn't work.
When I do dig mywebsite.com
I get
; <<>> DiG 9.16.1-Ubuntu <<>> mywebsite.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42985
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;mywebsite.com. IN A
;; Query time: 71 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Пт окт 01 20:29:47 MSK 2021
;; MSG SIZE rcvd: 41
I just don't understand why my A record is empty here.
I added ns records to my domain registrator's panel.
; <<>> DiG 9.16.1-Ubuntu <<>> ns mywebsite.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2245
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;mywebsite.com. IN NS
;; ANSWER SECTION:
mywebsite.com. 2435 IN NS ns-1899.awsdns-45.co.uk.
mywebsite.com. 2435 IN NS ns-881.awsdns-46.net.
mywebsite.com. 2435 IN NS ns-494.awsdns-61.com.
mywebsite.com. 2435 IN NS ns-1077.awsdns-06.org.
;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Пт окт 01 20:34:00 MSK 2021
;; MSG SIZE rcvd: 181