WebAlizerのDNSの逆引きを止める

技術関係

WebAlizerを使っていて妙に処理が重いという話で見ていると、アクセス元を調べるためにDNSの逆引きを行っていた。もちろん必要な処理なら仕方ないのだけど、特段必要じゃなかったのでDNS逆引きを止めた話。

と言っても対応自体は簡単で、webalizer.conf のDNSChildrenを0にするだけ。デフォルトだと0らしいのだけど、必要に応じて見直してみる。

# DNSChildren allows you to specify how many "children" processes are
# run to perform DNS lookups to create or update the DNS cache file.
# If a number is specified, the DNS cache file will be created/updated
# each time the Webalizer is run, immediately prior to normal processing,
# by running the specified number of "children" processes to perform
# DNS lookups.  If used, the DNS cache filename MUST be specified as
# well.  The default value is zero (0), which disables DNS cache file
# creation/updates at run time.  The number of children processes to
# run may be anywhere from 1 to 100, however a large number may effect
# normal system operations.  Reasonable values should be between 5 and
# 20.  See the DNS.README file for additional information.
DNSChildren 0
タイトルとURLをコピーしました