The config files to do so are below:
/etc/named.conf
/*
* A simple BIND 8 configuration
*/
logging {
category lame-servers { null; };
category cname { null; };
channel file_log {
file "/var/adm/named.log" versions 4 size 524288;
severity info;
print-severity yes;
print-category yes;
print-time yes;
};
category default {
file_log;
};
};
options {
directory "/var/named";
listen-on {10.0.0.1;};
};
zone "." in {
type hint;
file "named.cache";
};
zone "localhost" {
type master;
file "localhost";
};
zone "foo.net" in {
type master;
file "foo.net";
};
zone "0.0.127.in-addr.arpa" in {
type master;
notify no;
file "0.0.127.in-addr.arpa";
};
zone "0.0.10.in-addr.arpa" in {
type master;
notify no;
file "0.0.10.in-addr.arpa";
};
/var/named/named.cache
/var/named/0.0.10.in-addr.arpa
; 0.10.in-addr.arpa
; foo.net
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache .
; configuration file of BIND domain name servers).
. 3600000 IN NS ghost.foo.net.
ghost.foo.net. 3600000 IN A 10.0.0.1
; End of File
$TTL 3600
@ in soa foo.net. postmaster.foo.net. (
1993050801 ;serial
3600 ;refresh
1800 ;retry
604800 ;expiration
3600 ) ;minimum
in ns ghost.foo.net.
1 in ptr ghost.foo.net.
2 in ptr kitsunetsuki.foo.net.
3 in ptr temp1.foo.net.
4 in ptr temp2.foo.net.
5 in ptr temp3.foo.net.
6 in ptr temp3.foo.net.
7 in ptr temp3.foo.net.
8 in ptr temp3.foo.net.
9 in ptr temp3.foo.net.
10 in ptr temp3.foo.net.
11 in ptr temp3.foo.net.
/var/named/foo.net
$TTL 3600
@ in soa foo.net. postmaster.foo.net. (
1993050801 ;serial
3600 ;refresh
1800 ;retry
604800 ;expiration
3600 ) ;minimum
in ns ghost.foo.net.
localhost IN a 127.0.0.1
ghost IN A 10.0.0.1
kitsunetsuki IN A 10.0.0.2
temp1 IN A 10.0.0.3
temp2 IN A 10.0.0.4
temp3 IN A 10.0.0.5
temp4 IN A 10.0.0.6
temp5 IN A 10.0.0.7
temp6 IN A 10.0.0.8
temp7 IN A 10.0.0.9
temp8 IN A 10.0.0.10
temp9 IN A 10.0.0.11