PDNS의 다양한 에러 로그 및 해결책

리눅스/DNS|2015. 1. 26. 17:35
반응형
제가 운영하며 겪었던 오류 메세지 및 해결책입니다.
국내 문서는 거의 희박하여 해결하는데 고생했습니다...
같은 오류가 출력되는 분을 위해 기록해둡니다.


[에러]
Jan 20 10:23:10 ns1 pdns[18253]: AXFR of domain 'sysdocu.com' failed: not authoritative

[해결]
pdns.conf 파일에 disable-axfr=no 설정

--------------------------

[에러]
Jan 20 10:56:32 ns1 pdns[12973]: Received a malformed qdomain from 27.102.207.197, 'http://sysdocu.com': sending servfail

[해결]
설정상의 특별한 문제가 있는것이 아니므로 무시해도 됩니다.
쿼리를 도메인으로 하지 않고 잘못된 쿼리를 요청해서 응답할 수 없다고 나타나는 메세지 입니다.

예)
nslookup http://sysdocu.com ns1.sysdocu.com    // 잘못된 쿼리
nslookup sysdocu.com ns1.sysdocu.com          : // 정상 쿼리

--------------------------

[에러]
Jan 20 10:27:23 ns1 pdns[3077]: Recursive query for remote 176.31.191.182:25345 with internal id 65 was not answered by backend within timeout, reusing id

[해결]
recursor=168.126.63.1 이와 같이 ISP 업체 네임서버를 사용하더라도 정보를 받아오는데 시간이 걸리기 때문에 발생한 문제입니다.
이를 해결하려면 자체 네임서버(pdns 구동 서버)의 pdns-recursion 설정을 통해 해결하면 됩니다.

# vi /etc/pdns-reursor/recursor.conf
setuid=pdns-recursor
setgid=pdns-recursor
config-dir=/etc/pdns-recursor/
daemon=yes
local-port=54
socket-dir=/var/run/

version-string=ns1.sysdocu.com 


pdns-recursor 를 54번 포트로 구동합니다.
# /etc/init.d/pdns-recursor start

그리고 pdns.conf 파일 옵션중 recursor 만 아래 내용으로 수정합니다.
recursor=127.0.0.1:54

끝으로 pdns 를 재시작 해줍니다.
# /etc/init.d/pdns restart

--------------------------

[에러]
Jan 20 13:57:52 ns9 pdns[18384]: Discarding packet from recursor backend with id 18397, qname or qtype mismatch

[해결]
질의 응답은 정상적이나 messages 로그에 대량의 로그가 쌓입니다.
이는 /etc/resolv.conf 의 네임서버와 pdns.conf 의 recursor 설정 IP가 맞지 않아서 발생하는 문제이므로
recursor 에 설정한 IP를 /etc/resolv.conf 에 설정한 IP와 동일하게 맞추어 주면 됩니다.


반응형

댓글()