Public DNS Server
HOWTO for E-SMITH 4.1.X

I tested this on E-smith version 4.1.2 Written by Allen (admin@allenscomputing.com)

Before you start:

Assumptions:


  1. Create 2 custom templates for the named.conf files for the Dual DNS servers (one Internal & one External)
  2. Customize the External DNS config file (name-ext.conf)
  3. Customize the Internal DNS config file (name.conf)
  4. expand the named config files templates and copy to /home/dns/etc
  5. Create mycompany.host.ext zone file in directory /home/dns/var/named (example: pico /home/dns/var/named/mycompany.host.ext)
    @ IN SOA mycompany.com. admin.mycompany.com. (
                            2001042501 ; Serial
                                    8H ; Refresh
                                    2H ; Retry
                                    7D ; Expire
                                    1D ); Minimum
    IN NS ns1
    IN NS ns2
    IN MX 10 mail
    mycompany.com. IN A 111.222.0.3 ;Very important-period after the dot com. (this line only)
    ns1            IN A 111.222.0.3 
    ns2            IN A 111.222.0.4
    mail           IN A 111.222.0.3
    www            IN A 111.222.0.3
    ftp            IN A 111.222.0.3
    
  6. Create mycompany.host.int zone file in directory /home/dns/var/named (example: pico /home/dns/var/named/mycompany.host.int)
    @ IN SOA mycompany.com. admin.mycompany.com. (
                                      2001042501 ; Serial
                                              8H ; Refresh
                                              2H ; Retry
                                              7D ; Expire
                                              1D ) ; Minimum
    IN NS ns1
    IN NS ns2
    IN MX 10 mail
    mycompany.com. IN A 192.168.0.1 ;Very important-period after the dot com. (this line only)
    ns1            IN A 192.168.0.1
    ns2            IN A 192.168.0.2
    mail           IN A 192.168.0.1
    www            IN A 192.168.0.1
    ftp            IN A 192.168.0.1
    
  7. Edit the inittab file to start two instances of Named
  8. Update ipchains starting script to allow incoming packets to port 53.
    We are limiting the packets to be of type UDP since TCP packages are used for ZONE update requests.
  9. Do a console-save command to global update
    /sbin/e-smith/signal-event console-save
  10. Restart the inittab and ipchains
    /sbin/e-smith/signal-event remoteaccess-update
  11. If the remoteaccess-update didn't reset inittab and ipchains, then Reboot the system.

Adding a new Domain to the public dual DNS servers:

Example: How to do DNS for a Friend or host another Domain as a Virtual Domain

Assume: I am adding Domain PERSONAL.ORG as an IBAY on the same machine


  1. Customize the External DNS config file (name-ext.conf)
  2. Customize the Internal DNS config file (name-int.conf)
  3. Expand the Named Config Files and copy them to the chroot location (/home/dns/etc)
  4. Create personal.host.ext zone file in directory /home/dns/var/named (example: pico /home/dns/var/named/personal.host.ext)
  5. Create personal.host.int zone file in directory /home/dns/var/named (example: pico /home/dns/var/named/personal.host.int)
  6. Restart the Named processes by killing them and init will automatically respawn new instances of them.
  7. You can verify killall did it job by running "pidof named" before and after and you will see that each time it list 2 different pid showing that 2 instances of named are running.