Failed to start BIND
Starting named: /bin/chown: cannot access `/var/named/run-root/var/named': No such file or directory Error in named configuration: none:0: open: /etc/named.conf: file not found [FAILED]
i have that error after following this "tutorial" http://www.howtoforge.com/creating-y...apache-centos5 the server was already running for quite time now so i really have no idea what it has on it Actually i've problems with bind, i don't have much knowledge on how to install it. I;ve always use the name servers that provides the domain sellers... |
Are you trying to run Bind 'chrooted'? (Chrooting is more difficult to set up initially for the uninitiated, but is potentially more secure.)
One common problem with running chrooted is that all path are relative to the chroot directory and it is the files relative to this path that the permissions have to be correct. Have you tried running from the command line so you can see all of the error messages? And I'm not sure what you are trying to achieve - you want to run bind for apache but is this serving internal clients only or are you trying to create a web site for external clients (as well)? Hosting a web site for the outside world is not something to be taken lightly. |
well this is the output from console
[root@alpha etc]# service named start Starting named: /bin/chown: cannot access `/var/named/run-root/var/named': No such file or directory Error in named configuration: none:0: open: /etc/named.conf: file not found [FAILED] [root@alpha etc]# what we need to do is provide a name server to the client who has his domain. could be something like ns1.alpha.com the page is also hosted in the server. now i checked all i could and all the files i can look for are in the rigth place [root@alpha etc]# cd /var/named [root@alpha named]# ls chroot alpha.com.db localhost.zone named.ca named.local run-root data localdomain.zone named.broadcast named.ip6.local named.zero slaves [root@alpha named]# except for this [root@alpha var]# ls 212.146.220.in-addr.arpa localhost.rev make-localhost PROTO.localhost.rev f-in.com localhost.rev.saved_by_psa named.root run [root@alpha var]# pwd /var/named/run-root/var [root@alpha var]# |
Quote:
Just thought I'd throw that out there for anyone that wasn't aware. |
When BIND runs chroot'd it revokes it's privileges, so yes, chrooting BIND is more secure.
|
Quote:
|
Well if they gained root, they wouldn't have done it through BIND... the whole point of putting BIND in a chroot is that if someone manages to compromise BIND they won't get root.
|
Quote:
|
I'm slightly baffled why you would bring that up since it's irrelevant in this case.
|
Quote:
|
And I'm pointing out that in the case of BIND, which is what the OP is actually trying to chroot, it does make a difference, so don't discourage them from setting up their service securely. Maybe other services run as root inside their chroot, but BIND does not.
Any way, to the OP, have you tried Code:
# mkdir -p /var/named/run-root/var/named PS What OS are you setting this up on? Centos doesn't create a /var/named/run-root by default. |
Quote:
Okay, I'm done, let's move on now, sorry I brought up the information, I'll keep such info to myself now instead of maybe sharing info that some might benefit from knowing that chroot isn't a total fool proof way to secure a service or a machine. |
Quote:
the usual problems with a chrooted installation are:
|
Quote:
|
Quote:
ok i ran the command to create the dir mkdir -p /var/named/run-root/var/named and now i got this error Failed to start BIND : Starting named: Error in named configuration: none:0: open: /etc/named.conf: file not found [FAILED] but i have that file on that dir... so i have no clue what's happening. |
All times are GMT -5. The time now is 12:23 AM. |