SentOS 5.3 에서 DNS 공부 하고 있습니다... IP : 192.168.207.100 도메인 네임 - shjshj16.local
1번 질문
실습중에 오류가 나는데 로그파일을 봐도 잘 모르겠습니다... 완전 초보라서...ㅠ.ㅠ
자세한 설명 부탁드립니다..
[root@shjshj16 named]# /etc/rc.d/init.d/named start
named를 시작 중:
named 설정 오류:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
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
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
zone 207.168.192.in-addr.arpa/IN: loading master file named.rev: file not found
localhost_resolver/207.168.192.in-addr.arpa/IN: file not found
zone shjshj16.local/IN: loading master file shjshj16.zone: file not found
localhost_resolver/shjshj16.local/IN: file not found
[실패]
2번 질문..
nslookup 을 통해
nslookup
>shjshj16.local
Server: 168.126.63.1
Address: 168.126.63.1#53
shjshj16.local canonical name = kdn.ktguide.com.
Name: kdn.ktguide.com
Address: 61.110.21.165
이렇게 나옵니다... 원래는 제 pc가 첫번째 네임서버가 되니까 먼저 제pc에서 검색을 해야 하는데 바로 kt로 넘어가네요..
============================================================================================================
3번 질문.. named 를 보면 소유권이 root인것도 있는데 한가지로 마춰줘야 하는지요...
/var/named/
drwxr-x--- 6 root named 4096 4월 23 21:49 chroot
drwxrwx--- 2 named named 4096 1월 21 21:31 data
lrwxrwxrwx 1 root named 45 4월 23 21:40 localdomain.zone -> /var/named/chroot//var/named/localdomain.zone
lrwxrwxrwx 1 root named 43 4월 23 21:40 localhost.zone -> /var/named/chroot//var/named/localhost.zone
lrwxrwxrwx 1 root named 44 4월 23 21:40 named.broadcast -> /var/named/chroot//var/named/named.broadcast
lrwxrwxrwx 1 root named 37 4월 23 21:40 named.ca -> /var/named/chroot//var/named/named.ca
-rw-r--r-- 1 root root 2941 3월 24 11:11 named.cache
lrwxrwxrwx 1 root named 44 4월 23 21:40 named.ip6.local -> /var/named/chroot//var/named/named.ip6.local
lrwxrwxrwx 1 root named 40 4월 23 21:40 named.local -> /var/named/chroot//var/named/named.local
-rw-r--r-- 1 root root 203 4월 23 22:19 named.rev
lrwxrwxrwx 1 root named 39 4월 23 21:40 named.zero -> /var/named/chroot//var/named/named.zero
-rw-r--r-- 1 root root 666 4월 23 22:52 shjshj16.local.zone
drwxrwx--- 2 named named 4096 1월 21 21:31 slaves
============================================================================================================
4번 질문..
named/data - data 안에는 원래 아무것도 없는건가요?
책에 보니 tail /var/named/data/named.run 을 실행하라고 나오는데 들어가보니 아무것도 없네요
밑에는 설정한 내용들입니다...
============================================================================================================
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.207.100 shjshj16.local shjshj16
::1 localhost6.localdomain6 localhost6
============================================================================================================
vi /var/named/named.rev
$TTL 86400
@ IN SOA ns.shjshj16.local. root.shjshj16.local. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.shjshj16.local.
162 IN PTR ns.shjshj16.local.
============================================================================================================
vi /var/named/shjshj16.local.zone
$TTL 86400
@ IN SOA ns.shjshj16.local. root.gmail.com. (
2007051800 ; Serial
1H ; Refresh
10M ; Retry
1W ; Expire
86400 ) ; Minimum
IN NS ns.shjshj16.local
IN MX 10 mail.shjshj16.local.
IN A 192.168.207.100
ns IN A 192.168.207.100
www IN A 192.168.207.100
mail IN CNAME www
ftp IN CNAME @
* IN CNAME @
============================================================================================================
vi /var/named/localdomain.zone
$TTL 86400
@ IN SOA localhost root (
42 ; serial (d. adams)
1H ; refresh
10M ; retry
1W ; expiry
1D ) ; minimum
IN NS localhost
localhost IN A 127.0.0.1
============================================================================================================
vi /var/named/localhost.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
1H ; refresh
10M ; retry
1W ; expiry
1D ) ; minimum
IN NS @
IN A 127.0.0.1
IN AAAA ::1
============================================================================================================
vi /etc/named.rfc1912.zones 에서 아래내용 추가
zone "207.168.192.in-addr.arpa" IN {
type master;
file "named.rev";
allow-update { none; };
};
zone "shjshj16.local" IN {
type master;
file "shjshj16.zone";
allow-update { none; };
눈팅만으로는 답변글을 볼 수 없습니다. 로그인하셔야 합니다.