| 656 번 글의 답장글: Re: [질문]한대의 머신이 Web server이자 Mail Server일 때. |
| 글쓴이: 산이
[홈페이지]
|
글쓴날: 2001년 05월 24일 23:28:49 목(저녁) |
조회: 1360 |
[한경숙]님이 남기신 글:
>안녕하세요.
>
>한대의 머신이 Web server, Mail Server 그리고 Name sever의 역할을
모두 해야 합니다.
>
>
># netcfg &
>하여 설정한 network 내용은 다음과 같습니다.
><font color= red>IP : 10.0.0.1<br>
>host name : test.com<br>
>domain name : test.com<br>
>name server : 10.0.0.1<br>
></font>
>
>
>
>제가 다음과 같이 DNS 관련 file을 설정했는데 문제가
있네요.
>
>1)
>[root@test /root]# cat /etc/sendmail.cf | grep Cw
>Cwlocalhost
>[root@test /root]# vi /etc/sendmail.cf
>
>##################
># local info #
>##################
>
>Cwlocalhost test.com www.test.com mail.test.com ns.test.com
>
>
>2)
>[root@test mail]# pwd
>/etc/mail
>[root@test mail]# vi local-host-names
># local-host-names - include all aliases for your machine here.
>test.com
>www.test.com
>mail.test.com
>ns.test.com
>
>
>3)
>[root@test named]# pwd
>/var/named
>[root@test named]# vi zone-test.com
>$TTL 86400
>@ IN SOA ns.test.com. root.test.com. (
> 1997022700 ; Serial
> 28800 ; Refresh
> 14400 ; Retry
> 3600000 ; Expire
> 86400 ) ; Minimum
> IN NS ns.test.com.
>test.com. IN A 10.0.0.1
>test.com. IN MX 10 test.com.
>mail.test.com. IN A 10.0.0.1
>mail.test.com. IN A 10 test.com
>
>
>******** 위와 같이 설정했을 때 나타나는 문제는 다음과
같습니다. ********
>
>1)
>[root@test /root]# nslookup test.com
>*** Can't find server name for address 10.0.0.1: No response from
server
>*** Default servers are not available
>
>2)
>[root@test /root]# telnet mail.test.com 110
>mail.test.com: Host name lookup failure
>[root@test /root]# telnet test.com 110
>Trying 10.0.0.1...
>Connected to test.com.
>Escape character is '^]'.
>+OK POP3 test.com v2000.69rh server ready
>quit
>+OK Sayonara
>Connection closed by foreign host.
>
>3) mail client에서 POP3 server 설정할 때 mail.test.com 이라고 설정한
경우는
>cann't open the server 라는 메시지가 나옵니다.
>그러나 POP3 server를 test.com 라고 설정한 경우는 mail을
읽어옵니다.
>
>
>4) netscape에서 URL을 http://test.com 이라고 하면 정상적으로
접속하지만
>URL을 http://www.test.com
이라고 하면 DNS에 없다고 하면서
>보관 중인 html 문서를 불러온다는 dialog box가 뜹니다.
>
>
>제가 mail server와 web server와 DNS를 정상적으로 동작시키기
위해서
>무엇을 해야 할까요?
>
><b><font color=blue>좋은 하루 되세요!!!</font></b>
========================================
일단은 네임서버가 제대로 작동하지 않는것 같군요..
# /etc/rc.d/init.d/named start
로 한다음
# ps -ef | grep named
로 네임서버가 제대로 동작하는지 보세요..
그리고
/etc/resolv.conf
파일에
nameserver 127.0.0.1
이와 같이 적접 loopback 주소를 바꾸어 줍니다.
# nslookup 으로
리졸빙 테스트..
결론적으로 네임서버가 제대로 작동하지 않기 때문에
이름 <-> ip 주소로 변환하지 못합니다.
원인은 네임서버가 작동하지 않음...
|
이전글 : [질문]한대의 머신이 Web server이자 Mail Server일 때.
다음글 : [질문]Default servers are not available입니다
|
from 211.35.159.152
JS(Redhands)Board 0.4 +@
|