현제 www.nicebsd.com으로 접속이 가능해서 DNS 서비스가 안되고 있는지 모
르고 있었습니다만 얼마전에 ns2.nicebsd.com 이 죽었을때 보니까 master는
DNS서비스가 안되고 있었고 slave 가 하고 있더군요 -_-; ( 부끄러울 나름 입니다 )
기존에 와우파란 7.1을 쓰다가 싹 밀어 버리고
REDHAT 7.3 을 깔아서 쓰고 있습니다
근데 DNS 서비스를 못해서 삽질하고 있습니다 ㅠ.ㅠ
nslookup www.nicebsd.com 61.32.211.35 <-- 이넘이 master 입니다
nslookup 결과 입니다
---------------------------------------------------------
[skuldfan@finkl named]$ nslookup www.nicebsd.com 61.32.211.35
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: 61.32.211.35
Address: 61.32.211.35#53
** server can't find www.nicebsd.com: SERVFAIL
[skuldfan@finkl named]$
------------------------------------------------------------------
이렇게 에러 메세지가 떨어집니다
네임서비스 데몬은 잘 떠 있습니다
-------------------------------------------------------------------
[skuldfan@finkl named]$ ps -aux |grep named
named 3712 0.0 1.8 10384 2404 ? S 03:22 0:00 named -u named
named 3714 0.0 1.8 10384 2404 ? S 03:22 0:00 named -u named
named 3715 0.0 1.8 10384 2404 ? S 03:22 0:00 named -u named
named 3716 0.0 1.8 10384 2404 ? S 03:22 0:00 named -u named
named 3717 0.0 1.8 10384 2404 ? S 03:22 0:00 named -u named
skuldfan 4071 0.0 0.5 2656 656 pts/5 S 03:48 0:00 grep named
[skuldfan@finkl named]$
--------------------------------------------------------------------
/var/log/messages 를 봐도 별 이상한걸 모르겠습니다
---------------------------------------------------------------------
Jun 2 03:22:01 finkl named[3540]: shutting down
Jun 2 03:22:01 finkl named[3540]: stopping command channel on 127.0.0.1#953
Jun 2 03:22:01 finkl named[3540]: no longer listening on 127.0.0.1#53
Jun 2 03:22:01 finkl named[3540]: no longer listening on 61.32.211.35#53
Jun 2 03:22:01 finkl named[3537]: exiting
Jun 2 03:22:01 finkl 6월 2 03:22:01 named: named 종료 succeeded
Jun 2 03:22:05 finkl named[3712]: starting BIND 9.2.0 -u named
Jun 2 03:22:05 finkl named[3712]: using 1 CPU
Jun 2 03:22:05 finkl named[3715]: loading configuration from '/etc/named.conf'
Jun 2 03:22:05 finkl named[3715]: no IPv6 interfaces found
Jun 2 03:22:05 finkl named[3715]: listening on IPv4 interface lo, 127.0.0.1#53
Jun 2 03:22:05 finkl named[3715]: listening on IPv4 interface eth0, 61.32.211.35#53
Jun 2 03:22:05 finkl named[3715]: command channel listening on 127.0.0.1#953
Jun 2 03:22:05 finkl named[3715]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Jun 2 03:22:05 finkl named[3715]: dns_rdata_fromtext: nicebsd.com:2: near eol: unexpected endof input
Jun 2 03:22:05 finkl named[3715]: zone nicebsd.com/IN: loading master file nicebsd.com: unexpected end of input
Jun 2 03:22:05 finkl named[3715]: zone localhost/IN: loaded serial 42
Jun 2 03:22:05 finkl named[3715]: running
Jun 2 03:22:05 finkl 6월 2 03:22:05 named: named 를 시작하고 있습니다 succeeded
--------------------------------------------------------------------------------
BIND 버젼은 9.2 입니다
-------------------------------------
[root@finkl etc]# rpm -qa |grep bind
bind-utils-9.2.0-8
bind-9.2.0-8
bind-devel-9.2.0-8
ypbind-1.10-7
[root@finkl etc]#
-------------------------------------
/etc/named.conf 의 내용입니다
------------------------------------------------------------------
[skuldfan@finkl skuldfan]$ cat /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
dump-file "/var/named";
statistics-file "/var/named/named.stats";
/*
* 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 "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 "nicebsd.com" IN {
type master;
file "nicebsd.com";
};
// include "/etc/rndc.key";
[skuldfan@finkl skuldfan]$
-------------------------------------------------------------------
/var/named/nicebsd.com 의 내용입니다
-------------------------------------------------------------------
[skuldfan@finkl named]$ cat nicebsd.com
$TTL 3600
@ IN SOA ns.nicebsd.com. skuldfan.nicebsd.com.
(
2002060100 ;Serial
10800 ;Refresh
3600 ;Retry
3600000 ;Expire
3600 ;Minimum
)
IN NS ns.nicebsd.com.
IN NS ns2.nicebsd.com.
IN MX 10 mail.nicebsd.com.
IN A 61.32.211.35
mail IN A 61.32.211.35
localhost IN A 127.0.0.1
ns IN A 61.32.211.35
www IN A 61.32.211.35
finkl IN A 61.32.211.35
boa IN A 61.32.211.36
ns IN A 61.32.211.35
ns2 IN A 61.32.211.36
[skuldfan@finkl named]$
---------------------------------------------------------------------
답변 부탁드립니다 꾸벅 _^^_--스팸 없는 곳에 살고 싶어오 ㅠ.ㅠ