Forum Discussion

Dale_Lindsay_19's avatar
Dale_Lindsay_19
Icon for Nimbostratus rankNimbostratus
Jun 15, 2009

IP to FDQN iRule

I need an example of an irule that can take an ip address and replace the address with the proper FQDN in its place. This is for a web accelerator. I'm not sure exactly what to search on.

 

 

If there's a better forum to look through please let me know.

 

 

Thanks!
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi,

     

     

    Do you need to resolve the IP to a FQDN in the iRule using DNS or can it be hardcoded? Are you wanting to do this in the HTTP host header value or somewhere else? Which LTM version are you running?

     

     

    Aaron
  • Hi, I need to replace the load-balanced IP address with the fqdn if the request is destined to one of the pool members and I believe it would need to be in the http header. My current problem is that when the request is sent to the web server, the IP is in the get and not the actual URL and the server rejects the request.

     

     

    I'm running 9.4.7 on the WA.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    I'm guessing the issue is with the host header value. What HTTP response code does the server send when the issue occurs? What host header value is present in the request for a successful request? And for a failure?

     

     

    Thanks,

     

    Aaron