WHM using wrong named.conf file.

Necroist

Active Member
Jul 21, 2004
31
0
156
Hi, WHM has been acting weird.

How can I make WHM use /etc/namedb/named.conf instead of /etc/named.conf?

Right now, WHM writes all zones to /etc/named.conf, but restarts bind at /etc/namedb/named.conf

Because of that I'm having alot of problems, does anyone have a solution for this problem?
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Wouldn't it be easier to change where it restarts bind?
 

sjackson909

Well-Known Member
Jun 8, 2004
113
0
166
Columbus, OH
mv /etc/named.conf /etc/named.conf.old
ln -s /etc/namedb/named.conf /etc/named.conf

That will fix it. I would really just change it where named starts like casey said :)
 

sjackson909

Well-Known Member
Jun 8, 2004
113
0
166
Columbus, OH
When you server boots up init will run a script that will start named. I'm guess your running linux so I think it would be in your /etc/init.d/ dir. I'm BSD guy so in FB its just in your /etc/rc.conf file.
 

Necroist

Active Member
Jul 21, 2004
31
0
156
GOSH!

Thanks! I've been trying to find out how to do that, thanks!

Works perfectly, now whenever I restart bind, it uses /etc/named.conf instead of /etc/namedb/named.conf.

Unfortunately, I'm still having problems with the DNS. So I've deleted one of my accounts (markngan.net), checked the named.conf and I don't find any traces of it.

Then I restarted bind, flushed my dns on my PC and I'm still able to see (markngan.net) pointing to my server and its loading the site of the last client account that was created in WHM.

Again, thanks alot with the rc.conf. I think you guys might had saved me from reformating.

P/S: I realised that if I type in my ip address in my browser's URL address bar, I don't get pointed to /home/www (my DocumentRoot in Apache) but instead the last created acct.

So I guess there's another new problem now :(
 
Last edited:

bamasbest

Well-Known Member
Jan 10, 2004
531
0
166
Accessing accounts via IP address when they are shared, will normally result with the first entry in httpd.conf being served up for that IP. Just an http 1.1 issue, but you can be thankful that multiple accounts can use a shared IP addy as opposed to having to pay for a dedicated IP for every account.

If you need to see your account online, you could access via http://your.host.com/~username/ if you allow the tilde option.
 

sjackson909

Well-Known Member
Jun 8, 2004
113
0
166
Columbus, OH
Yes, but it sounds like you have a shared IP on your server. So it doesn't know which one to pull up.

Necroist said:
But shouldn't apache serve up the specified in the httpd.conf?
Like bamasbest said. apache should pull up the first documentroot in the httpd.conf.