안녕하세요.
이곳에서 좋은 정보 많이 얻고 있습니다.
웹호스팅을 받다가 고정 IP를 얻어 서버를 구축하였습니다. 하지만 네임서버
설정이 제대로 되지 않은 것 같아(ip로는 ftp, www접속이 되고 있습니다.)청합니다.
아래와 같이 설정후 서버에서
#nslookup 하면
*** Can't find server name for address 211.173.x.x: No respond from server
Default server : cns2.bora.net
Address : 164.124.107.9
>
라는 멧세지만 나옵니다. 참고로 아직 네임서버는 웹호스팅업체로 되어 있습니다.
오늘 NIC에 변경신청을 하였습니다.(네임서버 변경신청이 이루어 지지 않아서 그런
것인지도 궁금합니다.)
아래는 제 서버의 네임서버 설정 관련파일입니다.
잘못된 곳의 수정을 부탁드립니다.
1. /etc/hosts 파일
127.0.0.1 localhost
211.173.10.110 ns.abc.org
211.173.10.110 abc.org
2. /etc/HOSTNAME 파일
abc
3. /etc/sysconfig/network 파일
NETWORKING=yes
FORWARD_IPV4=false
HOSTNAME=abc
domainname=abc.org
GATEWAY=211.173.x.x
4. /etc/resolv.conf 파일
search ns.abc.org abc.org
nameserver 211.173.x.x(제 서버 ip 주소)
nameserver 164.124.107.9(데이콤 캐싱서버)
nameserver 203.248.252.2(데이콤 캐싱서버)
5. /etc/named.conf 파일
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "named.local";
};
zone "abc.org" IN {
type master;
file "abc.zone";
};
zone "x.173.211.in.addr-arpa" IN {
type master;
file "abc.rev";
};
6. /etc/named.local 파일
@ IN SOA ns.abc.org. admin.abc.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
7. /var/named/abc.rev 파일
@ IN SOA ns.abc.org. admin.abc.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.abc.org.
; IP-Domain mapping here
1 IN PTR ns.abc.org.
2 IN PTR www.abc.org. 8. /var/named/abc.zone 파일
@ IN SOA ns.abc.org. admin.abc.org. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS ns.abc.org.
@ IN A 211.173.x.x
IN MAX 10 abc.org.
IN MAX 20 www.abc.org. IN MAX 30 mail.abc.org.
; Hosts Here - This is comments
localhost IN A 127.0.0.1
ns IN A 211.173.x.x
www IN A 211.173.x.x
이상입니다. 제가 빠트린 것이 있는지 네임서버 설정후 telnet 설정이 되지
않습니다.
여러 선배님들의 도움을 부탁드립니다.