Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
[root@linux Documents]# ls -al /var/named/chroot/etc
drwxr-x---. 4 named named 4096 Apr 6 01:22 .
drwxr-x---. 6 root named 4096 Dec 11 11:07 ..
-rw-r--r--. 1 root root 380 Nov 2 19:08 localtime
drwxr-x---. 2 named named 4096 Dec 11 11:07 named
-rwxr-xr-x. 1 named named 549 Apr 5 15:37 named.conf
-rwxr-xr-x. 1 root root 551 Apr 5 15:37 named.conf~
-rwxr--r--. 1 named named 2544 Dec 11 11:08 named.iscdlv.key
-rwxr-----. 1 named named 931 Jun 21 2007 named.rfc1912.zones
-rwxr--r--. 1 named named 487 Dec 11 11:08 named.root.key
drwxr-xr-x. 3 named named 4096 Mar 20 21:13 pki
-rwxr--r--. 1 named named 479 Apr 6 01:22 rndc.conf
-rwxr--r--. 1 root root 479 Apr 6 01:22 rndc.conf~
-rwxr-----. 1 named named 141 Mar 20 22:27 rndc.key
[root@linux Documents]# named-checkconf -z
none:0: open: /etc/named.conf: file not found
Thnaks, but at this time another error message comes.
[root@linux Documents]# named -d 5 -g
06-Apr-2012 10:07:04.176 could not open file '/var/run/named/named.pid': Permission denied
06-Apr-2012 10:07:04.176 unlink '/var/run/named/named.pid': failed
06-Apr-2012 10:07:04.176 generating session key for dynamic DNS
06-Apr-2012 10:07:04.176 could not open file '/var/run/named/session.key': Permission denied
06-Apr-2012 10:07:04.176 could not create /var/run/named/session.key
06-Apr-2012 10:07:04.176 failed to generate session key for dynamic DNS: permission denied
[root@linux named]# named -u named -g
06-Apr-2012 16:40:23.666 automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
06-Apr-2012 16:40:23.668 command channel listening on 127.0.0.1#953
06-Apr-2012 16:40:23.668 ignoring config file logging statement due to -g option
06-Apr-2012 16:40:23.669 zone 0.168.192.in-addr.arpa/IN: loaded serial 53
06-Apr-2012 16:40:23.670 zone myserver.org/IN: loading from master file myserver.zone failed: file not found
06-Apr-2012 16:40:23.670 zone myserver.org/IN: not loaded due to errors.
06-Apr-2012 16:40:23.670 managed-keys-zone ./IN: loading from master file dynamic/managed-keys.bind failed: file not found
Why are you using the command above to start named? You should use either "service named start", or "/etc/init.d/named start", so it takes care of the chroot environment.
If you insist using the command above add "-t /var/named/chroot" as already said
Also you need to check /etc/sysconfig/named if the chroot directory is defined in the ROOTDIR option
"service named start -t /var/named/chroot" has ok, but still could not browse at firefox.
Told you that if your have setup correctly the chroot environment "service named start" is enough. Check /etc/sysconfig/named for ROOTDIR
If you're trying to access your webserver, you should use your local dns to test (see next comment)