DNS weirdness
OS: RH 7.2 Bind version: 9.2.0
I migrated a Qmail server from one box to another by installing RH 7.2 on some new hardware, installing Qmail, et. al., and copying over the /etc/passwd+shadow files, moving home directories, copying zone files, etc, basically all of what I believed to be the essential config files for various services. The old server was running RH6.2, and Bind 8.2. My problem is this: I went to make a hostname change in one of the zone files I copied over, and then assumed I would need to do this: /etc/rc.d/init.d/named reload but got this error: /etc/rc.d/init.d/named: /usr/sbin/ndc: No such file or directory Anyone have any idea on what's causing this, or what I can do to fix it? Also, it looks like named has about 6 processes of itself running simultaneously, is that normal behavior? |
Re: DNS weirdness
Quote:
I can't help on that specific file (since I'm not running bind on the Linux box I have on hand at this time) but the first place I'd start looking is the ``/etc/rc.d/init.d/named'' script. Find where it's referencing that file and you can usually figure out how it came to that section of the script. Did you really need to migrate your DNS along with qmail? Quote:
Hope this helps, Rick |
Follow up question
Rick,
It actually helps enormously, and points me in the right direction I think. In the /etc/rc.d/init.d/named script, its calling /usr/sbin/ndc, which doesn't exist on my system. I seem to remember that in Bind9.x, ndc is/was replaced by rndc. If I manually edit and change it to point to that executable, am I going to hose anything? This is now a production server, hence my fear. - John |
Re: Follow up question
Quote:
But, ouch! I just remembered that you're upgrading from Bind 8 to Bind 9. There were, if memory serves, some gotchas when I tried just copying the old V8 files and using them with V9. Can't remember just what the problem was. I spent some time with the Bind 9 docs I downloaded from Nominum before I got it up and running. (The version of the O'Rielly book that I had back then was outdated; it's been updated since which is good as I can no longer find the nice Bind manual on Nominum's site!!) That's why I was asking about whether you really needed to move the DNS to RH7.x just now. I'd leave the V8 DNS up and running until you get something working using V9 (set up a workstation where resolv.conf points to the V9 test setup). That way you wouldn't lose the ability to do name resolution while you're debugging the Bind 9 configuration. Good luck, Rick |
moved back to 8.2 - kinda?
Ok, so here's what I did: I copied /usr/sbin/named and /usr/sbin/ndc over to the new system, killed named and restarted it, and now it comes up just fine as 8.2 (bearing in mind that all the .conf and /var/named files were from the old system). It seems to be working just fine now, and is responding to command line arguments ok, and /var/log/messages is reporting it to be seemingly happy.
So, my final rambling question is: did I do the right thing? Can you really just copy over the binaries and config files like that from one system to another? I plan on upgrading to 9.2.x at some point, but security isn't a huge scare for me since this isn't a public DNS server but rather is behind a firewall. It only accepts queries from local hosts on my 10.x LAN. |
Re: moved back to 8.2 - kinda?
Quote:
As for it working, you pretty much demonstrated that it does, eh? If it wasn't going to work you would have found out almost immediately. Quote:
Have fun! Rick |
All times are GMT -5. The time now is 04:34 PM. |