문제

When nameservers are being declared in etc/resolv.conf, rsyslog shows a significant delay while parsing incoming log events.

I suppose this happens because DNS resolving takes place for each processed event.

When nameservers are not declared in resolv.conf, rsyslog works like a charm.

Here comes the dilemma.

I need DNS queries for my web application (hosted in the same server) to be fully functional but when i declare nameservers in resolv.conf, rsyslog has a hard time.

What should i do?

Thank you,

Apostolos

도움이 되었습니까?

해결책

By default rsyslog does a reverse dns lookup on every log that comes through. Simply disable the reverse lookup in rsyslog. The option to start rsyslog with is "-x" to disable dns lookups.

http://linux.die.net/man/8/rsyslogd

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top