>> Delete Reply from No. 1446 article
No. RE: dns및 버추얼웹서버 설정

등록 2001-07-12 18:52:00     조회 5
이름 바다    

		왜 옆으로 쭈욱 밀렸나요? 호호...
 bind 버전 몇으로 설정하셨는지 좀 갈쳐 주실라우?
 그리구요,
저도 님과 비슷하게 설정을 했는데 (bind 8.2)
네임서버 역할은 잘 하는데 dynamic update (nsupdate)가
동작하질 않걸랑요.
 님의 설정 file을 보니 dynamic update는 설정하지 않으신 모양인데
이 가련한 초보를 위해 함 테스트 좀 해 주시지 않으시겠어요?
  : 일단 dns에서 설정을 하시고
:                                    두번째는 아파치 config에서 설정을
:
:                                    저의 파일 일부를 적어 드리겠습니다.
:                                    /etc/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 versi
ons 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 {
:                                            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 "xxx.xxx.211.in-addr.arpa" {
:                                            type master;
:                                            file "zone-xxx.xxx.211";
:                                    };
:                                    zone "xxx.pe.kr" {
:                                            type master;
:                                            file "xxx.local";
:                                    };
:
:                                    key "key" {
:                                            algorithm hmac-md5;
:                                            secret "VbkFcuOKRUaMUV0KgTyOtrijSjADTgZJBsuLhWevkrlJC
xpMazCyDljvjFEB"; :                                    };
:
:                                    /var/named/xxx.local
:                                    @       IN      SOA     ns.xxx.pe.kr.   webmaster.xxx.pe
.kr.    ( :                                                                       
   1997022700 ; Serial :                                                               
           28800      ; Refresh :                                                    
                      14400      ; Retry :                                          
                                3600000    ; Expire :                                
                                          86400 )    ; Minimum :                      
                      IN      NS      ns.xxx.pe.kr. :                                 
           IN      A       211.xxx.xxx.xxx :                                    localhost 
      IN      A       127.0.0.1 :                                    mail    IN      A  
     211.xxx.xxx.xxx :                                    www     IN      A       211.xxx.xx
x.xxx :                                    ftp     IN      A       211.xxx.xxx.xxx
:                                    xxx     IN      A       211.xxx.xxx.xxx
:                                    xxx     IN      A       211.xxx.xxx.xxx
:                                    xxx     IN      A       211.xxx.xxx.xxx
:
:                                    /var/named/zone-xxx.xxx.211
:
:                                    @       IN      SOA     ns.xxx.pe.kr.   webmaster.xxx.pe
.kr.    ( :                                                                       
   1997022700 ; Serial :                                                               
           28800      ; Refresh :                                                    
                      14400      ; Retry :                                          
                                3600000    ; Expire :                                
                                          86400 )    ; Minimum :                      
                      IN      NS      ns.xxx.pe.kr. :                                 
   xxx      IN      PTR     xxx.pe.kr. :                                    xxx     IN   
   PTR     mail.xxx.pe.kr. :                                    xxx     IN      PTR     www.
xxx.pe.kr. :                                    xxx     IN      PTR     ftp.xxx.pe.kr. :    
                                xxx     IN      PTR     xxx.xxx.pe.kr. :                
                    xxx     IN      PTR     xxx.xxx.pe.kr. :                            
        xxx     IN      PTR     xxx.xxx.pe.kr. :
:                                    저는 이것을 가지고 dns및 아파치 웹서버,ftp,메일 
서버 까지 전부 :                                    하날로 해결하고 있습니다.
:
:                                    추가로 아파치 웹서버 의 설정은 아래와 같습니
다. :                                    /etc/httpd/conf/httpd.conf
:                                    ServerName www.xxx.pe.kr :
:                                    ### Section 3: Virtual Hosts
:                                    #
:                                    # VirtualHost: If you want to maintain multiple domains/hostnames
 on your :                                    # machine you can setup VirtualHost containers for them.
:                                    # Please see the documentation at <URL:http://www.apache.org/docs
/vhosts/> :                                    # for further details before you try to setup virtual h
osts. :                                    # You may use the command line option '-S' to verify your v
irtual host :                                    # configuration.
:
:                                    #
:                                    # If you want to use name-based virtual hosts you need to define 
at :                                    # least one IP address (and port number) for them.
:                                    #
:                                    #NameVirtualHost 12.34.56.78:80
:                                    #NameVirtualHost 12.34.56.78
:
:                                    #
:                                    # VirtualHost example:
:                                    # Almost any Apache directive may go into a VirtualHost container
. :                                    #
:                                    #<VirtualHost ip.address.of.host.some_domain.com>
:                                    #    ServerAdmin webmaster at host.some_domain.com :         
                           #    DocumentRoot /www/docs/host.some_domain.com :                  
                  #    ServerName host.some_domain.com :                                   
 #    ErrorLog logs/host.some_domain.com-error_log :                                    #    Custo
mLog logs/host.some_domain.com-access_log common :                                    #</VirtualHost>
:
:                                    #<VirtualHost _default_:*>
:
:                                    NameVirtualHost 211.xxx.xxx.xxx:80
:                                    #
:                                    # # www.foo.com 설정
:                                    #
:                                    <VirtualHost 211.xxx.xxx.xxx>
:                                            ServerName www.xxx.pe.kr :                  
                          DocumentRoot /var/www/html :                                   
 #       ErrorLog logs/www.bar.com-error_log :                                    #       Custom
Log logs/www.bar.com-access_log common :                                    </VirtualHost>
:                                    #
:                                    #
:                                    <VirtualHost 211.xxx.xxx.xxx>
:                                            ServerName xxx.xxx.pe.kr
:                                            DocumentRoot /mnt/xxx/home/xxx/public_html
:                                    #       ErrorLog logs/xxx.xxx.pe.kr-error_log
:                                    #       CustomLog logs/xxx.xxx.pe.kr-access_log common
:                                    </VirtualHost>
:                                    #
:                                    #
:                                    <VirtualHost 211.xxx.xxx.xxx>
:                                            ServerName xxx.xxx.pe.kr
:                                            DocumentRoot /mnt/xxx/home/xxx/public_html
:                                    #       ErrorLog logs/xxx.xxx.pe.kr-error_log
:                                    #       CustomLog logs/xxx.xxx.pe.kr-access_log common
:                                    </VirtualHost>
:                                    <VirtualHost 211.xxx.xxx.xxx>
:                                            ServerName xxx.xxx.pe.kr
:                                            DocumentRoot /home/xxx/public_html
:                                    #       ErrorLog logs/xxx.xxx.pe.kr-error_log
:                                    #       CustomLog logs/xxx.xxx.pe.kr-access_log common
:                                    </VirtualHost>
:                                    #
:                                    #
:                                    <VirtualHost 211.xxx.xxx.xxx>
:                                            ServerName www.xxx.pe.kr :                  
                          ServerAlias *.xxx.pe.kr :                                    </
VirtualHost> :
:                                    #</VirtualHost>
:
:                                    <IfDefine HAVE_SSL>
:                                    ##
:                                    ## SSL Virtual Host Context
:                                    ##
:
:                                    #  Apache will only listen on port 80 by default.  Defining the
 virtual server :                                    #  (below) won't make it automatically listen on
 the virtual server's port. :                                    Listen 443
:
:                                    #   SSL Session Cache:
:                                    #   The cache speeds up processing of multiple parallel requests
 from :                                    #   the same client.
:                                    SSLSessionCache shm:/var/cache/ssl_gcache_data(524288)
:
:                                    <VirtualHost _default_:443>
:
:                                    #  General setup for the virtual host
:                                    DocumentRoot "/var/www/html"
:
:                                    꼭 성공하세요
:                                    나눈다는것은 정말 즐겁구나!!!--gvim 만세!!!
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved