Please follow the below template, it will help us to help you!
Expected Behaviour:
Should be whitelisting.
Actual Behaviour:
Not whitelisting. Tried via web UI, still blocks, tried via ssh after removing from web UI whitelist and adding via ssh, still blocks. g.api.mega.co.nz is the issue. It allows AAAA but not A.
Can you in one terminal window run pihole -t to tail the log live and in a second trigger the access attempt to see if it is something pihole is blocking?
as it is port 443 there might be some black magic occuring but im a little perplexed at this moment.