안녕하세요
제가 보기엔 ip를 도메인으로 맵핑해주는 PTR정보때문이라고
생각합니다. ( dew21.com 이고 아이피는 211.224.31.124 )
제가 약간 제 맛대로 수정해보면,
# /etc/resolv.conf 는
// generated by named-bootconf.pl
options {
directory "/var/named";
//listen-on {!211.224.31.126; 211.224.31.125;};
//cleaning-interval 128; //3사간 마다
/*
* 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 { // 여기서 IN은 생략하셔도 됩니다. 안쓰면 안되는줄
type hint; // 알았더만, 생략하셔도 디폴트로 알아서 해결되더군요.:)
file "named.ca";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};
zone "dew21.com" IN {
type master;
file "dew21.com";
};
zone "31.224.211.in-addr.arpa" {
type master;
file "zone-31.224.211.rev";
};
# dew21.com의 zone파일입니다.
@ IN SOA ns1.dew21.com. root.dew21.com. (
2000111200 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum TTL
IN NS ns1.dew21.com.
IN NS ns2.dew21.com.
IN A 211.224.31.124
IN MX 10 mail
mail IN A 211.224.31.124
;
ns1 IN A 211.224.31.124
ns2 IN A 211.224.31.123
;
www IN A 211.224.31.124 // 제 취향은 CNAME을 안쓰는겁니다.
ftp IN A 211.224.31.124 // 나중에 엄청 고달퍼지거든요. :)
telnet IN A 211.224.31.124
# dew21.com의 reverse입니다.
@ IN SOA ns1.dew21.com. root.dew21.com. (
2000110900 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns1.dew21.com.
IN NS ns2.dew21.com.
;
124 IN PTR dew21.com. // 이부분에서 잘못되거같습니다.
//
124 IN PTR ns1.dew21.com.
123 IN PTR ns2.dew21.com.
대충 이렇게 하시면 될것같군요.
비슷하게. zone-0.0.127.in-addr.arpa를 설정하면 될듯싶네요.
즐거운 리눅스~
: 정말 답답하게 안됩니다. dns 설정을 다 했는데 죽어도 맨날 같은 메세지인.
: can t find server name for address 211.224.31.124: non-existent host/domain
: default servers are not available 이라고 나옵니다.
: 여기에 named.conf 파일과 resolvl.conf 그리고 zone 파일두개랑 messages파일 같이
: 올리니까여.. 제발 좀 보고 모가 잘못되서 이러는지 좀 알려주세요... 부탁....제발..
: 도메인명은 dew21.com 이고 아이피는 211.224.31.124 입니다.
: 한대에 dns 와 웹서버를 같이 돌리려고 합니다.
:
: 우선 named.conf
: // generated by named-bootconf.pl
: options {
: directory "/var/named";
: //listen-on {!211.224.31.126; 211.224.31.125;};
: //cleaning-interval 128; //3사간 마다
: /*
: * 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 "." {
: type hint;
: file "named.ca";
: };
:
: zone "0.0.127.in-addr.arpa" {
: type master;
: file "named.local";
: };
:
: zone "dew21.com" {
: type master;
: file "name.zone";
: };
:
: zone "31.224.211.in-addr.arpa" {
: type master;
: file "zone-31.224.211";
: };
:
: 고다음 forward 파일
:
: @ IN SOA ns1.dew21.com. root.dew21.com. (
: 2000111200 ; Serial
: 28800 ; Refresh
: 14400 ; Retry
: 3600000 ; Expire
: 86400 ) ; Minimum
: IN NS ns1.dew21.com.
: IN NS ns2.dew21.com.
: IN A 211.224.31.124
: IN HINFO "686 Pentiume" "RedHat Linux"
: ; IN MX @
: ns1 IN A 211.224.31.124
: ns2 IN A 211.224.31.123
: www IN CNAME @
: ftp IN CNAME @
: telnet IN CNAME @
: mail IN CNAME @
:
: 고다음 리버스파일
: @ IN SOA ns1.dew21.com. root.dew21.com. (
: 2000110900 ; Serial
: 28800 ; Refresh
: 14400 ; Retry
: 3600000 ; Expire
: 86400 ) ; Minimum
: IN NS ns1.dew21.com.
: IN NS ns2.dew21.com.
: ;
: 126 IN PTR dew21.com.
: 126 IN PTR ns1.dew21.com.
: 126 IN PTR ns2.dew21.com.
:
: 고다음 resolve 파일
: nameserver 211.224.31.124
: search
:
: 이어서 에러체크하는 메세지로그파일 올립니다.