Error when trying to make secondary nameserver from copying primary nameserver
Samad Agha
samad.agha2007 at gmail.com
Thu May 5 22:48:56 UTC 2011
I have a working primary nameserver (dns1) and am trying to configure
secondary nameserver (dns2) by copying zone files, config file, etc. from
dns1 onto dns2. I have performed the following on dns2 server:
1- found out which version of bind dsn1 is running and installed exactly
that version on dns2:
[root at dns1 named]# named -v
BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5
[root at dns1 named]#
[root at dns2 ~]# yum list |grep bind
bind.x86_64 30:9.3.6-16.P1.el5
installed
bind-libs.x86_64 30:9.3.6-16.P1.el5
installed
bind-utils.x86_64 30:9.3.6-16.P1.el5
installed
ypbind.x86_64 3:1.19-12.el5 installed
[root at dns2 named]# named -v
BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5
[root at dns2 named]#
2- Copied dns1:/etc/named.conf from primary server (dns1) onto dns2 and
chown it:
[root at dns2 ~]# ls -l /etc/named.conf
-rw-r--r-- 1 root named 2876 May 3 09:30 /etc/named.conf
[root at dns2 ~]# chown root:named /etc/named.conf
3- Tried starting named:
[root at dns2 ~]# /usr/sbin/named
4- I get the "couldn't open pid file '/var/run/named/named.pid': Permission
denied" as follows:
[root at dns2 ~]# grep named /var/log/messages
May 3 10:13:51 dns2 named[19084]: starting BIND
9.3.6-P1-RedHat-9.3.6-16.P1.el5
May 3 10:13:51 dns2 named[19084]: found 4 CPUs, using 4 worker threads
May 3 10:13:51 dns2 named[19084]: using up to 4096 sockets
May 3 10:13:51 dns2 named[19084]: loading configuration from
'/etc/named.conf'
May 3 10:13:51 dns2 named[19084]: max open files (1024) is smaller than max
sockets (4096)
May 3 10:13:51 dns2 named[19084]: using default UDP/IPv4 port range: [1024,
65535]
May 3 10:13:51 dns2 named[19084]: using default UDP/IPv6 port range: [1024,
65535]
May 3 10:13:51 dns2 named[19084]: listening on IPv4 interface lo,
127.0.0.1#53
May 3 10:13:51 dns2 named[19084]: listening on IPv4 interface eth0,
206.117.120.26#53
May 3 10:13:51 dns2 named[19084]: command channel listening on
127.0.0.1#953
May 3 10:13:51 dns2 named[19084]: command channel listening on ::1#953
May 3 10:13:51 dns2 named[19084]: couldn't open pid file
'/var/run/named/named.pid': Permission denied
May 3 10:13:51 dns2 named[19084]: exiting (due to early fatal error)
[root at dns2 ~]#
Please advise if there more steps to be performed on dns2, if I'm missing
something, or if I did something wrong.
Many thanks in advance.
SA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20110505/ae097d39/attachment.html>
More information about the bind-users
mailing list