/mili

How to Config Slave DNS Server

In a project we have servers which were in different cities, and they connected to each other with Radio connection.
We want to setup DNS server in each server for easy use, but configuring dns in each server was to painful if server of one IP changed. we should change config in all server.

So I setup a master DNS server and config other server as Slave.
Slave config is :

zone “sip.server.loc”{
        type slave;
        file “/etc/bind/sip.server.loc”;
        masters {172.16.20.1;};
};

Setting file value is useful when Master server is not accessible and Slave response requests with last config file(which updated that file from Master)