Evertyhing indicates that bind sec. dns is working but it is not!
Hi all,
I had this strange and quite stressy situation today. I change something in the config of the NS1 (primary nameserver) and because of that BIND9 went down. Seemed that, unfortunately, the sec. NS, NS2, did not took over. When I first did /etc/init.d/bind9 reload I got this error: Code:
Stopping named: rndc: connection to remote host closed Anyway, to test the NS1, on my local computer I set up the NS1 as primary and only nameserver. This works fine to test NSs. This way I can surf the internet and ping the domains that are on the nameserver. Now when I do the same with my NS2 I can't do nothing. Cannot ping to anything, surf of course works neither. But from my server ifself, NS2, I can ping everything. Every NSlookup is done via an external nameserver thus logical. Furthermore everything looks normal on the NS2. No errors, I can change, add, delete, apply, restart, reload without any problem. I was thinking it had something to do with the rndc key (signing) maybe... Thanks in advance! |
Quote:
Are you sure that your box can access NS2? Or NS2 is not configured to deny recursion. Without config files we can only speculate Quote:
Regards |
3 Attachment(s)
Quote:
Quote:
In the attachment I added named.conf, named.conf.local and another file. If you need anything else, let me know! Thanks |
Quote:
Anyway the only suspicious thing I've found is Quote:
Code:
listen-on { any; }; Re: the rndc command, there is no rndc-key in any of the files you've attached, nor an include statement to a file containing the rndc-key |
Quote:
I will change that. There is a rndc.key file, should I mention the location somewhere? Thx |
|
Quote:
Next I initiated a sync between the NS1 and NS2 and the updates where fetched from the NS1. So the communication between those is okay. Unfortunately when I do a reload I get this error again: Code:
Andrea58:/etc# rndc reload Code:
Andrea58:/etc# /etc/init.d/bind9 restart For the moment it is still the problem when I choose the NS2 as my nameserver in windows it cannot resolve anything, not even the domains hosted on the server. I saw that the time is not the same on both the servers. Could that be a reason? Of course I cannot just manually adjust the time on both servers at the very same time. How should it be done? Code:
10-Sep-2010 15:19:36.871 zone mitsubishiservice.be/IN: refresh: could not set file modification time of '/etc/bind/mitsubishiservice.be.hosts': permission denied |
Quote:
Code:
/usr/sbin/ntpdate -s be.pool.ntp.org The good news are that now I can resolve your domains using NS2, so I guess you somehow fixed it. I guess it was the IPv6 only protocol. Regards |
Thanks for your help! Indeed I can now resolve domains that are on the server (but only domains on the servers, no others). This one is solved in other words. Thanks again
|
Quote:
And since your main problem is answered, you can mark the thread "Solved" Regards |
All times are GMT -5. The time now is 03:10 AM. |