DNS ( Domain Name Server ) 설치.
준비 : CentOS 5.5
yum -y install bind
yum -y install bind-libs
yum -y install bind-utils
yum -y install bind-chroot
yum -y install caching-nameserver
총5가지를 설치 합니다.
수정.
-----------------
vi /etc/resolv.conf
----------------
vi /etc/sysconfig/network
--------------------------------------------------------
vi /var/named/chroot/etc/named.caching-nameserver.conf
--------------------------------------------------------
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
//listen-on port 53 { 127.0.0.1; };
//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 { localhost; };
//allow-query-cache { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
//view localhost_resolver {
// match-clients { localhost; };
// match-destinations { localhost; };
// recursion yes;
// include "/etc/named.rfc1912.zones";
//};
include "/etc/named.rfc1912.zones";
----------------
vi /var/named/chroot/etc/named.rfc1912.zones
마지막 줄에 추가.
zone "test.naver.com" IN {
type master;
file "test.naver.com.zone";
allow-update { none; };
};
----------------
vi /var/named/chroot/var/named/도메인.zone
$TTL 86400
@ IN SOA test.naver.com. root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
60 ) ; minimum
IN NS ns.test.naver.com.
IN A 172.29.7.1
test1 IN A 11.111.11.11
----------------
/etc/resolv.conf
nameserver 127.0.0.1
-----------------------------
ping test.naver.com
ping test1.test.naver.com
'리눅스 > 리눅스설정방법' 카테고리의 다른 글
리눅스 랜카드 추가 설치.. (972) | 2011.11.11 |
---|---|
ssh 한글깨짐현상 고치기. (12) | 2011.03.17 |
리눅스백업 ( rsync ) (1) | 2011.02.19 |
proftpd 설치 (ftp 설치) (507) | 2011.02.18 |
quota (사용자 하드용량 정하기) (3520) | 2011.02.17 |