OK, Doctor, thanks for your response.
I am running BIND, because I host a few domains (right now about 135). I've been doing this for a little while (since 1993).
I normally have a recipe on updating the configuration of Bind to support the definition of the domains which I am hosting, because the master and slave information are defined in the /etc/named.conf file (or in this case the chroo ted version being in /var/lib/named/etc/named.conf).
When I start the named service, I see the following:
- Code: Select all
[root@ns ~]# service named restart
Redirecting to /bin/systemctl restart named.service
Job for named.service failed. See 'systemctl status named.service' and 'journalctl -n' for details.
[root@ns ~]# systemctl status named.service
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled)
Active: failed (Result: exit-code) since Mon, 2013-12-09 07:48:17 EST; 1min 59s ago
Process: 2492 ExecStartPre=/usr/sbin/named-checkconf -t /var/lib/named -z /etc/named.conf (code=exited, status=1/FAILURE)
Process: 2471 ExecStartPre=/usr/sbin/setup-named-chroot.sh /var/lib/named on (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/named.service
Dec 09 07:48:17 ns.IT-Security-inc.com named-checkconf[2492]: /etc/named.conf:51: 'logging' redefined near 'logging'
Dec 09 07:48:17 ns.IT-Security-inc.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Dec 09 07:48:17 ns.IT-Security-inc.com systemd[1]: Unit named.service entered failed state
I have updated the /etc/named.conf file, but another version is put into the /var/lib/named/etc/named.conf, as follows:
- Code: Select all
[root@ns ~]# diff /etc/named.conf /var/lib/named/etc/named.conf
51,56c51,56
< //logging {
< // channel default_debug {
< // file "data/named.run";
< // severity dynamic;
< // };
< //};
---
> logging {
> channel default_debug {
> file "data/named.run";
> severity dynamic;
> };
> };
Attempting to update the chrooted version of named proceeds as follows:
- Code: Select all
[root@ns ~]# cp /etc/named.conf /var/lib/named/etc/named.conf
cp: overwrite â/var/lib/named/etc/named.confâ? y
cp: cannot create regular file â/var/lib/named/etc/named.confâ: Read-only file system
This is what I am trying to resolve. I can work through the updates, but how do I get the update over to the chrooted, read-only filesystem on Mageia?
Thank you.,