dns 설정이 잘안됩니다ㅜ
작성자 정보
- sunny 작성
- 작성일
컨텐츠 정보
- 2,921 조회
- 1 댓글
- 0 추천
- 목록
본문
아래 글들을 참고 해서 이렇게 dns 설정을 하였는데 에러가 뜹니다.
ip 168.131.103.138
dns 210.104.1.3
도메인은 cnuh.net 입니다.
nslookup -sil
이렇게 해서 하면
> cnuh.net
Server:210.104.1.3
Address:210.104.1.3#53
** server can't find cnuh.net: SERVFAIL
>
이렇게 뜨네요 마지막줄에... server can't find 라고 나오는뎅..
이유를 모르겠습니다...
일단 제가 설정한 파일들이랑 어떻게 설정했는지도 같이 올리겠습니다..
보시고.. 뭐가 잘못 되었는지... 알려주세요 ㅠ.ㅠ
/ect/sysconfig/network 파일입니다.
NETWORKING=yes
HOSTNAME=cnuh.net
GATEWAY=168.131.103.1
/etc/resolv.conf 파일입니다.
search cnuh.net
nameserver 210.104.1.3
/ect/named.conf 파일입니다.
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
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 "youngjintel.com" IN {
type master;
file "cnuh.net";
};
zone "103.131.168.in-addr.arpa" IN {
type master;
file "103.131.168.in-addr.arpa";
};
include "/etc/rndc.key";
/var/named/youngjintel.com 파일입니다.
$TTL 86400
@ IN SOA ns.cnuh.net. webmaster.cnuh.net. (
2005010700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.cnuh.net.
IN MX 10 cnuh.net.
IN A 168.131.103.138
cnuh.net IN A 168.131.103.138
www IN A 168.131.103.138
/var/named/103.131.168.in-addr.arpa 파일입니다.
$TTL 86400
@ IN SOA ns.cnuh.net. webmaster.cnuh.net. (
2005010700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ; Minimum
IN NS ns.cnuh.net.
60 IN PTR ns.cnuh.net.
60 IN PTR cnuh.net.
이렇게 설정을 해주었는데 무엇이 잘못인지 잘 모르겠네요..
ping cnuh.net를 하면 응답은 있는데...cnuh.net접속이 안되구여 아이피 주소로 연결을 하면 웹사이트가 연결이 되네요..
아시는 분들의 다정한 답변좀 부탁드립니다.^^
관련자료
-
이전
-
다음
김정원님의 댓글
- 김정원
- 작성일
/var/named/chroot/var/named/nforce6.com.zone 파일
----------------------------------------------------
$TTL 3600
@ IN SOA ns.nforce6.com. root.nforce6.com. (
20070304 ; Serial
900 ; Refresh
600 ; Retry
86400 ; Expire
3600 ) ; Minimum
IN NS ns.nforce6.com.
IN MX 10 mail.nforce6.com.
IN A 211.xxx.xxx.xxx
www IN A 211.xxx.xxx.xxx
mail IN A 211.xxx.xxx.xxx
mrtg IN A 211.xxx.xxx.xxx
greed11 IN A 211.xxx.xxx.xxx
-------------------------------------------------------------------
/etc/named.conf에 새로운 것만 추가하면되구요,,.,,,,아래처럼
---------------------------------
//
// named.conf for Red Hat caching-nameserver
//
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;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
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 "nforce6.com" IN { #추가 한줄
type master; #추가 한줄
file "nforce6.com.zone"; #추가 한줄
};
include "/etc/rndc.key";
---------------------------------
/etc/resolv.conf파일
----------------------
search nforce6.com
nameserver 168.126.63.1
nameserver 168.126.63.2
----------------------
/etc/hosts 파일
----------------------------------------
127.0.0.1 localhost.localdomain localhost
211.xxx.xxx.xxx ns.nforce6.com ns
------------------------------------------
당연히 다 고치시고 dns데몬 다시 시작하셔야겠죠?ㅎ
참고 되시길....ㅎ