MTA Configuration Guide

This guide covers the steps needed to configure Broadband Provisioner® for PacketCable® MTAs.

Install the DNS name server

$ sudo yum install bind
$ sudo touch /var/log/querylog
$ sudo chown named.named /var/log/querylog
$ sudo rndc-confgen -a -c /etc/rndc.key
$ sudo chown named.named /etc/rndc.key
$ sudo setsebool named_write_master_zones on
$ sudo vi /etc/sysconfig/named, add: ENABLE_ZONE_WRITE=yes

Edit /etc/named.conf

Inside the 'options {' bracket change 'recursion' as follows:

recursion no;

Inside the 'logging {' bracket add this channel and category:

  channel querylog{
       file "/var/log/querylog";
       severity debug 3;
       print-category yes;
       print-time yes;
       print-severity yes;
  };
  category queries { querylog;};

At the top-level, add this:

include "/etc/rndc.key";
controls {
      inet 127.0.0.1 allow { localhost; } keys { rndc-key; };
};

At the end of the file, add the zones (change reverse for your IPs):

zone "mta.priv" {
        type master;
        allow-update { 127.0.0.1; ::1; };
        file "/var/named/dynamic/mta.priv";
        };

zone "22.10.in-addr.arpa" {
         type master;
         allow-update { 127.0.0.1; ::1; };
         file "/var/named/dynamic/22.10.in-addr.arpa";
         };

Create the zone files

Add file /var/named/dynamic/mta.priv (change the ips):

;domain     nameserver         mail@storage
@ IN SOA    bp.mta.priv.    bp.mta.priv. (
                        1999091600
                        10800
                        3600
                        608400
                        86400 )

; name servers
@                       IN  NS bp

; mail servers
@                       IN  MX 10 bp

; canonical names
bp                IN  A   1.1.1.1
softswitch        IN  A   1.1.1.2

Add file /var/named/dynamic/22.10.in-addr.arpa (change name and ips):

;domain    nameserver       mail
@  IN SOA  bp.mta.priv.  bp.mta.priv. (
                        1999091600
                        10800
                        3600
                        608400
                        86400 )

; nameservers
@     IN NS bp.mta.priv.

1.1   IN  PTR   test.mta.priv.

To log queries

The following command toggles query logging on and off:

rndc querylog

And lastly, install snmptrapd and define an access control so you can see the mta provisioning stages.