Introduction
If you find that you need to troubleshoot cPanel's DNS clustering, you may use the following steps to enable verbose debug logs for dnsadmin, which is our DNS clustering software.
Procedure
To enable verbose logging on your DNS Cluster members:
- Log in to the DNS Cluster member using WHM as the root user
- Navigate to: "Home / Clusters / DNS Cluster"
- Click on the "Pencil and form" icon under the "Actions" column for the cluster member that you would like to enable verbose logs for
- Put a check next to the "Debug mode" option and click "Submit" to commit your changes
- Repeat this process for each cluster member relationship you would like to audit.
These logs operate one-way, and it is often necessary to enable verbose logging on the cPanel hosting server as well:
- Access your cPanel hosting server using WHM as the root user.
- Navigate to "Home / Server Configuration / Tweak Settings" and open the "Logging" panel
- Raise the logging level to "9" (Verbose logging) and select "Save" to commit the changes
IMPORTANT: Debug mode generates a significantly larger amount of data as compared to normal dnsadmin logging. If you leave this mode on for any length of time, you should have disk usage monitoring in place on the server and check it regularly to be sure that the logs do not grow too quickly and consume too much disk space. On servers with extremely high DNS traffic, you should also pay attention to the %iowait and other disk I/O statistics closely to be sure that the additional I/O consumed by debug logs is not impacting the server in a negative way. You can learn more about what %iowait is with the following resource:
What is %IOWait in relation to the sar command and when should I be concerned?
Once debug mode has been enabled, you can tail the dns_admin log to see new log entries as they come in via SSH or Terminal as the root user:
tail -fn0 /usr/local/cpanel/logs/dnsadmin_log
If the problem is intermittent and you need to allow a significant time to pass, you may come back at a later time and view the log with the following command:
less /usr/local/cpanel/logs/dnsadmin_log
Comments
0 comments
Article is closed for comments.