HostOnNet Blog

Domain Name not resolving in Cpanel Server

In a cpanel dedicated server, client added a domain name. But it won’t resolve even after 24 Hours. So i checked the if the domain name resolved by the DNS server of the server.

root@godislove [/tmp]# nslookup
> server 72.36.203.186
Default server: 72.36.203.186
Address: 72.36.203.186#53
> theworldslargestbusinessfranchise.com
Server: 72.36.203.186
Address: 72.36.203.186#53

** server can’t find theworldslargestbusinessfranchise.com: NXDOMAIN
> exit

So i loged into the server and checked if name servers (BIND) is running. service named status shows it running. I checked if the domain resolve within the server, but it fails.

So checked if domain is added to httpd.conf file

Found the domain in httpd.conf pointing to IP 72.36.203.186 (IP of virtualhost) and the domain entry was not in /etc/named.conf file.

So i added a DNS Zone for this domain name with

root@server1 [/scripts]# ./adddns
Add Dns 1.0 …
Warning, this only adds dns to the local server …
If this server is not the dns master, this will not work
Enter ip? 72.36.203.186
Enter the new domain? theworldslargestbusinessfranchise.com
Setup theworldslargestbusinessfranchise.com OK

root@server1 [/scripts]# service named restart
Stopping named: [ OK ]
Starting named: [ OK ]
root@server1 [/scripts]#

Now the domain start working.

It seems there was some problem with DNS server at the time domain created in WHM, so it won’t get added to DNS server properly.


Posted in Cpanel Server. Bookmark the permalink.