Subject: | |
From: | |
Reply To: | |
Date: | Fri, 2 Sep 2011 20:14:27 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> Hi Guys,
>
> sl6, 64 bit
> bind
> bind-chroot
>
> I am trying to migrate my DNS (bind, named) over from Cent OS 5.6
> to SL 6. (Yes, I am a refugee who liked the SL community and decided
> to stay.) When I try starting /etc/rc.d/init.d/named, I get
>
> # service named start
> Starting named:
> Error in named configuration:
> none:0: open: /etc/named.conf: permission denied
>
Hi guys,
I "finally" got this figured out. In case it may help
someone else, here are my notes on the problem:
Thanks to everyone with the helpful tips and advice
that finally got me there!
-T
--- Bind.named.permission.denied.txt ---
Bind: start gives permission denied:
# service named start
Starting named:
Error in named configuration:
none:0: open: /etc/named.conf: permission denied
1) uninstall all "bind" RPMs: bind-chroot, bind-utils, bind-libs
The get a list of them:
rpm -qa \*named\*
2) move the old /var/named directory to something else
3) reinstall "named" and "bind-utils" but not "named-chroot"
4) migrate your stuff back. Make sure you get the ownership
correct: root.named
5) after verifying your stuff works, then install "bind-chroot"
Note on /etc/sysconfig/network-scripts/ifcfg-ethX:
If any of your Ethernet cards use "BOOTPROTO=dhcp", the "network"
daemon will overwrite your /etc/resolv.conf with DNS settings
it (the "network" daemon) gets from the DHCP server.
To work around this, I like to use the following settings:
PEERDNS=no
DNS1=127.0.0.1
And erase and recreate /etc/resolve.conf
#mv /etc/resolv.conf /etc/resolv.conf.000; touch /etc/resolv.conf
|
|
|