Cloudflare Unable to Fetch DNS Records from New WHM/cPanel Server
Hello,
I have recently set up a new WHM/cPanel server, and I am facing a DNS resolution issue with all domains hosted on it.
Whenever I try to add any domain from this server to Cloudflare, the DNS records fail to fetch automatically. It only pulls A records (sometimes not even that), and all other DNS records (like MX, TXT, CNAME) are missing.
Here’s what I’ve tried so far:
-
I’ve confirmed that BIND (named) is running properly.
-
All domains and their zones are correctly configured in
/etc/named.conf. -
I have already added all Cloudflare IP ranges (both IPv4 and IPv6) to CSF’s allow list.
-
Outgoing connections from the server are working fine.
-
Recursion is currently set to
noin BIND, but even after temporarily enabling it, Cloudflare still fails to fetch the full DNS records.
This seems to be a recursive DNS or zone-transfer issue, but I’m unable to figure out the exact cause.
Has anyone faced a similar issue? What else can I check or configure to allow Cloudflare to fetch complete DNS records?
Any help would be appreciated.
Thanks in advance.
-
Hey there! Do you get a specific error message from Cloudflare about where the connection fails? If DNS is working normally elsewhere (a manual "dig MX domain.com @1.2.3.4" would be a simple test to confirm the zones are serving properly) then the issue has to be with that connection.
One thing you could try would be completely disabling CSF while you performed your test, just to ensure there isn't a firewall issue happening.
0 -
Thanks for your response. I’ve noticed that everything works fine when CSF is disabled, but as soon as I enable it, things stop working. I’ve already allowed all Cloudflare IPs and ranges, but it still doesn’t work.
0 -
At least that confirms it is a firewall issue of some sort and not an issue with any cPanel tools.
0
Please sign in to leave a comment.
Comments
3 comments