Differences between revisions 14 and 54 (spanning 40 versions)
Revision 14 as of 2017-12-09 08:34:54
Size: 1371
Comment:
Revision 54 as of 2021-01-17 20:10:16
Size: 1001
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
= DNS Master = In this setup we use the following IP-addresses for the master and slave:
Line 9: Line 9:
== Network ==  * 192.168.1.36 master
 * 192.168.1.37 slave
Line 11: Line 12:
Since looking up the DNS servers IP-address does not make any sense, we will give the DNS server a statc IP-address. Edit `/etc/networking/interfaces` and make the following changes. Configure the [[DNS Master|master]], then the [[DNS Slave|slave]].
Line 13: Line 14:
{{{
# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
== Maintenance ==
Line 18: Line 16:
auto eth0
iface eth0 inet static
        address 192.168.1.34
        netmask 255.255.255.0
        gateway 192.168.1.1
        network 192.168.1.0
        gateway 192.168.1.1
}}}
=== Zone Changes ===
Line 27: Line 18:
== Install BIND ==

{{{
apt-get install bind9
}}}

== Configure BIND ==

=== Make BIND listen ===

edit `/etc/bind/named.conf.options` and add

{{{
listen-on { any; };
}}}

=== Create a new zone ===

`/etc/bind/named.conf.kallenberg.dk`
{{{
}}}

Add the new zone file to `/etc/bind/named.conf.local`

{{{
include "/etc/bind/named.conf.kallenberg.dk";
}}}


= DNS Slave =
Once both servers are configured, it is vital to stop making changes to the zone files by hand. From now on manual [[DNS Updates|DNS updates]] has to be made with the `nsupdate` utility using the update key. If you try to edit the zone files manually, you may be screwing up your DNS.

DNS

The Domain Name System is really a must for any TCIP/IP network. It is a key component of the network. That is why it is the first service we will configure.

Here we will be using Bind, ISC's DNS server. Bind has a master/slave configuration, where the master gets the DNS changes and then updates the slave. It cannot run truly redundant, in the sense that only the master is allowed to get DNS changes, if the master is down, the slave cannot be updated.

In this setup we use the following IP-addresses for the master and slave:

  • 192.168.1.36 master
  • 192.168.1.37 slave

Configure the master, then the slave.

Maintenance

Zone Changes

Once both servers are configured, it is vital to stop making changes to the zone files by hand. From now on manual DNS updates has to be made with the nsupdate utility using the update key. If you try to edit the zone files manually, you may be screwing up your DNS.

None: DNS (last edited 2021-01-17 20:10:16 by Kristian Kallenberg)