Bug 1323734

Summary: DNS reverse lookup is not working for 1st request
Product: Red Hat Enterprise Linux 6 Reporter: Martin Frodl <mfrodl>
Component: squidAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: low    
Version: 6.7CC: thozza
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1263229 Environment:
Last Closed: 2016-08-16 10:44:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Frodl 2016-04-04 14:33:26 UTC
Description of problem:
A problem likely identical to bug 1263229 has been encountered in squid on RHEL 6. When squid is configured to log fully qualified domain names, reverse DNS lookup is never performed for the first request.

Version-Release number of selected component (if applicable):
squid-3.1.23-9.el6

How reproducible:
always

Steps to Reproduce:

On server machine:
$ cat <<EOF >> /etc/squid/squid.conf
log_fqdn on
logformat fqdn %>A %>Hs "%rm %ru"
access_log /var/log/squid/fqdn.log fqdn
EOF
$ echo OK > /var/www/html/test
$ service httpd start
$ service squid start

On client machine:
$ curl http://<SERVER_NAME>/test -x [<SERVER_IPV6>]:3128 > /dev/null
$ curl http://<SERVER_NAME>/test -x [<SERVER_IPV6>]:3128 > /dev/null
$ curl http://<SERVER_NAME>/test -x [<SERVER_IPV4>]:3128 > /dev/null
$ curl http://<SERVER_NAME>/test -x [<SERVER_IPV4>]:3128 > /dev/null

On server machine:
$ cat /var/log/squid/fqdn.log

Actual results:
<SERVER_IPV4> 200 "GET http://<SERVER_NAME>/test"
<SERVER_NAME> 200 "GET http://<SERVER_NAME>/test"
<SERVER_IPV6> 200 "GET http://<SERVER_NAME>/test"
<SERVER_NAME> 200 "GET http://<SERVER_NAME>/test"

Expected results:
<SERVER_NAME> 200 "GET http://<SERVER_NAME>/test"
<SERVER_NAME> 200 "GET http://<SERVER_NAME>/test"
<SERVER_NAME> 200 "GET http://<SERVER_NAME>/test"
<SERVER_NAME> 200 "GET http://<SERVER_NAME>/test"

Comment 3 Tomáš Hozza 2016-08-16 10:44:10 UTC
Red Hat Enterprise Linux version 6 is entering the Production 2 phase of its lifetime and this bug doesn't meet the criteria for it, i.e. only high severity issues will be fixed. Please see https://access.redhat.com/support/policy/updates/errata/ for further information.

This issue is being tracked in Red Hat Enterprise Linux version 7 in bug #1263229.