------------------------------------------------------------ revno: 3634 committer: Adam Sommer <[EMAIL PROTECTED]> branch nick: ubuntu-hardy timestamp: Thu 2007-11-29 09:13:52 -0500 message: * generic/server/C/dns.xml Secondary Master server section. * generic/server/C/mail.xml Ante Karamatic suggestion regarding including actual server network to 'mynetworks' settings. modified: generic/server/C/dns.xml generic/server/C/mail.xml
=== modified file 'generic/server/C/dns.xml' --- a/generic/server/C/dns.xml 2007-11-28 13:38:35 +0000 +++ b/generic/server/C/dns.xml 2007-11-29 14:13:52 +0000 @@ -261,8 +261,72 @@ <sect2 id="dns-secondarymaster-configuration" status="review"> <title>Secondary Master</title> <para> - To Do: add information on configuring BIND9 as a secondary master. - </para> + Once a <emphasis>Primary Master</emphasis> has been configured a <emphasis>Secondary Master</emphasis> is needed in + order to maintain the availability of the domain should the Primary become unavailable. + </para> + <para> + First, on the Primary Master server, the zone transfer needs to be allowed. Add the <emphasis>allow-transfer</emphasis> + option to the example Forward and Reverse zone definitions in <filename>/etc/bind/named.conf.local</filename>: + </para> +<programlisting> +zone "example.com" { + type master; + file "/etc/bind/db.example.com"; + allow-transfer { 192.168.1.11; }; +}; + +zone "1.168.192.in-addr.arpa" { + type master; + notify no; + file "/etc/bind/db.192"; + allow-transfer { 192.168.1.11; }; +}; +</programlisting> + <note> + <para> + Replace <emphasis>192.168.1.11</emphasis> with the IP Address of your Secondary nameserver. + </para> + </note> + <para> + Next, on the Secondary Master, install the <application>bind9</application> package the same way as on the Primary. + Then edit the <filename>/etc/bind/named.conf.local</filename> and add the following declarations for the Forward and Reverse zones: + </para> +<programlisting> +zone "example.com" { + type slave; + file "/etc/bind/db.example.com"; + masters { 192.168.1.10; }; +}; + +zone "1.168.192.in-addr.arpa"; { + type slave; + file "/etc/bind/db.192"; + masters { 192.168.1.10; }; +}; +</programlisting> + <note> + <para> + Replace <emphasis>192.168.1.10</emphasis> with the IP Address of your Primary nameserver. + </para> + </note> + <para> + Restart <application>BIND9</application> on the Secondary Master: + </para> +<screen> +<command>sudo /etc/init.d/bind9 restart</command> +</screen> + <para> + In <filename>/var/log/syslog</filename> you should see something similar to: + </para> +<programlisting> +slave zone "example.com" (IN) loaded (serial 6) +slave zone "100.18.172.in-addr.arpa" (IN) loaded (serial 3) +</programlisting> + <note> + <para> + Note: A zone is only transfered if the <emphasis>Serial Number</emphasis> on the Primary is larger than the one on the Secondary. + </para> + </note> </sect2> </sect1> <sect1 id="dns-references" status="complete"> === modified file 'generic/server/C/mail.xml' --- a/generic/server/C/mail.xml 2007-11-28 16:05:01 +0000 +++ b/generic/server/C/mail.xml 2007-11-29 14:13:52 +0000 @@ -63,7 +63,7 @@ <listitem><para>mail.example.com</para></listitem> <listitem><para>mail.example.com, localhost.localdomain, localhost</para></listitem> <listitem><para>No</para></listitem> - <listitem><para>127.0.0.0/8</para></listitem> + <listitem><para>127.0.0.0/8, 192.168.0/24</para></listitem> <listitem><para>Yes</para></listitem> <listitem><para>0</para></listitem> <listitem><para>+</para></listitem> @@ -72,7 +72,8 @@ </para> <note> <para> - Replace mail.example.com with your mail server hostname. + Replace mail.example.com with your mail server hostname, and 192.168.0/24 with the actual network and class + range of your mail server. </para> </note> <para> -- https://code.launchpad.net/~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy You are receiving this branch notification because you are subscribed to it. To unsubscribe from this branch go to https://code.launchpad.net/~ubuntu-core-doc/ubuntu-doc/ubuntu-hardy/+subscription/ubuntu-core-doc. -- ubuntu-doc-commits mailing list ubuntu-doc-commits@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc-commits