11. Install of BIND Server (DNS Server)

$ tar -zxvf bind-9.2.1.tar.gz
$ ./configure
$ make
$ su
Password:(パスワード入力)
# make install
//
//	/etc/named.conf
//

options {
	directory "/etc/namedb";
//	pid-file "/var/run/named/named.pid";
	forward first;
	forwarders {
		x.x.x.x;
	};
};

zone "." {
	type hint;
	file "db.cache";
};

// localhost
//zone "localhost" {
//	type master;
//	file "localhost";
//};

zone "0.0.127.in-addr.arpa" {
	type master;
	file "localhost.rev";
};

// primary
zone "yui.mine.nu" {
	type master;
	file "named.hosts";
//	allow-update {
//		192.168.1.0/24;
//	};
};

zone "1.168.192.in-addr.arpa" {
	type master;
	file "named.rev";
//	allow-update {
//		192.168.1.0/24;
//	};
};
;;
;;	localhost.rev
;;
@		IN	SOA	mai.yui.mine.nu. postmaster.yui.mine.nu. (
		2002081701	; serial no (yyyy/mm/dd/nn)
		43200		; refresh after 12 hours
		7200		; retry after 2 hours
		1209600		; Expire after 2 week
		604800 )	; Minimum TTL of 7 days

		IN	NS	mai.yui.mine.nu.

;;
;;	define address for localhost
;;
0		IN	PTR	localnetwork.
1		IN	PTR	localhost.
;;
;;	yui
;;
@		IN	SOA	mai.yui.mine.nu. postmaster.yui.mine.nu. (
		2002081701	; Serial no (yyyy/mm/dd/nn)
		3600		; Refresh after 1 hour
		1800		; Retry after 30 minutes
		604800		; Expire after 1 week
		7200 )		; Minimum TTL of 2 hours

		IN	A	192.168.1.1
		IN	NS	mai.yui.mine.nu.
		IN	MX 10	po.yui.mine.nu.
		IN	MX 20	yui.mine.nu.

localhost	IN	A	127.0.0.1

mai		IN	A	192.168.1.1

;;
;;	define names
;;
ns		IN	CNAME	mai
po		IN	CNAME	mai
;;
;;	yui.rev
;;
@		IN	SOA	mai.yui.mine.nu. postmaster.yui.mine.nu. (
		2002081701	; Serial no (yyyy/mm/dd/nn)
		3600		; Refresh after 1 hour
		1800		; Retry after 30 minutes
		604800		; Expire after 1 week
		7200 )		; Minimum TTL of 2 hours

		IN	NS	mai.yui.mine.nu.

		IN	PTR	yui.mine.nu.
		IN	A	255.255.255.0

;;
;;	define addresses
;;
1		IN	PTR	mai.yui.mine.nu.
1		IN	PTR	ns.yui.mine.nu.
1		IN	PTR	po.yui.mine.nu.