Setting up custom dns for apex domain failed

Hi, I have done everything correctly as you mentioned. but still, the site is only accessible from www.nirzak.codes but not accessible from nirzak.codes. Here is, what I have done.
Set up www.nirzak.codes as my primary domain.
added CNAME record that points to nirzak.netlify.app
added A record for nirzak.codes that point to IP: 75.2.60.5 but it doesn’t work. Have also tried adding ANAME record that points to apex-loadbalancer.netlify.com
Can you guys please help why it’s not redirecting the site from nirzak.codes to www.nirzak.codes? N. B: netlify is showing netflify DNS for both domains.

Hi, update: It’s suddenly started working correctly.