Mr. Linner, I don't plan on changing from the Chroot Configuration. Yes I've been using vi. I did copy the rndc.key file to /var/named/chroot/etc/
And that is what makes it work initially in the chroot configuration, till I modify named.
[root@ns1 tech1]# cd /var/named/chroot/etc
[root@ns1 etc]# ls
named.conf rndc.key
[root@ns1 etc]#
this is what I did with the #finger named command:
[tech1@ns1 tech1]$ finger named
Login: named Name: Named
Directory: /var/named Shell: /sbin/nologin
Never logged in.
No mail.
No Plan.
[tech1@ns1 tech1]$ su
Password:
[root@ns1 tech1]# finger named
Login: named Name: Named
Directory: /var/named Shell: /sbin/nologin
Never logged in.
No mail.
No Plan.
[root@ns1 tech1]#
"also check if you have entry "rndc.key" in named.conf file"
the key with numbers and letters is not in the /etc/named.conf file, is that what you mean? the named.conf file that is in the /var/named/chroot/etc/ directory that the installation put there by default is blank, if I edit either named.conf file it still locks up and I can restart it using the GUI 10 times and it will not come back up.
the forward and reverse zone files are in the /var/named/chroot/var/named directory, here is output:
[root@ns1 etc]# cd /var/named/chroot/var/named
[root@ns1 named]# ls
localhost.zone named.ca named.local tech-magic.forward tech-magic.rev
[root@ns1 named]#
this is /etc/sysconfig/named
# Currently, you can use the following options:
# ROOTDIR="/some/where" -- will run named in a chroot environment.
# you must set up the chroot environment before
# doing this.
# OPTIONS="whatever" -- These additional options will be passed to named
# at startup. Don't add -t here, use ROOTDIR instead.
ROOTDIR=/var/named/chroot
~
it looks right to me...
[root@ns1 root]# service named restart
bash: service: command not found
[root@ns1 root]#
Should I vi into the /etc/named.conf and paste all that text into /var/named/chroot/etc/named.conf Anyway???
To: Pete M,
I have been easily able to reconfigure the resolv.conf & hosts files and be able to
http://www.tech-magic.net , even
http://tech-magic.net , only on local machines even while bind is not running, But nada from the internet. Yes I do need this to be my Authoritive DNS server for my domain.
That is also part of the reason I haven't touched those files yet this time.
here is /var/named:
" Press ? for keyboard shortcuts
" Sorted by name (.bak,~,.o,.h,.info,.swp,.obj at end of list)
"= /var/named/
../
chroot/
slaves/
localhost.zone
named.ca
named.local
Here is /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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; };
};
include "/etc/rndc.key";
I find this fact interesting, the one time I did not install Fedora Core with the chroot configuration, I noticed that the GUI for Domain Name System actually showed the localhost zone records. Now with the chroot configuration it is empty. Anyway that's another $0.002 worth
What to do next ?