[DNS] 네임서버설정 관련해서 문제
네임서버 설정을 했는데 문제가 있는거 같아서 질문 올립니다.
일단 설정을 다 마친 후 혹시나 해서 재부팅하고 아래와 같이 네임서버
를 재시작했습니다.
[root@localhost root]# service named restart
named 를 정지함: rndc: connect failed: connection refused [ 확
인 ]
named (을)를 시작합니다: [
확인 ]
요렇게 나오네요. 뭔가 문제가 있는 거 같긴 한데 암튼 대충 넘어가서 다
음은 nslookup을 해 보았습니다.
[root@localhost root]# nslookup
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.
> ns.domain.com
Server: 123.456.789.012
Address: 123.456.789.012#53
Non-authoritative answer:
Name: ns.domain.com
Address: 123.456.789.012
> domain.com
Server: 123.456.789.012
Address: 123.456.789.012#53
** server can't find domain.com: SERVFAIL
이상한게 ns.domain.com 은 나오는데 domain.com은 안 나오네요.
뭐가 문제인지 잘 모르겠네요.
messages 파일에는 lame server resolving ... 라고 나옵니다
아래는 설정된 파일들 입니다.
/* 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
//
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 "domain.com" IN {
type master;
file "domain.com.zone";
allow-update { none; };
};
zone "789.456.123.in-addr.arpa" IN {
type master;
file "789.456.123.in-addr.arpa.rev";
allow-update { none; };
};
include "/etc/rndc.key";
/* 789.456.123.in-addr.arpa.rev */
$TTL 86400
@ IN SOA ns.domain.com. root.ns.domain.com. (
20041226 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.domain.com.
IN A 123.456.789.012
IN MX 10 domain.com.
;;
www IN CNAME @
mail IN CNAME @
* IN CNAME @
/* domain.com.zone */
$TTL 86400
@ IN SOA ns.domain.com. root.ns.domain.com. (
20041226 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.domain.com.
012 IN PTR localhost.
/* resolv.conf */
; generated by /sbin/dhclient-script
search localdomain
search domain.com
nameserver 123.456.789.012
nameserver 168.126.63.1
위의 네 파일만 건드렸고 왜 DNS가 안 잡히는지 도움 부탁 드립니다.
/* 789.456.123.in-addr.arpa.rev */ 에서
/* 789.456.123.in-addr.arpa.rev */
에서 ns.domain.com 으로 된부분이 잘못되었습니다.
이렇게되면 domain.com으로 들어오는 값을 찾는게 아니라 ns.domain.com으로
들어오는 값을 찾게 됩니다.
즉, www.domain.com이 아닌 www.ns.domain.com을 찾는다는 소리지요.
따라서
/* 789.456.123.in-addr.arpa.rev */
/* domain.com.zone */
에 있는
@ IN SOA ns.domain.com. root.ns.domain.com. (
부분은
@ IN SOA domain.com. root.domain.com. (
형태로 바꾸어주어야합니다.
그외의 다른 설정은 이상없이 보이네요.
좀더 자세한 bind 설정은 http://oops.org/ 의 Name Server 부분을 참조해
보시기 바랍니다.
------------------------------
좋은 하루 되세요.
댓글 달기