Subject : DNS를 Cache Only Server로 세팅하는 방법은?
Description :
To install DNS as Cache Only Server
;
1. copy 'named.boot' and 'resolv.conf' files to /etc.
2. make '/usr/local/dns' directory.
3. copy 'localhost.rev' and 'root.cache' files to /usr/local/dns
4. modify 'named.local' to fit your system as follow.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
;localhost.rev
@ IN SOA ring.kotel.co.kr hsbyun.ring.kotel.co.kr (
---------------- -------------------------
1.1 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS ring.kotel.co.kr.
-----------------
1 IN PTR localhost.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
change the underline parts to fit your system
1) 'ring.kotel.co.kr' is the name of the host on which this data
resides.
2) 'hsbyun.ring.kotel.co.kr' is the mailing address for the person
responsible for the name server.
5. modify 'resolv.conf' to fit your system as follow.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
domain kotel.co.kr
nameserver 128.134.1.1
nameserver 147.6.1.2
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Change the part "domain" to your domain name.
6. type 'in.named'
참고 > 관련 화일들
① # vi localhost.rev
; /usr/etc/domain/named.local, v 1.0 1990/3/30
@ IN SOA ring.kotel.co.kr hsbyun.ring.kotel.co.kr (
1.1 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS ring.kotel.co.kr.
1 IN PTR localhost.
------------------------------------------------------------------------------------------
② # vi named.boot
;
; named.boot
directory /usr/local/dns
;
; type domain source host/file
cache . root.cache
primary 0.0.127.in-addr.arpa localhost.rev
forwarders 128.134.1.1 147.6.1.2 143.248.1.177
-----------------------------------------------------------------------------------------
③ # vi resolv.conf
domain kotel.co.kr
nameserver 128.134.1.1
nameserver 147.6.1.2
----------------------------------------------------------------------------------------
④ # vi root.cache
; /usr/etc/domain/root.cache
. 292770 IN NS han.hana.nm.kr.
292770 IN NS ring.kotel.co.kr.
292770 IN NS ns.kaist.ac.kr.
han.hana.nm.kr. 292770 IN A 128.134.1.1
ring.kotel.co.kr. 292770 IN A 147.6.1.2
ns.kaist.ac.kr. 292770 IN A 143.248.1.177
Revision History
작성일자 : 96.06.17
작성자 : 이진수
수정일자 :
수정자