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?
 
omarfaridConnect With a Mentor Commented:
what user you use to start dns server and who owns the zones files ans what permissions on those files?
0
 
juanolleConnect With a Mentor Commented:
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
 
ibu1Commented:
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
All Courses

From novice to tech pro — start learning today.