Question
When attempting to restart my DNS server, the following error is generated:
# /scripts/restartsrv named
(XID ycnkhh) The “named” service is not configured.
Answer
There are a few causes for this issue. First and most notably, the service may actually simply be disabled within the Service Manager. To ensure your DNS service is enabled:
- Login to WHM
- Navigate to the "Service Manager" interface.
- Locate the "DNS Server" section.
- If the Enabled field is unchecked, check it and click on "Save" at the bottom.
If the issue continues with the same error message, then the DNS server may have trouble starting up locally. Once verified that the service is enabled, we need to check that the resolvers configured do not utilize the local IP Address. This can be reviewed by running the below command over CLI:
# cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 1.1.1.1
The above code block showcases the first entry of the nameserver is the local IP Address. This setup is known to cause other complications aside from the DNS server starting up. This entry would either need to be removed or replaced with a different qualifying resolver.
For guidance on finding a new resolver to utilize, you may refer to the below article:
How to find the best DNS resolver and save it in WHM.