Bug 61670 - X-Forwarded-For: creates a AAAA dns query
Summary: X-Forwarded-For: creates a AAAA dns query
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_remoteip (show other bugs)
Version: 2.4.6
Hardware: PC Mac OS X 10.1
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
Depends on:
Reported: 2017-10-26 08:43 UTC by Andrei Kalfas
Modified: 2017-10-26 08:43 UTC (History)
0 users

tcpdump showcasing the extra AAAA dns query (5.10 KB, application/vnd.tcpdump.pcap)
2017-10-26 08:43 UTC, Andrei Kalfas

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Kalfas 2017-10-26 08:43:34 UTC
Created attachment 35465 [details]
tcpdump showcasing the extra AAAA dns query

Azure's Application Gateway forwards the useragent ip via the X-Forwarded-For header as documented [1] and adds the port to it. 

Trouble is that remoteip picks up and does a AAAA dns query resulting obviously in a negative response.

This should not happen - stripping of the port there is no extra dns query.

[1] https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-faq

I've attached a tcpdump that showcase the error.