named.conf question
Hello everyone!
I would like to do what my teacher at School did to configure a DNS server. He did it in fedora 11 and so do I. I already made the zone files as he did in /var/named/chroot/var/named/ but when i tried to add the zones to named.conf in /var/named/chroot/etc/ there was an error because there isnt such a file in that folder. I read tutorials and everywhere is said that the named.conf file is located in /etc/ I have the next class in 2 weeks and I would like to know why is that. Could you explain me? Thanks! |
This may be complete rubbish, but from memory, when you install bind-chroot it moves /etc/named.conf to /var/named/chroot/etc/named.conf and then puts a symlink in its place... or maybe that was a manual step ...
good luck |
Thanks for your answer!
I installed bind-chroot before doing the zone files but there wasnt such directory! Whats the diference between them? What could happen if I modify the /etc/named.conf instead of /var/named/chroot/etc/named.conf ? Or What could happen if I move them manually? |
Quote:
Quote:
Note: not having explained the problem that you are trying to solve, only how you are trying to solve it (using BIND chrooted) it is impossible to explain to you easier and better ways of solving the problem, which may well exist. OTOH you may well not be interested. |
Thanks salasi,
I think I must read more about bind-chroot to understand better this thing. I do not have any problem. Sorry if I didnt say so, my question was about /../chroot/... I just wanted to do everything exactly as my teacher did. And the first thing I saw was wrong was the location of named.conf (he had it in /var/named/chroot/var/named/ and I didnt) I installed bind-chroot, bind-utils but the ../chroot/etc/named.conf still doesnt exist. I will continue with what I have in /etc/ Thanks! Edit: I found a possible answer thanks to your advice salasi. If someone in the future has the same problem, the answer is here http://www.linuxhomenetworking.com/w...uring_DNS#BIND "There can be confusion with the locations: Regular BIND installs its files in the normal locations, and the chroot BIND add-on RPM installs its own versions in their chroot locations. Unfortunately, the chroot versions of some of the files are empty. Before starting Fedora BIND, copy the configuration files to their chroot locations:........" |
Quote:
|
If I remember correctly, they changed the whole setup and didn't bother mentioning it. The reply to someone posting on RedHat bugzilla was the somewhat absurd, "No need, you've posted it here."
The files, if I remember correctly, now have to be copied from /usr/share/doc---wait, I think it's in the CentOS FAQ. (CentOS is based on the enterprise version of RH) http://wiki.centos.org/FAQ/CentOS5#h...00f7251f3bc496 See if the files are there. <rant> If documentation is considered software, this is the sort of thing that is almost unforgivable, especially in a distribution aimed at the enterprise, such as RedHat. When you make major changes, if it doesn't get into the release notes, put it there. Don't close it as not a bug.</rant> As you'll find in your studies, much of the work is simply because those who document these things are either lazy, sloppy, or simply incompetent. EDIT: I should add that in my experience, the folks documenting Fedora itself are very diligent, doing things like checking Fedora forums to see what is causing new users to have problems and making sure to get it into release notes, common problems, etc. They are very responsive to intelligent comments about what is missing. (As opposed to comments like, "How can you be so stupid as to leave this out?" :) Curmudgeonly yours, |
All times are GMT -5. The time now is 01:27 AM. |