Followup to the exercise on DNS delegation.

 

Concept: you want to create a zone of your choice, let's say: Ójoe.ghe0.dns.ghÓ.

 

The idea is that YOUR machine will be the MASTER nameserver for this zone, and then you will pick a partner which will be SLAVE for the same zone as well (ÓmirroringÓ).

 

Let's say you have PC10 and you want PC11 to be SLAVE.

Illustration:

 

PC 10 (41.218.234.110)

            ^      zone Ójoe.ghe0.dns.ghÓ; type master;

              |        

              V       zone Ójoe.ghe0.dns.ghÓ; type slave; masters Ó41.218.234.110Ó;

PC 11 (41.218.234.111)

                   

How to achieve this ?

 

1.             On the MASTER machine (PC110) create the zone in /etc/namedb/named.conf:

 

zone Ójoe.ghe0.dns.ghÓ {

     type master; file Ómaster/joe.ghe0.dns.ghÓ;

};

 

     ... and restart the master server (CHECK /var/log/messages for errors and VERIFY that the name server has started using Óps ax | grep namedÓ)

 

2.             TEST that it works using ÓdigÓ:

 

     dig @pc110 soa joe.ghe0.dns.gh

or

     dig @41.218.234.110

 

3.             Tell your partner to setup SLAVE service for your zone on their machine, by adding the following to THEIR /etc/namedb/named.conf:

 

zone Ójoe.ghe0.dns.ghÓ {

     type slave; file Óslave/joe.ghe0.dns.ghÓ;

     masters { 41.218.234.110; };

};

 

... and restart the slave server (CHECK /var/log/messages for errors and VERIFY that the name server has started using Óps ax | grep namedÓ)

 

4.             TEST that it works using ÓdigÓ:

 

            dig @pc111 soa joe.ghe0.dns.gh

or

            dig @41.218.234.111 soa joe.ghe0.dns.gh

 

5.             ASK for delegation to the hostmaster for Óghe0.dns.ghÓ, indicating on the paper:

PC#               ZONENAME             MASTER SERVER             SLAVE SERVER