DNS in redhat enterprise linux

Dear Sir/Madam:

I have redhat enterprise linux (rhel5 ) this is my production server i configured the name server but i have created two separate files for the forward zone and reverse lookup without edting the localhost.zone and named.local and also added the following entries in the /etc/ named.rfc1912.zones

zone "." IN {
        type hint;
        file "named.ca";
};

zone "localdomain" IN {
        type master;
        file "localdomain.zone";
        allow-update { none; };
};

zone "localhost" IN {
        type master;
        file "localhost.zone";
        allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};

zone "scbpo.com" IN {
      type master;
      file "scbpo.com";
      allow-update { none; };
};
};
zone "1.168.192.in-addr.arpa" IN {
      type master;
      file "1.168.192";
      allow-update { none; };
};


iam able to start the named service  but the /var/log/message gives the following message:

: zone 1.168.192.in-addr.arpa/IN/localhost_resolver: loading master file named.local: permission denied
Feb  9 21:48:06 parrot named[23430]: zone scbpo.com/IN/localhost_resolver: loading master file localhost.zone: permission denied
Feb  9 21:48:06 parrot named[23430]: running

i executed the following command

restorecon -R /var/named/chroot

output is
ied'
restorecon set context /var/named/chroot/proc/23454/wchan->system_u:object_r:named_conf_t:s0 failed:'Permission denied'
restorecon set context /var/named/chroot/proc/23454/schedstat->system_u:object_r:named_conf_t:s0 failed:'Permission denied'
restorecon set context /var/named/chroot/proc/23454/cpuset->system_u:object_r:named_conf_t:s0 failed:'Permission denied'
restorecon set context /var/named/chroot/proc/23454/oom_score->system_u:object_r:named_conf_t:s0 failed:'Permission denied'
restorecon set context /var/named/chroot/proc/23454/oom_adj->system_u:object_r:named_conf_t:s0 failed:'Permission denied'
restorecon set context /var/named/chroot/proc/23454/loginuid->system_u:object_r:named_conf_t:s0 failed:'Permission denied'
lstat(/var/named/chroot/proc/25223) failed: Permission denied
lstat(/var/named/chroot/proc/25244) failed: Permission denied


with all the above resolve is not  happening from the clients , please help me to solve this problem






D_wathiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
what user you use to start dns server and who owns the zones files ans what permissions on those files?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
juanolleCommented:
In RHEL usually named is running by user "named" (group "named"). So these files: named.local and localhost.zone should be readable for user "named" (or group "named").
0
ibu1System AdministratorCommented:
I had same problem before.The mail file here to look is
/etc/sysconfig/named

and u will get more detail from this link
http://www.experts-exchange.com/Networking/Linux_Networking/Q_22090110.html
http://kbase.redhat.com/faq/FAQ_45_10680.shtm
0
D_wathiAuthor Commented:
Thanks for the all , i changed the owner and the group to the named and set the permissions to the  644 now iam able load the forward and reverse zone successfully now the problem is resolve is not happening
i checked the syntax of the forward and reverse it is correct when i dig iam not getting the ANSWER SECTION

please help me where  iam going wrong following are files i have attached for your reference :
1.reverse zone file from /var/named/chroot/var/named
2.forwardzone file from the /var/named/chroot/var/named
3.named.conf file from the /var/named/chroot/etc







1.168.192.txt
scbpo.txt
named.txt
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.