1. 기존 설치 프로그램 확인
[root@localhost named]# rpm -qa|grep bind
ypbind-1.19-12.el5
bind-utils-9.3.6-16.P1.el5
bind-libs-9.3.6-16.P1.el5
bind-9.3.6-16.P1.el5
bind-chroot-9.3.6-16.P1.el5
[root@localhost named]# rpm -qa|grep name
[root@localhost named]#
2. 프로그램 설치
위에서 bind 는 설치되어 있으므로 네임서버만 설치
# yum install caching-nameserver
4. HOSTNAME 확인 및 변경
[root@localhost named]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=ns.도메인명.com
5. named.conf 생성
[root@localhost etc]# cp named.caching-nameserver.conf named.conf
[root@localhost etc]# vi 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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { any; };
allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
9. setup 에서 named 자동시작으로 설정해줌!!
mysql 업그레이드 후 시작이 되지 않을때.. (0) | 2012.10.09 |
---|---|
window php + mssql 연동오류 해결 (0) | 2012.09.20 |
[리눅스] CentOS 5.6 - php5.3 설치 (0) | 2012.08.16 |
[리눅스] APM 설치 (0) | 2012.08.13 |
[리눅스]서버 정보 얻기 (0) | 2012.08.13 |