질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

도메인 포워딩.. 어찌해야 하나요..

작성자 정보

  • 배덕한 작성
  • 작성일

컨텐츠 정보

본문

첫번째로 /etc/named.conf 의 설정

 * zone파일을 공유하지 않았을때는(예를들어),

/etc/named.conf 파일에 superusercom.zone 파일을 생성하고....

          zone "superuser.com" {

                   type master;

                   file "superusercom.zone";   <-- 새로운 zone 파일생성

          };

* zone 파일을 공유한 경우에는,

/etc/named.conf 파일에서 기존의 zone파일을 공유한다.....

          zone "superuser.com" {

                   type master;

                   file "superuser.zone";  <-- 기존의 zone파일공유

           };

두번째로,  /var/named에 위치하는 zone 파일의 설정 

* superusercom.zone의 설정

@                                    IN          SOA          ns.superuser.com. root.superuser.com. (

                                                                               생략....

                                                                                   )

                                       IN          NS          ns.superuser.com.

superuser.com.                IN          A          203.247.55.64(해당 IP주소)

www.superuser.com.      IN          A          203.247.55.64(해당IP주소)

세번째로, apache 설정이다.

* httpd.conf 파일에서 VirtualHost부분을 설정해준다.

NameVirtualHost 203.247.55.64 (해당 IP주소)

---------------------------------------------------------

<VirtualHost 203.247.55.64>

ServerAdmin   admin@superuser.com  (사용하는 멜주소입력)

DocumentRoot   /usr/local/apache/htdocs

ServerName   www.superuser.com

ServerAlias   superuser.com www.superuser.com

생략.....

</VirtualHost>

다설정하시고 데몬(named, apachectl)을 다시 돌려주시는거 잊지마시구요.....

그래도 안되시면 다시 올려주세요....

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,138 명
  • 현재 강좌수 :  36,190 개
  • 현재 접속자 :  370 명