DNS Only problem with DNS cluster
Hello,
I have installed Alma linux 9, on one server I have installed cPanel and on another DNS Only.
I have problem setting DNS Cluster. I have an error:
Cpanel::Exception::MissingParameter/(XID 3ggnkh) The required parameter “cluster_user” is not set.
at /usr/local/cpanel/Whostmgr/DNS/Cluster.pm line 81.
Whostmgr::DNS::Cluster::configure_provider("login", 1, "post_login", 66164217916691) called at /usr/local/cpanel/whostmgr/docroot/cgi/activate_remote_nameservers.cgi line 50
eval {...} called at /usr/local/cpanel/whostmgr/docroot/cgi/activate_remote_nameservers.cgi line 50
Under /var/named i have one zone dnstestvmware*.*db
Best regards,
Elizabeta
-
Hello,
I have tried again setting DNS cluster, and there is error
Failed to setup DNS CLuster for module "cPanel"0 -
Hey hey! I'm not finding anything on my end about the "cluster_user" error you mentioned. Is there more information in the main cPanel log at /usr/local/cpanel/logs/error_log?
0 -
Hello,
Thank you for your answer. Now, DNS Cluster is configured, cPanel is in synchronize mode, DNS Only in standalone mode.
I have a few questions:
When I generate API Token do I have to save it on a DNS Only server or just copy it and put in DNS Cluster configuration?
When I go to my cPanel logs /usr/local/cpanel/logs/api_tokens_log
[2024-06-07 09:43:15 +0200] info [whostmgrd] Host: ['212.*.*.*'] HTTP Status: ['200'], User: ['root'], Token Name: ['reverse_trust_b1f594e4-7b6e-4733-bbfb-d611fb0ad9a8'], Request: ['GET /scripts2/showversion? HTTP/1.1']
[2024-06-07 09:43:22 +0200] info [whostmgrd] Host: ['212.*.*.*'] HTTP Status: ['200'], User: ['root'], Token Name: ['reverse_trust_b1f594e4-7b6e-4733-bbfb-d611fb0ad9a8'], Request: ['GET /json-api/gethostname? HTTP/1.1']
I do not see my Token Name , but on DNS Only server in /usr/local/cpanel/logs/api_tokens_log
[2024-06-07 09:43:14 +0200] info [whostmgrd] Host: ['212.39.111.60'] HTTP Status: ['200'], User: ['root'], Token Name: ['clusteralma'], Request: ['GET /json-api/version? HTTP/1.1']
[2024-06-07 09:43:14 +0200] info [whostmgrd] Host: ['212.39.111.60'] HTTP Status: ['200'], User: ['root'],
There I see Token Name clusteralma
Is this correct configuraton of DNS Cluster?I read this documentation link https://docs.cpanel.net/knowledge-base/dnsonly/guide-to-dns-cluster-configurations
"Add trusted IP addresses
The /etc/ips.dnsmaster file contains your DNS cluster’s list of trusted nameserver IP addresses. By default, this file lists the nameservers’ main IP addresses in your cluster as trusted IP addresses."
Is the this file necessary /etc/ips.dnsmaster for the dns cluster?
Best regards,
Elizabeta0 -
That all looks correct. You should never need to manually edit the ips.dnsmaster file as that could hurt the cluster configuration.
0 -
Hello,
Than you!
BR0
Please sign in to leave a comment.
Comments
5 comments