dns설치 했습니다. 잘안되네요... 도와주세요
작성자 정보
- 강용구 작성
- 작성일
컨텐츠 정보
- 3,436 조회
- 1 댓글
- 0 추천
- 목록
본문
CentOS 5.2에 DNS설정을 하였습니다.
먼저 가비아에서 'xxx.kr'을 도메인 등록 했습니다. 그리고 xxx,kr에대한 name server 를 ns.xxx.kr이라는 호스트로 121.182.xxx.xxx IP로 가비아에서 호스트 추가로 등록 했습니다.
여기서 궁굼한점은 이렇게 해도 dns server로 등록이 되는지요? 일단 가비아에서는 된다고 하는데......
그리고 linux server에서 dns를 settting하였습니다.
먼저 named.caching-nameserver.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; };
};
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";
};
그리고 named.rfc1912.zones의 내용 입니다.
zone "." IN {
type hint;
file "named.ca";
};
zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
zone "xxx.182.121.in-addr.arpa" IN {
type master;
file "named.rev";
allow-update { none; };
};
zone "xxx.kr" IN {
type master;
file "xxx.kr.zone";
allow-update { none; };
};
그리고 xxx.kr.zone의 내용입니다.
$TTL 600
@ IN SOA ns.xxx.kr. root.localhost. (
2009011401 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.xxx.kr.
IN MX 10 xxx.kr.
IN A 121.182.xxx.xxx
ns IN A 121.182.xxx.xxx
www IN A 121.182.xxx.xxx
mail IN CNAME www
ftp IN CNAME @
* IN CNAME @
그리고 named.rev의 내용입니다.
$TTL 600
@ IN SOA ns.xxx.kr. root.localhost. (
2009011400 ; serial
1H ; refresh
10M ; retry
1W ; expiry
86400 ) ; minimum
IN NS ns.xxx.kr.
46 IN PTR ns.xxx.kr.
/var/named에 생성된 파일들을 chgrp named file.name으로 소유권도 변경 하였습니다.
외부에서도 dns접속이 되도록 방화벽에서 53번 포트를 열었습니다.
service named restart로 dns service를 재시작 했습니다.
DNS를 설치한 LINUX SERVER에서
'nslookup xxx.kr localhost'하면 다음과 같이 나옵니다.
Server: localhost
Address: 127.0.0#53
Name: xxx.kr
Address: 121.182.xxx.xxx
그런데 'nslookup xxx.kr'하면 다음과 같이 안됩니다.
;; connection time out; no servers could be reached
MS Windows PC에서 명령창을 열어 'nslookup xxx.kr'하면 다음과 같이 안됩니다.
Server: kns.kornet.net
Address: 163.126.63.1
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
***Request to kns.kornet.net timed-out
MS Windows PC에서 명령창을 열어 'nslookup xxx.kr 121.182.xxx.xxx'이라고 dns server의 IP를 지정하면 다음과 같이 됩니다.
Server: ns.xxx.kr
Address: 121.182.xxx.xxx
Name: xxx.kr
Address: 121.182.xxx.xxx
dns가 설치된 linux server에서 그리고 외부 MS Windows PC에서 'ping xxx.kr'하면 반응이 없습니다.
고수분들의 도움을 부탁 합니다.
관련자료
-
이전
-
다음
suki님의 댓글
- suki
- 작성일
그곳에 등록을 해야하며 갱시시에도 약간의 시간이 필요합니다.