当BIND设置好后,启动的时候总是报如下错误:
Jul 9 14:08:31 file named[32501]: the working directory is not writable
直接修改/etc/namedb目录的权限,在重启BIND之后权限还会恢复过来,问题依旧。在网上搜索之后,得到如下解决办法。
It is what’s called “programmer inflected useless warnings”.
The directory option is used for 2 things:
- The working directory for named
- The base directory for relative path references
For some reason named finds it worth mentioning that it can’t write anything in this directory since a few releases. Conventional setups have not written in the named base dir for decades, but all of a sudden it’s important to spit into logfiles.
If you really want this message to go away, you will need to change the directory option, like:
options {
// Paths
directory “/etc/namedb/letskeepthisdirwriteable”;
}
As a result all your relative path references need to be rewritten, like:
zone “.” {
type slave;
file “../slave/root.slave”;
masters {
192.5.5.241; // F.ROOT-SERVERS.NET.
};
notify no;
};
I found it better to just ignore this warning.