I'm new to Cloud servers and CentOS so bear with me :)

I'm running a CentOS 6 server on Rackspace Cloud. I've installed Virtualmin 3.89 (GPL version) and most of it seems to be configured and running ok.

When I add a new virtual server i get the following error:

Adding new DNS zone .... BIND DNS domain failed! : Failed to open /var/named/chroot/var/named/[my FQDN].hosts for writing : Bad file descriptor at /usr/libexec/webmin/web-lib-funcs.pl line 1360.

If I look for /var/named/chroot/var the path doesn't exist.

Now.. if I view /var/named/chroot/etc/named.conf it has this in it:

zone "[my FQDN]" {
    type master;
    file "/var/named/[my FQDN].hosts";
    allow-transfer {
            127.0.0.1;
            localnets;
            };
    };

So... it looks to me like the script that adds the hosts file is trying to add it in wrong place?

Any thoughts?

Further Info: Comment suggested that I might not have bind-chroot installed which I didn't! That is now installed. When I add a virtual server now, the 'Adding new DNS zone' message returns 'done' now the following files exist:

/var/named/benhutchings.com.hosts
/var/named/chroot/var/named/benhutchings.com.hosts

Both have same zone data in.

Virtualmin says that BIND is not started. When I try to start it via the interface the page just reloads. If I do /etc/init.d/named stop it get [ok] and then again if start it again I get [ok].

Bit lost :( Also... not sure why I got the -1 rep here, is it just because I'm a *nix beginner?

More info again: Here is a screenie of the Virtualmin interface showing unstarted BIND DNS Server: enter image description here

However... if I try and dig an external domain, I get results.

link|improve this question
Do you have the package 'bind-chroot' installed? – Zypher Feb 1 at 2:56
Hi Zypher, I've added more info now. Thanks, the module wasn't installed :) – Mere Development Feb 1 at 10:58
I'm not too familiar with virtualmin, does it have any sort of logging to see what is going on? Can you dig against your dns server? check /var/log/message for any information related to named. – Zypher Feb 1 at 17:06
Hi Zypher. I've had to put this project on hold. Thanks for your help though. I'll revisit next month when I have more time. Am I allowed to leave this message floating or will it be deleted/closed? – Mere Development Feb 6 at 10:37
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.