Closed gitdevmod closed 8 years ago
I removed all reports (2015, 2016, SquidAnalyzer.current and SquidGuard.current directory). squid-analayzer has recreated all reports and it did DNS requests (confirmed by tcpdump) but in reports it is still IP instead of hostname.
Problem solved, after adding warn() if ( ($@) && (!$self->{QuietMode}));
in _gethostbyaddr sub there is an alarm "DNS lookup timeout." each time, withtout this warn() the alarm was not printed, in squidanalyzer.conf DNSLookupTimeout is 0.0001 which fail even if DNS server is local. It is probably a timing issue with VirualBox guest VM.
I raised DNSLookupTimeout to 0.01 and now it works as expected.
Thanks for the report. I have added a warning message with commit f206dbd when the timeout is reached.
Best regards,
Hi,
I enabled UseClientDNSName but squid-analyzer does not replace IP to DNS name in reports. When running squid-analyzer I do not see DNS request with tcpdump. /etc/resolv.conf contains local DNS and it works as expected with
gethostbyaddr(inet_aton($ip), AF_INET);
SquidAnalyzer is installed on FreeBSD with Perl 5.20.3Thanks in advance