페도라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
뭐가 문제인지 잘 모르겠네요. 검색을 해도 저랑 같은 문제를 겪는 분은 없어서
결국 이렇게 글을 써서 올립니다.
왜 페도라6로 하냐면 -ㅅ-학교에서 쓰는 리눅스가 페도라6라서-ㅅ-;;
그냥 하다하다 지쳐서 system-config-bind 설치해놓고
bind로 만들어서 돌릴까 생각중인데 자꾸 뭐가 문제인지 모르겠어요 ㅠ.ㅠ.
눈팅만으로는 답변글을 볼 수 없습니다. 로그인하셔야 합니다.