집에서 온라인 상태가 아닌 상태에서여..두대 가지구 테스트 중입니다.
컴한대에는 리눅스(알짜6.1)를 또 한대에는 윈98을 깔았거든여.
물론 두개의 랜카드로 연결되어 있습니다.
해서..
리눅스에 DNS를 설치했습니다.
설치하구서..nslookup을 하니깐 아래와 같이 나오더군여..
Default Server: ns.linuxbox.com
Address:192.1.2.1
>linuxbox.com
Server: ns.linuxbox.com
Address:192.1.2.1
Non-authoritative answer
Name: linuxbox.com
Address:192.1.2.1
>www.linuxbox.com Server: ns.linuxbox.com
Address:192.1.2.1
Non-authoritative answer
Name: www.linuxbox.com Address:192.1.2.1
위처럼 나옵니다. 브라우져에서는
linuxbox.com과 www.linuxbox.com 모두가 브라우져로 연결이됩니다.
여기 질문란에서 검색을 해보니깐 Non-authoritative answer가 나오면
설정이 잘못 되겄 같던데..고수님들이 설정 확인 좀 해주십시요. 꾸벅.
** named.conf **
// a caching only nameserver config
//
zone "." {type hint; file "named.ca";};
zone "0.0.127.in-addr.arpa" {type master; file "named.local";};
zone "linuxbox.com" {type master; file "linuxbox.zone";};
zone "2.1.192.in-addr.arpa" {type master; file "linuxbox.rev";};
** linuxbox.zone **
@ IN SOA ns.linuxbox.com. root.ns.linuxbox.com. (
2000082500;Serial
28800;Refresh
14400;Retry
3600000;Expire
86400);Minimum
IN NS ns.linuxbox.com.
IN A 192.1.2.1
IN MA 10 mail.linuxbox.com.
localhost IN A 127.0.0.1
ns IN A 192.1.2.1
mail IN A 192.1.2.1
www IN A 192.1.2.1
** linuxbox.rev **
@ IN SOA ns.linuxbox.com. root.ns.linuxbox.com. (
2000082500;Serial
28800;Refresh
14400;Retry
3600000;Expire
86400);Minimum
IN NS ns.linuxbox.com.
1 IN PTR ns.linuxbox.com
1 IN PTR linuxbox.com