모 싸이트에서 마이 도메인이란 서비스를 신청해서 사용하고
있습니다.
근데 IP가 하나라서 이 하나의 IP로 4종류의 서버를 운영할려고
합니다.
마이도메인은 dandy.senux.com 이구요.
www.dandy.senux.com (웹서버) , ftp.dandy.senux.com(ftp서버),
mail.dandy.senux.com(메일서버),
ns.dandy.senux.com(DNS 서버)
물론 이름이 길어서 실용성이 없겠지만 그냥 공부 차원에서
해보려구요.
근데 의문이 있습니다.
이건 named.conf 파일이구요.
options {
directory "/var/named";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "dandy.senux.com" {
type master;
file "zone-dandy.senux.com";
};
zone "219.237.203.in-addr.arpa" {
type master;
file "zone-219.237.203";
};
이건 zone-dandy.senux.com 파일입니다.
@ IN SOA ns.dandy.senux.com. webmaster.dandy.senux.com. (
20000110504 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400) ;Minnimum
IN NS ns.dandy.senux.com.
IN A 203.237.219.93
IN HINFO "x86 Pentium" "Alzza Linux"
IN MX 10 mail.dandy.senux.com.
ns IN A 203.237.219.93
mail IN A 203.237.219.93
www IN A 203.237.219.93
ftp IN CNAME @
telnet IN CNAME @
그리고 이건 zone-219.237.203 파일이구요.
@ IN SOA ns.dandy.senux.com webmaster.dandy.senux.com. (
20000110504 ;Serial
28800 ;Refresh
14400 ;Retry
3600000 ;Expire
86400) ;Minnimum
203 IN PTR dandy.senux.com
203 IN PTR ns.dandy.senux.ocm
이상 세개의 파일이 맞게 됐는지 궁금하구요. (bind8 이구요.
소스 컴파일 했슴다.)
아파치 설정파일(httpd.conf)에서요.
ServerName 에 뭐라고 넣어야 하는지요.
전 dandy.senux.com 이라고 넣고 NameVirtualHost 설정에서 각각 www. ftp.
mail 등을
설정해 주려고 하거든요. 근데 책에서 보니깐 자기 도매인은
linux.co.kr 이면서
아파치의 ServerName에는 www.linux.co.kr을 써넣었더라구요.
아래는 httpd.conf 중 VirtualHost 부분입니다.
NameVirtualHost 203.237.219.93
<VirtualHost 203.237.219.93>
ServerName www.dandy.senux.com
</VirtualHost>
<VirtualHost 203.237.219.93>
ServerName ftp.dandy.senux.com
DocumentRoot /home/ftp
ErrorLog logs/ftp.dandy.senux.com-error_log
CustomLog logs/ftp.dandy.senux.com-access_log common
</VirtualHost>
<VirtualHost 203.237.219.93>
ServerName mail.dandy.senux.com
ServerAlias *.dandy.senux.com
DocumentRoot /home/mail
ErrorLog logs/mail.dandy.senux.com-error_log
CustomLog logs/mail.dandy.senux.com-access_log common
</VirtualHost>
현재 제 네트워크의 기본 DNS는 저희 학교꺼로 되어있거든요.
이럴때 제 DNS가 정상적으로 운영되는지 알수 있는 방법좀
알려주세요.
nslookup으로 하는 방법이 있던데 아래는 그걸 했을때 결과
입니다.
[root@dandy lib]# nslookup
Default Server: ns.anseo.dankook.ac.kr
Address: 203.237.216.2
> server ns.dandy.senux.com
*** Can't find address for server ns.dandy.senux.com: Non-existent host/domain
> lserver ns.dandy.senux.com
*** Can't find address for server ns.dandy.senux.com: Non-existent host/domain
> server ns.anseo.dankook.ac.kr
Default Server: ns.anseo.dankook.ac.kr
Address: 203.237.216.2
지금 안돼는 거죠? 이거 작동 좀 되게 좀 알려 주세요.
미치겠군요.
그리고 한가지 의문이 더 있습니다. 왜 ns.dandy.senux.com은
NameVirtualHost에
정의를 하지 않아도 돼는거죠? 안하던데요.
|