Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

iRule with NAME::lookup statement stopped working

Pedro_Boavida
Nimbostratus
Nimbostratus

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

 

 

 

1 REPLY 1

Hi Pedro,

 

This command has been deprecated with the release of version 15.1 in favor of the RESOLVER and DNSMSG namespaces.

REF: https://clouddocs.f5.com/api/irules/NAME__lookup.html