Forum Discussion

Pedro_Boavida's avatar
Pedro_Boavida
Icon for Nimbostratus rankNimbostratus
Jul 16, 2020

iRule with NAME::lookup statement stopped working

Hi,

 

In a given VS a have a resource iRule to determine the real server through dynamic resolution of a given name.

 

The iRule looks like this:

 

when HTTP_REQUEST {

  # Hold HTTP data until IP address is resolved

  HTTP::collect

  #log local0. "Nslookup to resolve: xxx.xxx.org "

  # Start a name resolution on the hostname

  NAME::lookup xxx.xxx.org

}

 

when NAME_RESOLVED {

  #log local0. "Nslookup result for xxx.xxx.org: [NAME::response]"

  node [lindex [NAME::response] 0] 443

 

  # log local0. "DEBUG: [lindex [split [NAME::response] " "] 0]"

 

  # Release HTTP data once hostname is resolved

  HTTP::release

}

 

This iRule works fine on older version (11.6.x and 12.1.x) however it doesn't work at all in version 13.1 or 15.1.

 

Is this method deprecated ? Does anyone had this issue already ?

 

Regards,

 

Pedro