Bind error

12 posts / 0 new
Last post
#1 Tue, 03/05/2013 - 10:16
EFW

Bind error

Hi again,

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?

Thanks again.

Tue, 03/05/2013 - 11:16
andreychek

Howdy,

Could you post the contents of your " /var/named/viperstorm.net.hosts" file?

-Eric

Tue, 03/05/2013 - 11:35
EFW

Hi

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

Tue, 03/05/2013 - 12:10
tpnsolutions
tpnsolutions's picture

Hi,

The error you are seeing is because in your zone for "3qual.co.uk", it only lists "ns2.viperstorm.net" where as at the registrar level it also lists "ns1.viperstorm.net".

Add this NS record, and within a few hours it should correct itself.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Tue, 03/05/2013 - 14:12
EFW

Hi,

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.

Thanks

Tue, 03/05/2013 - 15:17
tpnsolutions
tpnsolutions's picture

Hi,

Yes, you can set it up on:

Virtualmin > System Settings > Server Templates > Default Settings > BIND DNS domain

See the attached screenshot.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 03/06/2013 - 10:04
EFW

hi again,

Perfect, got that part working nicely. I have got another small issue:

If I type www dot 3qual dot net into my browser, I get 403 error, but when I add the 's' to the h t t p, it works perfectly.

My main domain works perfectly. if I type w w w domain, it works, also, w w w s domain works too. Its the same for all my domains, that I have added.

Any ideas

Thanks

Kevin

Wed, 03/06/2013 - 15:50 (Reply to #7)
tpnsolutions
tpnsolutions's picture

Kevin,

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.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thu, 03/07/2013 - 10:06
EFW

Hi TP,

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?

Thanks again.

Kevin

Thu, 03/07/2013 - 13:25
tpnsolutions
tpnsolutions's picture

Kevin,

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.

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Thu, 03/07/2013 - 13:54
EFW

That is perfect. I've just tried that idea out and works nicely.

A big thankyou!

Ke v

Thu, 03/07/2013 - 14:04 (Reply to #11)
tpnsolutions
tpnsolutions's picture

Kevin,

Excellent :-)

Best Regards,
Peter Knowles
TPN Solutions

E: pknowles@tpnsolutions.com
P: 604-782-9342
W: http://www.tpnsolutions.com
Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Topic locked