안녕하세요. 이번에 레드헷 7.1로 서버를 새로 세팅하고는 서버를
다시 세팅하고 있습니다. 그런데, 아무리 해도 네임서버가 잡히지를 않네요.
7.0에서는 별 무리없이 그냥 잡았거든요.
[root@gamelife /etc]# nslookup mydomain.co.kr
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 211.xxx.xxx.xx
Address: 211.xxx.xxx.xx#53
** server can't find mydomain.co.kr.: SERVFAIL
이런 메시지만 계속 뜨는데, 도저히 네임서버가 잡히지를 않네요. 여기저기
문서를 찾아보고 따라해보면서 이거저거 바꿔보고도 했는데도, 안되네요.
질답란에 올라온 글들도 많이 봤는데...ㅠ.ㅜ..
그래서 고수님들이 한번 봐주십사 이렇게 염치 불구하고, 제 네임서버 환경을
적어 봅니다. 혹시나 틀린 부분 있으면 좀 잡아주세요. 그리고, 이 화일들 말
고 또 뭐 다른 화일을 수정해야 하는 부분이 있으면 좀 가르쳐 주시면 정말
감사하겠습니다. 정말 부탁드리겠습니다.
named.conf
------------------------------------------------------
[root@mydomain /etc]# cat named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* 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
//
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 "mydomain.co.kr" IN {
type master;
file "mydomain.co.kr-zone";
allow-update { none; };
};
key "key" {
algorithm hmac-md5;
secret "lTjDLzhvyMXWFQSlWuEtRZEBcnGafVNOyBXwoooUlNQDuYWXuHRZKwkt0QgC";
};
[root@mydomain /etc]#
-----------------------------------------------------------------
resolv.conf
-----------------------------------------------------------------
[root@mydomain /etc]# cat resolv.conf
search co.kr
nameserver 211.xxx.xxx.xx
-----------------------------------------------------------------
hosts
-----------------------------------------------------------------
[root@mydomain /etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
211.xxx.xxx.xx ns.mydomain.co.kr ns
-----------------------------------------------------------------
mydomain.co.kr-zone
-----------------------------------------------------------------
[root@mydomain /etc]# cat /var/named/mydomain.co.kr-zone
$TTL 86400
@ IN SOA ns.mydomain.co.kr. webmaster.mydomain.co.kr. (
2001032001 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ; Minimum )
; Name Server
;
IN NS ns.mydomain.co.kr.
IN A 211.xxx.xxx.xx
IN MX 10 @
; Host name & Information
;
ns IN A 211.xxx.xxx.xx
www IN A 211.xxx.xxx.xx
; VirtualHost
;
; Alias
www IN IN CNAME @
[root@mydomain /etc]#
--------------------------------------------------------------------
이상이 제 서버 환경입니다.