named.conf 파일
[code:2wzee2hz]
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, BEFORE you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
zone "ns.bokan.pe.kr" {
type master;
file "/etc/bind/ns.bokan.pe.kr";
};
zone "bokan.pe.kr" {
type master;
file "/etc/bind/bokan.pe.kr";
};
include "/etc/bind/named.conf.local";
[/code:2wzee2hz]
이렇게 해주셔야하구요,
이제 호스트 파일 설명 해드리겠습니다,
ns.bokan.pe.kr 호스트파일
[code:2wzee2hz]
$TTL 86400
@ IN SOA ns.bokan.pe.kr. root.ns.bokan.pe.kr (
200611522 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns.bokan.pe.kr.
IN A 121.121.121.121
www IN A 121.121.121.121
ftp IN A 121.121.121.121
(꼭 한칸 띠어줘야합니다.)
[/code:2wzee2hz]
bokan.pe.kr 호스트 파일
[code:2wzee2hz]
$TTL 86400
@ IN SOA ns.bokan.pe.kr. root.ns.bokan.pe.kr (
200611522 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS ns.bokan.pe.kr.
IN A 121.121.121.121
www IN A 121.121.121.121
ftp IN A 121.121.121.121
(꼭 한칸 띠어줘야합니다.)
[/code:2wzee2hz]