Does the mod_proxy cache the ip address without dns lookup?

Discussion in 'Apache' started by avidya, Jul 28, 2010.

  1. #1
    hi, i found that the the same server parsing the same domain into two different ip address today.
    my env is RHL 4.1.2-44
    my proxypass setting is below:
    <Location /imgs>
    ProxyPass http://img02.xxxxxx.com/
    </Location>
    because the host of img02.xxxxxx.com was out of service, so the dns parsed the domain "img02.xxxxxx.com" into another ip which works better. But i found that the request to img02.xxxxxx.com through proxyPass still be transmit into the old ip which already haven't work.
    I noticed that situations by checking the apache error log and trying to telnet the img02.xxxxx.com from the same server, that showed the same server parsing the same domain into two different ip address:
    the error log write:"
    Connection timed out: proxy: HTTP: attempt to connect to 100.224.194.181:80 (img01.xxxxxx.com) failed"
    and the telnet img01.xxxxxx.com 80 showed successfully because the dns tansmit the new ip address.

    Does anyone meet the problem before? i just wonder what kind of setting will make my apache mod_proxy acting like has dns cache.
     
    avidya, Jul 28, 2010 IP
  2. sebmoule

    sebmoule Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    I've got exactly the same problem with an amache 2.2.6, where the domain name in ProxyPass configuration has got a IP modification in the DNS resolution, but apache don't seams to take that into account.

    do you find a resolution on your problem ?

    Regards,

    sebastien
     
    sebmoule, Nov 16, 2010 IP
  3. avidya

    avidya Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    not yet.
    if u find, please let me know.
     
    avidya, Nov 18, 2010 IP
  4. sebmoule

    sebmoule Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think that by default, apache will cache the IP in his connector pool until the TTL of the DNS is reach, but if someone could conform this behaviour that will be great.
     
    sebmoule, Nov 18, 2010 IP