F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Richard__Harlan's avatar
Richard__Harlan
Historic F5 Account
Jun 15, 2006

DNS Lookup

Playing with the following rule trying to get DNS lookups working. Every time I hit the rule the name::response allways comes back empty. Any ideas what I am doing wrong. Thanks

 

 

when HTTP_REQUEST {

 

set host [HTTP::host]

 

NAME::lookup $host

 

HTTP::collect

 

log "$host"

 

}

 

 

when NAME_RESOLVED {

 

set address [NAME::response address 0]

 

use node $address 80

 

log "$address"

 

HTTP::release

 

}

30 Replies