sun's longitude:300 33 44.32 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  

질문과 답변 게시판입니다.

현재 실시간으로 이곳 서버의 설정파일(몇개)를 보여주고 있습니다.
서버의 설정내용에 관한 질문은 먼저 이곳 서버의 설정내용을 참고하시길 바랍니다.

[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
665 번 글: DNS 설정 마쳤습니다. 고맙습니다. ^^
글쓴이: 한경숙 글쓴날: 2001년 05월 28일 14:07:01 월(오후) 조회: 964
안녕하세요.

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 +@

Re: [질문] 아파치에서 Proxy Server의 포트를 설정하려면...? 안녕하세요.
인쇄용 


apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.02(server) + (network) + (browser) seconds