Common Causes of DNS Resolution Failures on Your Server
When your server fails to resolve domain names, services relying on the internet may stop working. This is often due to incorrect nameserver settings or missing dependencies. Here’s how to diagnose and fix the issue.
1. Check If Your Server Is Missing Valid Nameservers
A missing or misconfigured /etc/resolv.conf
file can prevent DNS lookups. To verify, run the following command:
dig . NS
If this command times out, your server lacks valid nameservers. To fix it, edit /etc/resolv.conf
and add proper nameservers. For example:
nano /etc/resolv.conf
Add the following lines:
nameserver 8.8.8.8
nameserver 8.8.4.4
Save the file and restart the networking service:
systemctl restart networking
2. Ensure Your Server Has the Necessary Perl Modules
If your cPanel server is missing required Perl modules, scripts may fail. Run these commands to install missing modules:
/scripts/perlinstaller File::Copy::Recursive
/usr/local/cpanel/bin/checkperlmodules --bootstrap
/usr/local/cpanel/bin/checkperlmodules --full
3. Fix Version Conflicts Between cPanel 10.x and 11.x
If you’re running a mix of cPanel versions, stability issues may occur. To keep using cPanel 10.x, lock it in the stable release channel:
echo "CPANEL=stable" >> /etc/cpupdate.conf
/scripts/upcp --force
Need Expert Assistance? @CustomerPanel Can Help
If you’re still experiencing DNS resolution failures, reach out to UnderHost Support for professional troubleshooting. Our hosting solutions, including dedicated servers and cloud VPS, come with expert-managed services to ensure reliability.