| 665 번 글: DNS 설정 마쳤습니다. 고맙습니다. ^^ |
| 글쓴이: 한경숙
|
글쓴날: 2001년 05월 28일 14:07:01 월(오후) |
조회: 965 |
안녕하세요.
zone file을 세 개 작성해야 하는 것을 몰랐습니다.
그래서 한 참 헤맸네요.
zone-test.com, zone-0.0.10.in-addr-arpa, zone-0.0.127.in-addr-arpa
이렇게 3개의 zone file을 작성한 후 nameserver를 가동하니
다음과 같이 잘 됩니다.
조언에 감사드립니다. ^^
==================================================================
[root@test named]# pwd
/var/named
[root@test named]# vi zone-test.com
test.com IN SOA ns.test.com. root.test.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.test.com.
mail IN MX 10 mail
mail IN A 10.0.0.1
;Host here - this is comments
ns IN A 10.0.0.1
IN HINFO "x86" "wow linux"
www IN A 10.0.0.1
[root@test named]# vi zone-0.0.10.in-addr.arpa
@ IN SOA ns.test.com root.test.com (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.test.com.
;Host here - this is comments
1 IN PTR ns.test.com.
1 IN PTR mail.test.com.
1 IN PTR www.test.com.
[root@test named]# vi zone-0.0.127.in-addr.arpa
@ IN SOA ns.test.com. root.test.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.test.com.
;IP-domain mapping here
1 IN PTR localhost.
[root@test named]# /etc/rc.d/init.d/named start
Starting named: [ OK ]
[root@test named]# nslookup test.com
Server: ns.test.com
Address: 127.0.0.1
[root@test named]# nslookup mail.test.com
Server: ns.test.com
Address: 127.0.0.1
Non-authoritative answer:
Name: mail.test.com
Address: 10.0.0.1
[root@test named]# nslookup www.test.com
Server: ns.test.com
Address: 127.0.0.1
Non-authoritative answer:
Name: www.test.com
Address: 10.0.0.1
=================================================================
|
이전글 : Re: [질문] 아파치에서 Proxy Server의 포트를 설정하려면...?
다음글 : 안녕하세요.
|
from 211.192.56.45
JS(Redhands)Board 0.4 +@
|