악수하는 사람들 네임서버 세팅
rpcbind-0.2.0-11.el6.x86_64
ypbind-1.20.4-30.el6.x86_64
bind-libs-9.8.2-0.23.rc1.el6_5.1.x86_64
bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64
bind-9.8.2-0.23.rc1.el6_5.1.x86_64
1.234.41.200
# rpm -qa | grep bind
* 필요패키지
rpcbind-0.2.0-11.el6.x86_64
ypbind-1.20.4-30.el6.x86_64
bind-libs-9.8.2-0.23.rc1.el6_5.1.x86_64
bind-utils-9.8.2-0.23.rc1.el6_5.1.x86_64
bind-9.8.2-0.23.rc1.el6_5.1.x86_64
# yum install -y bind bind-libs bind-utils
* named 설정파일은 /etc/에 위치.
# vi /etc/named.conf
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion no;
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion no;
:wq
# vi /etc/named.rfc1912.zones
zone "jupasu.com" IN {
type master;
file "jupasu.com.zone";
allow-update { none; };
notify no;
};
zone "ns.jupasu.com" IN {
type master;
file "ns.jupasu.com.zone";
allow-update { none; };
notify no;
};
zone "51.234.1.in-addr.arpa" IN {
type master;
file "jupasu.com.rev";
allow-update { none; };
notify no;
};
zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
notify no;
};
zone "jupasu.co.kr" IN {
type master;
file "jupasu.co.kr.zone";
allow-update { none; };
notify no;
};
zone "jupasu.net" IN {
type master;
file "jupasu.net.zone";
allow-update { none; };
notify no;
};
type master;
file "jupasu.com.zone";
allow-update { none; };
notify no;
};
zone "ns.jupasu.com" IN {
type master;
file "ns.jupasu.com.zone";
allow-update { none; };
notify no;
};
zone "51.234.1.in-addr.arpa" IN {
type master;
file "jupasu.com.rev";
allow-update { none; };
notify no;
};
zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
notify no;
};
zone "jupasu.co.kr" IN {
type master;
file "jupasu.co.kr.zone";
allow-update { none; };
notify no;
};
zone "jupasu.net" IN {
type master;
file "jupasu.net.zone";
allow-update { none; };
notify no;
};
:wq
3. named zone 설정 파일 위치는 /var/named
/var/named에 localhost로 디폴트 zone 파일 등이 존재한다.
이것을 복사하여 새로 설정해줄 zone 파일을 생성하여 사용한다.
---> 이런 식이다.
4.