안녕하세요.
다름이 아니라 산이님 책중에 named.conf 설정중.
fowarders 라는 옵션에 대해서 문의드릴려구요.
bind-9.2.4-16.EL4.i396.rpm 이 설치되어 있구요.(리눅스
설치시)
쉽게하기 위해 192.168 과 같은 ip 로 기재할께요..
ns.abc.co.kr(192.168.1.1) 이라는 서버가 있습니다.
여기에 도메인등록기관에
(nstemp).abc.co.kr 라는 호스트를 추가하고,
nstemp.abc.co.kr -> 192.168.1.2 로 설정하였습니다.
ns.abc.co.kr -> 192.168.1.1
nstemp.abc.co.kr -> 192.168.1.2
이와 같습니다.
이 상태에서
ns.abc.co.kr(192.168.1.1) 서버의 abc.co.kr.zone 에서 nstemp.abc.co.kr 을 A
레코드로 192.168.1.3 으로 가게 하였습니다.
하위 도메인 추가하듯이.
임시서버에 192.168.1.3 을 잡고,
외부에서 nstemp.abc.co.kr 을 ping 을 때리면 192.168.1.3 으로 갑니다.
이 상태에서,
별개의 linux.com 이라는 도메인의 네임서버 정보를 nstemp.abc.co.kr
로 설정하고,
# 임시서버 (192.168.1.3)
/etc/named.conf
abc.co.kr 이라는 zone 을 안넣었습니다.
설치된 상태에서 아무것도 수정안하고 상단 options 섹션에
아래와 같이 추가하였습니다.
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
forward only ; <---------------------- 추가
forwarders { 192.168.1.100; }; <----추가
};
아래는 수정안함.
192.168.1.100 는 linux.com 도메인의 레코드정보가 있는 네임서버
입니다.
외부에서 linux.com 을 nslookup 을 하면,
linux.com ?-> nstemp.abc.co.kr(192.168.1.3) -> 192.168.1.100 에 질의하여
결과를 받아오는게 안됩니다.
nslookup 시 질의서버를 nstemp.abc.co.kr 로 해놓고 하면 192.168.1.100 에
있는 내용을 응답하는데,
인터넷업체의 네임서버인 kns.kornet.net 등 기타 dns 에 nslookup 를
하면 Server failed 가 나옵니다.
*** kns.kornet.net can't find linux.com: Server failed
실제 도메인들의 레코드정보를 가지고 있는서버는 192.168.1.100
인데,
192.168.1.3 이 모든 요청을 받아 중계하는 역할을 해보려고
하는데 안되네요..
뭐가 잘못된건지 알수 있을까요??
|