<div>Elvind & Ben,</div><div> </div><div>Thanks so much for your quick replies, I really appreciate it. I'll try out your suggested solutions on Monday, since I'm off today, and will report back my results.</div>
<div> </div><div>Thanks again and have a nice weekend.</div><div> </div><div>SA<br><br></div><div class="gmail_quote">On Thu, May 5, 2011 at 6:10 PM, Eivind Olsen <span dir="ltr"><<a href="mailto:eivind@aminor.no">eivind@aminor.no</a>></span> wrote:<br>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" class="gmail_quote"><div class="im">Samad Agha wrote:<br>
<br>
> 1- found out which version of bind dsn1 is running and installed exactly<br>
> that version on dns2:<br>
> [root@dns1 named]# named -v<br>
> BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5<br>
<br>
</div>That version is quite old. In general, just because server 1 has an old<br>
BIND isn't a reason to choose an old BIND on server 2 as well.<br>
<div class="im"><br>
> 2- Copied dns1:/etc/named.conf from primary server (dns1) onto dns2 and<br>
> chown it:<br>
> [root@dns2 ~]# ls -l /etc/named.conf<br>
> -rw-r--r-- 1 root named 2876 May  3 09:30 /etc/named.conf<br>
<br>
</div>Sure, you can use an existing named.conf as basis for your 2nd nameserver,<br>
but if you want to turn you setup into a normal master/slave setup, you'll<br>
also want to configure one of them with zones of type slave, and telling<br>
BIND who the master is, something like:<br>
<br>
zone "my.zonename" {<br>
    type slave;<br>
    file "path/to/my.zonename-file";<br>
    masters {<br>
        192.168.1.10;         // use proper IP address instead<br>
    };<br>
};<br>
<br>
You might also want to set up your zonefile transfers, typically by<br>
allowing the slave to transfer from the master (so you might need to<br>
change the configuration on the master), and perhaps disallowing anyone<br>
else from doing transfers.<br>
<div class="im"><br>
> 4- I get the "couldn't open pid file '/var/run/named/named.pid':<br>
> Permission<br>
> denied" as follows:<br>
<br>
</div>Check the permissions of that directory, and see if there's also a<br>
named.pid file already. I'm not familiar with that old RedHat package, so<br>
I on't know how it expects things to be set up, if you're using the<br>
bundled start script.<br>
If the permissions initially look good, I suggest you look into whether<br>
you have SELinux running, maybe its policies are making problems for you?<br>
<br>
Regards<br>
Eivind Olsen<br>
<a href="mailto:eivind@aminor.no">eivind@aminor.no</a><br>
<br>
<br>
_______________________________________________<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div><br>