djbdns 구성 후 No response from server 문의
글쓴이: jklim / 작성시간: 화, 2012/01/17 - 10:50오전
안녕하세요.
가입하고 첫글이 질문이라 죄송합니다.
다름 아닌 사내에서 사용할 mail 및 dns 서버 구성 때문에 아래와 같은 조합으로 구성하였습니다.
OS : CentOS release 6.2 (Final)
daemontools, ucspi-tcp
qmail + vpopmail + mysql + qmailadmin
위와 같이 구성하였으며, pop3이나 smtp 접속은 문제 없는 것 같습니다.
그리고 djbdns 구성하여 아래와 같이 windows client 단에서 nslookup 으로 dns 서비스 점검을 시도하였습니다.
c:\>nslookup > server xxx.xxx.xxx.xxx Default Server: xxx.xxx.co.kr Address: xxx.xxx.xxx.xxx > google.co.kr Server: xxx.xxx.co.kr Address: xxx.xxx.xxx.xxx *** xxx.xxx.co.kr can't find google.co.kr: No response from server
내부, 외부 둘다 설정한 내용은 query가 return 되지 않는 것 같습니다.
로컬에서 tinydns-get 명령으로 google.co.kr을 확인하여 보니,
[root@mail var]# tinydns-get a google.co.kr 1 google.co.kr:
주소를 query 못하는 것 같습니다.
하여, port를 확인하여 보니,
[root@mail var]# netstat -na | grep 53 tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN udp 0 0 127.0.0.1:53 0.0.0.0:* udp 0 0 127.0.0.1:53 0.0.0.0:*
포트는 열려 있고, 방화벽 또는 selinux가 문제될 요소가 있을 것 같아 아래와 같이 내려 놓은 상태입니다.
[root@mail var]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination [root@mail var]# sestatus SELinux status: disabled
[root@mail var]# cat /etc/hosts.* # # hosts.allow This file contains access rules which are used to # allow or deny connections to network services that # either use the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers # ALL:ALL # # hosts.deny This file contains access rules which are used to # deny connections to network services that either use # the tcp_wrappers library or that have been # started through a tcp_wrappers-enabled xinetd. # # The rules in this file can also be set up in # /etc/hosts.allow with a 'deny' option instead. # # See 'man 5 hosts_options' and 'man 5 hosts_access' # for information on rule syntax. # See 'man tcpd' for information on tcp_wrappers #
데몬은 아래와 같이 정상 구동 인 것 같습니다.
dns 관련 process
dnslog 14407 1920 0 Jan16 ? 00:00:00 multilog t ./main dnslog 14409 1916 0 Jan16 ? 00:00:00 multilog t ./main dnslog 14411 1923 0 Jan16 ? 00:00:00 multilog t ./main root 14720 1912 0 Jan16 ? 00:00:00 supervise dnscache dnscache 14751 14720 0 Jan16 ? 00:00:00 /usr/local/bin/dnscache root 18106 1912 0 09:47 ? 00:00:00 supervise tinydns tinydns 18107 18106 0 09:47 ? 00:00:00 /usr/local/bin/tinydns
pstree
init-+-abrt-dump-oops |-abrtd |-acpid |-atd |-auditd---{auditd} |-automount---4*[{automount}] |-cupsd |-dbus-daemon |-hald---hald-runner-+-hald-addon-acpi | `-hald-addon-inpu |-httpd---10*[httpd] |-mcelog |-6*[mingetty] |-mysqld_safe---mysqld---9*[{mysqld}] |-qpidd---2*[{qpidd}] |-rpc.idmapd |-rpc.statd |-rpcbind |-rsyslogd---2*[{rsyslogd}] |-sshd-+-sshd---bash---pstree | `-sshd---bash---tail |-svscanboot-+-readproctitle | `-svscan-+-6*[supervise---multilog] | |-supervise---qmail-send-+-qmail-clean | | |-qmail-lspawn | | `-qmail-rspawn | |-supervise | |-2*[supervise---tcpserver] | |-supervise---dnscache | `-supervise---tinydns |-udevd---udevd `-xinetd
혹시, 제가 간과하거나 tip이 있으시면 조언 부탁드리겠습니다.
(연결이 느려서 여러번 저장 누르다 보니 게시글이 너무 많이 올라 온 것 같습니다.
도배로 보여 죄송하며, 삭제 방법 알려주시면 지우도록 하겠습니다.)
Forums:
댓글 달기