I just follow the instructions from FreeBSD Handbook. Firts I set the forwarder options to forward all external address to my isp DNS server in /var/named/etc/namedb
forwarders {
202.188.0.133;202.188.1.5
};
Then I set my internal zone file.
zone "home.int" {
type master;
file "master/home.int";
}
The next step is to run the script make-localhost to properly create the local reverse DNS zone file in /var/named/etc/namedb/master.
Then I create the master/home.int
@ IN SOA ns1.home.int. root.home.int. (
1;
10800;
3600;
604800;
86400 );
IN NS ns1.home.int.
master IN A 192.168.1.3
mospeada IN A 192.168.1.3
reliant IN A 192.168.1.2
ns1 IN A 192.168.1.3
router IN A 192.168.1.1
hi IN A 192.168.1.4
haniey IN A 192.168.1.5
localhost IN A 127.0.0.1
@ IN A 192.168.1.3
Then I try to ping reliant.home.int from one of the machine, it’s works !!. The only problem is how to configure it so I can just use the name reliant, rather than the full name ?