: 현재 http://www.xxx.com 이란 도메인을 운영한다고 할때 계정을 linux
: 라고 하나주구요.
: zone 파일에서 linux 를 잡아줬거든요.그래서 http://linux.xxx.com 은 접속이
: 잘됩니다. 근데 문제는 그냥 www.xxx.com 은 접속이 되는데
: www.linux.xxx.com 은 접속이 안됩니다.서버를 찾지못한다고 나오는군요.
: 그래서 혹시나해서 named.conf 에 linux라는 zone 파일을 만들고
: zone 파일에서 세팅을 해줬습니다.
: 세팅방법이 틀려서 그런지 그냥 똑같은 상황이되더군요.www 는 여전히...
: 아래는 저의 세팅입니다.먼저 /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 versions 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 "." {
: type hint;
: file "named.ca";
: };
:
: zone "0.0.127.in-addr.arpa" {
: type master;
: file "named.local";
: };
: zone "xxx.com" {
: type master;
: file "xxx.zone";
: };
: zone "linux.xxx.com" {
: type master;
: file "linux.zone";
: };
:
:
: 다음은 zone 파일인데요. linux 에관한 zone파일입니다.
:
: @ IN SOA linux.xxx.com. root.xxx.com. (
: 1999052500 ; Serial
: 28800 ; Refresh
: 14400 ; Retry
: 3600000 ; Expire
: 600 ) ; Minimum
:
: ;
: IN NS ns.xxx.com.
: IN MX 10 @
: IN A xxx.xxx.xxx.xxx
: ;
: ns IN A xxx.xxx.xxx.xxx
: mail IN A xxx.xxx.xxx.xxx
: www IN CNAME @
:
:
: 이렇게 해줬거둔요.뭐가 문제인지...아님 또 따로 설정할곳이 있나요?
: 아파치의 httpd.conf 파일의 가상호스트는 이미잡아주었습니다.
: 그럼 좋은 답변 기다리겠습니다.
apache의 virtualhost에서 ServerAlias를 적절히 사용하셔도 될듯.--언제 고수가 되지.. 그날을 기
다리며