dns에러 입니다.
이제 리눅스..막 입문한 초보입니다. 한수 가르침을 주세요.
기존에 blupers.com이라는 도메인을 가지고 있었는데 이번에 서버호스팅을 받게 돼서..blupers.com을 호스트 등록을 신청했구요..
ns1.blupers.com 입니다. 3일 쯤 지났구요..
1차 ns1.blupers.com
2차 name2.youiwe.org 입니다.
DNS서버에 등록할 도메인은 jrwm.org와 blupers.com입니다.
whois조회하면 네임서버 맞게 등록됐습니다.
whois jrwm.org
/** 중략 **/
Name Server:NAME2.YOUIWE.ORG
Name Server:NS1.BLUPERS.COM
/** 중략 **/
whois blupers.com
/**중략 **/
6. Name Servers
ns1.blupers.com
name2.youiwe.org
/**중략 **/
네임서버를 nslookup하면 조회됩니다.
[root@localhost log]# nslookup ns1.blupers.com
Server: 218.38.19.147
Address: 218.38.19.147#53
Non-authoritative answer:
Name: ns1.blupers.com
Address: 218.38.19.147
[root@localhost log]# nslookup name2.youiwe.org
Server: 218.38.19.147
Address: 218.38.19.147#53
Non-authoritative answer:
Name: name2.youiwe.org
Address: 218.38.19.114
interNic의 네임서버 등록 Whois도 등록됀듯합니다.
name2.youiwe.org는 서버호스팅사에서 관리하기 때문에..잘돼구요..
ns1.blupers.com을 interNic에서 쿼리한 결과입니다.
Server Name: NS1.BLUPERS.COM
IP Address: 218.38.19.147
Registrar: TODAY AND TOMORROW CO. LTD.
Whois Server: whois.ttpia.com
Referral URL: http://www.ttpia.com
아래는 제가 네임서버 셋팅한 파일 들입니다.
/etc/resolv.conf
search blupers.com
search jrwm.org
nameserver 218.38.19.147
nameserver 218.38.19.114
/etc/host.conf
order hosts,bind
/etc/hosts
127.0.0.1 localhost localhostlocaldomain
218.38.19.147 blupers.com blupers.com
218.38.19.147 jrwm.org jrwm.org
내부 핑은 잘 들어 옵니다.
/etc/named.conf
zone "jrwm.org" IN {
type master;
file "jrwm.zone";
allow-update { none; };
};
zone "blupers.com" IN {
type master;
file "blupers.zone";
allow-update { none; };
};
zone "19.38.218.in-addr.arpa"{
type master;
file "blupers.rev";
allow-update { none; };
};
/var/named/jrwm.zone
$TTL 86400
@ IN SOA ns1.blupers.com. master.blupers.com. (
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ; minimum
)
IN NS ns1.blupers.com.
IN A 218.38.19.147
IN MX 10 218.38.19.147
ns1 IN A 218.38.19.147
www IN CNAME @
ftp IN CNAME @
telnet IN CNAME @
/var/named/blupers.zone
$TTL 86400
@ IN SOA ns1.blupers.com. master.blupers.com. (
1997022700 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ; minimum
)
IN NS ns1.blupers.com.
IN A 218.38.19.147
IN MX 10 218.38.19.147
ns1 IN A 218.38.19.147
www IN CNAME @
ftp IN CNAME @
telnet IN CNAME @
문법검사를 하기위해
named-checkconf /etc/named.conf
이상없습니다.
그런데 zone파일에..에러가 있는듯 합니다.
named-checkzone jrwm.org /var/named/jrwm.zone
에러 내용은
zone jrwm.org/IN: has no NS records 입니다.
blupers.zone도 마찬가지 입니다.
NS record가 분명히 있는데도..에러가 납니다.
다음은 nslookup의 결과입니다.
[root@localhost etc]# nslookup jrwm.org
;; connection timed out; no servers could be reached
[root@localhost etc]# nslookup blupers.com
;; connection timed out; no servers could be reached
어디가 잘못된건지 찾을수가 없군요..아직 서버에 등록이 안된걸까요? 네임서버를 서버 아이피로 잡아놨으니까 등록안돼도..가능해야 돼지 않을까요?
다음은..시스템 로그입니다.
Nov 10 10:47:21 localhost named[13686]: lame server resolving 'jrwm.org' (in 'jrwm.org'?): 218.38.19.114#53
Nov 10 10:47:26 localhost named[13686]: lame server resolving 'jrwm.org.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.147#53
Nov 10 10:47:26 localhost named[13686]: lame server resolving 'jrwm.org.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.114#53
Nov 10 10:47:31 localhost named[13686]: lame server resolving 'jrwm.org.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.147#53
Nov 10 10:47:31 localhost named[13686]: lame server resolving 'jrwm.org.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.114#53
Nov 10 10:48:43 localhost named[13686]: lame server resolving 'ns1.blupers.com' (in 'blupers.com'?): 218.38.19.147#53
Nov 10 10:48:43 localhost named[13686]: lame server resolving 'ns1.blupers.com' (in 'blupers.com'?): 218.38.19.114#53
Nov 10 10:48:48 localhost named[13686]: lame server resolving 'ns1.blupers.com' (in 'blupers.com'?): 218.38.19.147#53
Nov 10 10:48:48 localhost named[13686]: lame server resolving 'ns1.blupers.com' (in 'blupers.com'?): 218.38.19.114#53
Nov 10 10:48:53 localhost named[13686]: lame server resolving 'ns1.blupers.com.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.147#53
Nov 10 10:48:53 localhost named[13686]: lame server resolving 'ns1.blupers.com.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.114#53
Nov 10 10:48:58 localhost named[13686]: lame server resolving 'ns1.blupers.com.ns1.blupers.com' (in 'blupers.com'?): 218.38.19.147#53
이것도 에러 인지요? 다른 사이트에 nslookup하니까..에러메세지가 안 남더군요.
다음은 dig한 결과입니다.
[root@localhost etc]# dig @localhost jrwm.org
; <<>> DiG 9.2.3 <<>> @localhost jrwm.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 22067
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;jrwm.org. IN A
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(localhost)
;; WHEN: Thu Nov 11 05:32:23 2004
;; MSG SIZE rcvd: 26
[root@localhost etc]# dig @localhost blupers.com
; <<>> DiG 9.2.3 <<>> @localhost blupers.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 57297
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;blupers.com. IN A
;; Query time: 6 msec
;; SERVER: 127.0.0.1#53(localhost)
;; WHEN: Thu Nov 11 05:32:31 2004
;; MSG SIZE rcvd: 29
이것도 마찬가지로..로그가 남더군요.
그리고 nslookup과 dig이 됐다 안됐다..합니다.
다음은 nslookup한 결과입니다.
[root@localhost etc]# nslookup
> set q=any
> jrwm.org
;; connection timed out; no servers could be reached
> set q=ns
> jrwm.org
Server: 218.38.19.114
Address: 218.38.19.114#53
Non-authoritative answer:
jrwm.org nameserver = ns1.blupers.com.
jrwm.org nameserver = name2.youiwe.org.
Authoritative answers can be found from:
ns1.blupers.com internet address = 218.38.19.147
name2.youiwe.org internet address = 218.38.19.114
name2.youiwe.org internet address = 211.174.179.201
> blupers.com
Server: 218.38.19.114
Address: 218.38.19.114#53
Non-authoritative answer:
blupers.com nameserver = name2.youiwe.org.
blupers.com nameserver = ns1.blupers.com.
Authoritative answers can be found from:
name2.youiwe.org internet address = 218.38.19.114
name2.youiwe.org internet address = 211.174.179.201
ns1.blupers.com internet address = 218.38.19.147
> set q=any
> jrwm.org
;; connection timed out; no servers could be reached
>
아까 set q=any해서..쿼리하니까 결과가 나왔는데 또 안나오는 군요.
문제의 원인이 어떤것인지..한수 가르쳐 주세요.
수고 많으십니다.^^
zone jrwm.org/IN: has no NS records 문제는
zone jrwm.org/IN: has no NS records 문제는 해결했습니다.
IN NS ns1.blupers.com. 에서
맨앞에..tab이 없어서..나는 에러였군요..
댓글 달기