Cpanel/WHM 11 DNS Resolve problem

Happy new year!

I took a few days off from writing since I started my own hosting (more on that later) and I’ve been busy.

Cpanel 11 on CentOS 5 (and 5.1) has DNS issues. Actually from what I’ve read the problems exist also on CentOS 4.something and Fedora. I was reading the posts from here.

The problem is that Cpanel is only concerned about the external view. Now, I’m talking Spanish, let me explain.

The new bind (named) server now has by default 3 views, localhost_resolver, internal and external.

View is actually a separate config. It means I want to have this config for the local box (localhost_resolver), this setup for my network (internal) and this for all other boxes (external).

Now, when you define a domain in Cpanel they add it only to internal and external views, but not to localhost_resolver

And if you’ve put the ip of the local box in your /etc/resolv.conf (as I have did) then you do not get anything about your local domains, DNS ain’t working!

It’s a big problem.

The last time I found a “solution” on the net that advised to remove the first two and leave only the external view. I did that and it worked great.

But then, I guess some auto update process kicked in and it overwrote my changes to named.conf

Whaaaat!

Then I figured it out… They actually do not want you to have localhost ip or the ip’s of your server box in the /etc/resolv.conf

They want you to put there the ip of your ISP. So I did just that and guess what? Everything works!

So I guess you should do the same and fix this issue :)

Leave a Reply