WHM error setting up DNS cluster for cPanel
On my web server I am getting an error for the DNS cluster going to my DNS only server:
Could not communicate with remote API server. for both IP address that are assigned.
The DNS Only server is being hosted by Digital Ocean and my Web server is a standalone in a data center NAP.
On the DNS only server is showing the following: Status
l | 11.126.0.16 in the green. |
-
Running ping command from web server to dns server give's the following: 4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 19.236/19.473/20.095/0.359 ms0 -
Next ran the following from the web server: nc -vz example.com 2087
2087 port [tcp/*] succeeded!
0 -
Also ran the following: root@phx01-wb01:/home/example# curl -k \
"https://sfo3-01-dns01.example.com:2087/json-api/listzones?api.version=1" \
--user root:"API Token"
{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}
root@phx01-wb01:/home/example#0 -
Hey hey! Everything is likely find and you're running into this issue - https://support.cpanel.net/hc/en-us/articles/4407791143191-DNS-cluster-connection-error-Could-not-communicate-with-remote-API-server
0 -
Then How do I make sure that it is working?
0 -
The easiest way to tell is to update a zone file and ensure that record syncs across the cluster. If it does, you can safely ignore that warning.
0 -
where would I see it on the dns server?
0 -
You'd see the zone updates in the zone file itself. You could also check with dig directed to a specific nameserver:
dig yourfaketestingsubdomain.domain.com @ns1.nameserver-you're-testing.com
0 -
does this mean it is working?
root@phx01-wb01:/home/example# dig testdns.example.com @ns3.example.net
; <<>> DiG 9.18.30-0ubuntu0.22.04.2-Ubuntu <<>> testdns.example.com @ns3.example.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 189
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;testdns.example.com. IN A;; ANSWER SECTION:
testdns.example.com. 14400 IN A 66.85.169.74;; Query time: 20 msec
;; SERVER: 134.199.186.187#53(ns3.example.net) (UDP)
;; WHEN: Tue May 13 12:49:01 MST 2025
;; MSG SIZE rcvd: 76root@phx01-wb01:/home/example#
0 -
If that's the record you added then yes, it's returning the IP from the remote system so it seems to be working well.
0 -
Thank you very much. Now things can run a little bit smother. What do you recommend for me to learn about this situation and more about whm/cpanel. thank you for your help.
0 -
It's always tough to make a recommendation on what to learn, since most people just don't learn things for no reason.
I would say to read our documentation (https://docs.cpanel.net/) as things come up that you need to do, and feel free to ask questions anytime. You could also join our Discord if you'd like to chat with other cPanel users.
0
Please sign in to leave a comment.
Comments
12 comments