개인 홈페이지 존 파일을 못읽습니다.
작성자 정보
- 박형규 작성
- 작성일
컨텐츠 정보
- 2,199 조회
- 2 댓글
- 0 추천
- 목록
본문
페도라 6에서 vmware로 홈페이지(www.phk.com)이라는 홈페이지를 제작 후
가상망에서 올리려고 하는데요. named 데몬은 실행이 되는데 phk.com은 안올라오네요
로그는 자꾸 이렇게 나오네요.
May 26 03:47:30 localhost named[14583]: zone phk.com/IN/localhost_resolver: loading master file phk.com.zone: permission denied
named.r---.conf 설정입니다. (/var/named/chroot/etc)
zone "phk.com" IN {
type master;
file "phk.com.zone";
allow-update { none; };
};
phk.com.zone 파일 설정입니다. (/var/named/chroot/var/named/)
$TTL 86400
$ORIGIN phk.com.
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 192.168.152.10
IN AAAA ::1
www IN A 192.168.152.10
phk.com.zone 파일은 심볼릭링크로 /var/named 에 생성했습니다.
마지막으로 손본것은 named.caching--.conf (/var/named/choot)
options {
listen-on port 53 { 192.168.152.10; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { localhost; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
recursion yes;
include "/etc/named.rfc191.zones";
};
보시면 localhost 어쩌구 저쩌구하는거 지웠고요.
listen-on port 53 { 127.0.0.1}부분을 listen-on port 53 {192.168.152.10} 로 바꾸었습니다.
아래는 로그 원본입니다.
May 26 03:39:57 localhost named: zone localdomain/IN: loaded serial 42
May 26 03:39:57 localhost named: zone localhost/IN: loaded serial 42
May 26 03:39:57 localhost named: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
May 26 03:39:57 localhost named: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
May 26 03:39:57 localhost named: zone 255.in-addr.arpa/IN: loaded serial 42
May 26 03:39:57 localhost named: zone 0.in-addr.arpa/IN: loaded serial 42
May 26 03:39:57 localhost named: zone phk.com/IN: loading master file 192.168.152.10: file not found
May 26 03:39:57 localhost named: localhost_resolver/phk.com/IN: file not found
May 26 03:47:29 localhost named[14583]: starting BIND 9.3.4-P1 -u named -c /etc/named.caching-nameserver.conf -t /var/named/chroot
May 26 03:47:29 localhost named[14583]: found 1 CPU, using 1 worker thread
May 26 03:47:30 localhost named[14583]: loading configuration from '/etc/named.caching-nameserver.conf'
May 26 03:47:30 localhost named[14583]: listening on IPv6 interface lo, ::1#53
May 26 03:47:30 localhost named[14583]: listening on IPv4 interface eth0, 192.168.152.10#53
May 26 03:47:30 localhost named[14583]: command channel listening on 127.0.0.1#953
May 26 03:47:30 localhost named[14583]: command channel listening on ::1#953
May 26 03:47:30 localhost named[14583]: zone 0.in-addr.arpa/IN/localhost_resolver: loaded serial 42
May 26 03:47:30 localhost named[14583]: zone 0.0.127.in-addr.arpa/IN/localhost_resolver: loaded serial 1997022700
May 26 03:47:30 localhost named[14583]: zone 255.in-addr.arpa/IN/localhost_resolver: loaded serial 42
May 26 03:47:30 localhost named[14583]: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN/localhost_resolver: loaded serial 1997022700
May 26 03:47:30 localhost named[14583]: zone phk.com/IN/localhost_resolver: loading master file phk.com.zone: permission denied
May 26 03:47:30 localhost named[14583]: zone localdomain/IN/localhost_resolver: loaded serial 42
May 26 03:47:30 localhost named[14583]: zone localhost/IN/localhost_resolver: loaded serial 42
May 26 03:47:30 localhost named[14583]: running
뭐가 문제인지 잘 모르겠네요. 검색을 해도 저랑 같은 문제를 겪는 분은 없어서
결국 이렇게 글을 써서 올립니다.
관련자료
-
이전
-
다음
suki님의 댓글
- suki
- 작성일
김경훈님의 댓글
- 김경훈
- 작성일
아래와 같이 slaves/ 추가하여 설정해보세요
file "slaves/initialk.com.zone";