Caauwe Family Website Family Connection
Website Setup, Domain Name System...
Follow the instructions below to install the Domain Name System (DNS).  At the time of this writing, the software included with Debian Etch is called 'bind9' at version 9.3.4.
  1. Login the server as root.
  2. Type: apt-get install bind9
  3. When requested, enter 'y' to continue the installation.
  4. If needed, install the requested Debian CD and press enter.
  5. After the installation completes, type: cd /etc/bind
  6. Type: mkdir external
  7. Type: mkdir internal
  8. Modify /etc/bind/named.conf.options  (see below)
  9. Modify /etc/bind/named.conf.local  (see below)
  10. Create a file in the /etc/bind/external folder named for the external IP addresses.
    For example, if the external IP addresses are 66.73.59.*, the file would be called 'db.59.73.66'.
  11. Create a file in the /etc/bind/external folder named for the domain name.
    For example, if the domain name is caauwe.com, the file would be called 'db.caauwe.com'.
  12. Create a file in the /etc/bind/internal folder named for the internal IP addresses.
    For example, if the internal IP addresses are 192.168.*, the file would be called 'db.168.192'.
  13. Create a file in the /etc/bind/internal folder named for the domain name.
    For example, if the domain name is caauwe.com, the file would be called 'db.caauwe.com'.
  14. The server (or the bind9 service) should be restarted after completing the configuration changes.
  15. The log can be reviewed at: /var/log/daemon.log
Filename: /etc/bind/named.conf.options
This file contains the IP addresses of your ISP DNS servers.  Replace the <ISP_DNS_IP> with DNS IP addresses provided by your ISP.
options {
    directory "/var/cache/bind";

    // 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 and later use an unprivileged
    // port by default.

    // query-source address * port 53;

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

    forwarders {
        <ISP_DNS_IP>;
        <ISP_DNS_IP>;
    };

    auth-nxdomain no; # conform to RFC1035
    listen-on-v6 { any; };
};
Filename: /etc/bind/named.conf.local
This file contains the description of your network and the zone files.
//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

acl "internal"
{
    127.0.0.1;
    192.168.0.0/16;
};

view "internal"
{
    match-clients { internal; };
    recursion yes;
    zone "caauwe.com"
    {
        type master;
        file "/etc/bind/internal/db.caauwe.com";
        allow-transfer { any; };
    };
    zone "168.192.in-addr.arpa"
    {
        type master;
        file "/etc/bind/internal/db.168.192";
        allow-transfer { any; };
    };
};

view "external"
{
    match-clients { any; };
    recursion no;
    zone "caauwe.com"
    {
        type master;
        file "/etc/bind/external/db.caauwe.com";
        allow-transfer { none; };
    };
    zone "59.73.66.in-addr.arpa"
    {
        type master;
        file "/etc/bind/external/db.59.73.66";
        allow-transfer { none; };
    };
};
Filename: /etc/bind/external/db.59.73.66
This file contains the reverse lookup information for external connections.  The example is for the fc1 server.
$TTL 86400
@        IN  SOA fc1.caauwe.com. root.caauwe.com. (
 2007011901  ; Serial
      86400  ; Refresh (24 Hours)
       3600  ; Retry (1 Hour)
     604800  ; Expire (1 Week)
      86400  ; Default TTL (24 Hours)
          )
         IN  NS    fc1.caauwe.com.
73       IN  PTR   fc1.caauwe.com.
74       IN  PTR   fc2.caauwe.com.
Filename: /etc/bind/external/db.caauwe.com
This file contains the lookup information for external connections.  The example is for the fc1 server.
$TTL 86400
@        IN  SOA fc1.caauwe.com. root.caauwe.com. (
 2007011901  ; Serial
      86400  ; Refresh (24 Hours)
       3600  ; Retry (1 Hour)
     604800  ; Expire (1 Week)
      86400  ; Default TTL (24 Hours)
          )
;        Named Servers
         IN  NS    fc1.caauwe.com.
         IN  NS    fc2.caauwe.com.
;        Zone Records
         MX  10    mail.caauwe.com.
fc1      IN  A     66.73.59.73
fc2      IN  A     66.73.59.74
mail     IN  A     66.73.59.78
www      IN  A     66.73.59.73
Filename: /etc/bind/internal/db.168.192
This file contains the reverse lookup information for internal connections.  The example is for the fc1 server.
$TTL 86400
@        IN  SOA fc1.caauwe.com. root.caauwe.com. (
 2007011901  ; Serial
      86400  ; Refresh (24 Hours)
       3600  ; Retry (1 Hour)
     604800  ; Expire (1 Week)
      86400  ; Default TTL (24 Hours)
          )
         IN  NS  fc1.caauwe.com.
101.254  IN  PTR   fc1.caauwe.com.
102.254  IN  PTR   fc2.caauwe.com.
103.254  IN  PTR   fc3.caauwe.com.
105.254  IN  PTR   fc5.caauwe.com.
110.254  IN  PTR   fc-test.caauwe.com
Filename: /etc/bind/external/db.caauwe.com
This file contains the lookup information for internal connections.  The example is for the fc1 server.
$TTL 86400
@        IN  SOA fc1.caauwe.com. root.caauwe.com. (
 2007011901  ; Serial
      86400  ; Refresh (24 Hours)
       3600  ; Retry (1 Hour)
     604800  ; Expire (1 Week)
      86400  ; Default TTL (24 Hours)
          )
;        Named Servers
         IN  NS    fc1.caauwe.com.
         IN  NS    fc2.caauwe.com.
;        Zone Records
         MX  10    mail.caauwe.com.
fc1      IN  A     192.168.254.101
fc2      IN  A     192.168.254.102
fc3      IN  A     192.168.254.103
fc5      IN  A     192.168.254.105
fc-test  IN  A     192.168.254.110
mail     IN  A     192.168.254.103
www      IN  A     192.168.254.101