我知道绑定有一个选项来更改默认的configuration位置,并可以在/ etc / default / bind9中应用。
# run resolvconf? RESOLVCONF=no # startup options for the server OPTIONS="-f -4 -u bind -c /etc/newDir/named.conf"
我改变了默认的named.conf文件的名字,以显示它仍然尝试加载默认的configuration文件:
Oct 06 12:24:09 ubuntu named[2129]: loading configuration from '/etc/bind/named.conf' Oct 06 12:24:09 ubuntu named[2129]: open: /etc/bind/named.conf: file not found Oct 06 12:24:09 ubuntu named[2129]: loading configuration: file not found Oct 06 12:24:09 ubuntu named[2129]: exiting (due to fatal error)
但是,当我重新启动绑定,新的configuration位置不加载,原始文件被使用。 有没有更好的方法来设置位置? 难道我做错了什么?
谢谢!