I setup my main vps server as the dns master and my second vps as the slave. The slave picks up my main domain with no problem. But when I try to add a second domain, I get this error:
Re-starting DNS server …
… failed : Failed to start BIND : Starting named: Error in named configuration: zone localhost.localdomain/IN: loaded serial 0 zone localhost/IN: loaded serial 0 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0 zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0 zone 0.in-addr.arpa/IN: loaded serial 0 /var/named/viperstorm.net.hosts:1: no TTL specified; using SOA MINTTL instead zone viperstorm.net/IN: loaded serial 2008033021 zone 3qual.com/IN: has no NS records zone 3qual.com/IN: not loaded due to errors. _default/3qual.com/IN: bad zone [FAILED]
Any idea what could have caused that error or how to fix it?
I’ve got it working, I forgot to add a ‘cluster server for the slave’. After adding that, it seems to be working. But when I check with intodns I get 1 small error:
ERROR: One or more of the nameservers listed at the parent servers are not listed as NS records at your nameservers. The problem NS records are:
Also, it says there is no glue
Do you still need me to post my viperstorm.net.hosts file? I second domain I added was 3qual.co.uk
Thanks for the reply. I’ve manually added ns1.* to the zone and appears to fix the problem. Is there anyway to fix this, so it happens automatically or do I have to add the zone for each domain I add? is that a bug? or have I made a booboo somewhere?
Also, I am seeing ‘no glue’. So I added another .com domain and I’m not getting any ‘no glue’ errors. So I’m guessing its a co.uk thing, that I read about somewhere.
Upload a file called “index.html”, “index.htm” or “index.php” and let me know if you still see the 403 error. The odds are it’s simply because when you create a domain you don’t have one of those files inside the “public_html” directory by default.
Many thanks for your reply. I found it out that I got a 403 error, rather than the an empty page with the cgi folder, that I have seen before. Anyway, I have now uploaded a index page and working perfectly.
Is there anything I need tick or untick, to create an index page by default?
You could add a file to the “/etc/skel” directory, so for example to create a default “index.html” page for every domain, you’d create “/etc/public_html/index.html”.
*** often the “skel” directory is empty, so you’d need to create the directory “public_html” within the “skel” folder first, then upload the “index.html” inside the “public_html” folder. ***
When Virtualmin creates a new domain, it’d read the “/etc/skel” directory for any folders and/or files to be added to the “home directory” of the user.
If you run into any problems please feel free to post or email me.